/* Thanks Page — satu ruh dengan privacy/downloads (dark emerald + gold).
   Hanya gaya khas /thanks; layout, .page-head, navbar, footer diwarisi dari
   assets/css/welcome.php. */

.thanks-page {
	position: relative;
	background: radial-gradient(circle at 50% 8%, rgba(6,78,59,.10) 0%, rgba(245,158,11,.03) 42%, rgba(0,0,0,0) 72%);
}

/* ====================================================================
   SECTION 1 — Pengumuman Terima Kasih
   Kartu hangat berbingkai gradien zamrud→emas; teks sedang (max 880px)
   supaya tidak melebar penuh di layar lebar.
   ==================================================================== */
.thanks-announce {
	max-width: 880px;
	margin: 0 auto 2.5rem;
	position: relative;
	padding: 2.25rem 2.5rem;
	border-radius: 24px;
	background:
		linear-gradient(160deg, rgba(16,185,129,.10), rgba(245,158,11,.06) 60%, var(--line-soft));
	border: 1px solid var(--line);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	text-align: center;
	overflow: hidden;
}
/* Aksen garis di atas kartu — gradien emerald→emas, tipis & elegan. */
.thanks-announce::before {
	content: "";
	position: absolute;
	top: 0; left: 50%;
	width: 44%;
	height: 2px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, transparent, var(--emerald-light), var(--gold-light), transparent);
}
.thanks-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin-bottom: .6rem;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--gold-light);
}
.thanks-announce-title {
	font-family: 'Amiri', serif;
	font-size: clamp(1.5rem, 3.4vw, 2.1rem);
	font-weight: 700;
	color: #fff;
	margin: 0 0 1rem;
}
.thanks-prose {
	font-size: .95rem;
	line-height: 1.8;
	color: var(--text);
	text-align: left;
}
.thanks-prose p { margin: 0 0 1rem; }
.thanks-prose p:last-child { margin-bottom: 0; }
.thanks-prose ul {
	font-size: .92rem;
	line-height: 1.7;
	margin: 0 0 1rem;
	padding-left: 1.4rem;
	color: var(--text);
}
.thanks-prose li { margin-bottom: .4rem; }
.thanks-prose strong { color: #fff; }
.thanks-prose a {
	color: var(--emerald-light);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(16,185,129,.45);
	transition: color .3s ease, border-color .3s ease;
}
.thanks-prose a:hover { color: #6ee7b7; border-bottom-color: #6ee7b7; }

/* ====================================================================
   SECTION 2 — Brands & Logos
   Grid rapi 7 kolom (turun di layar kecil), kartu rasio 1:1 seragam.
   Urutan tampil acak (shuffle di controller), bukan urut id/tanggal.
   Lebar mengikuti container-fluid <main class="site-main"> (gutter 2rem),
   bukan dibatasi sendiri — supaya sejajar tepi konten halaman.
   ==================================================================== */
.thanks-brands-section {
	width: 100%;
	margin: 0;
}

/* Chip filter kategori — di tengah halaman */
.thanks-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .4rem;
	margin: .6rem 0 1.1rem;
	text-align: center;
}
.thanks-chip {
	padding: .35rem .85rem;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 600;
	color: var(--text-muted);
	background: var(--line-soft);
	border: 1px solid var(--line);
	cursor: pointer;
	transition: all .3s ease;
}
.thanks-chip:hover { background: var(--line); color: #fff; }
.thanks-chip.is-active {
	background: var(--emerald-light);
	border-color: var(--emerald-light);
	color: var(--panel);
	font-weight: 700;
}

/* Grid 7 kolom — sel 1:1 seragam */
.thanks-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: .7rem;
}
/* Kartu putih penuh — logo PNG transparan (termasuk yang gelap) tetap terbaca. */
.thanks-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .1rem;
	aspect-ratio: 1 / 1;
	padding: .6rem .4rem .55rem;
	border-radius: 18px;
	background: #ffffff;
	border: 1px solid rgba(15,23,42,.10);
	box-shadow: 0 6px 16px rgba(15,23,42,.18);
	text-decoration: none;
	color: inherit;
	transition: border-color .3s ease;
}
a.thanks-card:hover {
	background: #ffffff;
	border-color: rgba(16,185,129,.55);
}
.thanks-card:focus-visible {
	outline: 2px solid var(--emerald-light);
	outline-offset: 2px;
}
.thanks-logo-box {
	flex: 1 1 auto;
	display: grid;
	place-items: center;
	width: 100%;
	min-height: 0;
	padding: .15rem .4rem;
	position: relative;
}
.thanks-logo-box img {
	max-width: 55%;
	max-height: 55%;
	object-fit: contain;
	display: block;
	/* Default monokrom — warna brand "bangun" saat kartu disentuh */
	filter: grayscale(1);
	opacity: .78;
	transition: filter .3s ease, opacity .3s ease;
}
.thanks-icon-glyph {
	font-size: clamp(1.6rem, 3.4vw, 2.15rem);
	color: #059669;
	filter: grayscale(1);
	opacity: .78;
	transition: color .3s ease, filter .3s ease, opacity .3s ease;
}
.thanks-initials {
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	font-weight: 800;
	letter-spacing: .02em;
	background: linear-gradient(135deg, #047857, #059669 55%, #34d399);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	filter: grayscale(1);
	opacity: .78;
	transition: filter .3s ease, opacity .3s ease;
}
.thanks-card:hover .thanks-logo-box img,
.thanks-card:hover .thanks-icon-glyph,
.thanks-card:hover .thanks-initials,
.thanks-card:focus-within .thanks-logo-box img,
.thanks-card:focus-within .thanks-icon-glyph,
.thanks-card:focus-within .thanks-initials {
	filter: grayscale(0);
	opacity: 1;
}
.thanks-card:hover .thanks-icon-glyph { color: #10b981; }
/* Overlay transparan di atas area logo: klik/klik-kanan/drag jatuh ke
   lapisan ini, bukan ke <img> — mencegah "Save image" & drag gambar.
   Tetap di dalam kartu yang berupa tautan, jadi klik membuka situs brand. */
.thanks-logo-shield {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: transparent;
}
.thanks-brand-name {
	max-width: 100%;
	font-size: .68rem;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	color: #0f172a;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.thanks-brand-cat {
	font-size: .55rem;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: rgba(15,23,42,.5);
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* State kosong */
.thanks-empty {
	width: 100%;
	text-align: center;
	padding: 3.5rem 1rem;
	border: 1px dashed var(--line);
	border-radius: 20px;
	color: var(--text-muted);
}
.thanks-empty i { font-size: 2.4rem; margin-bottom: .5rem; color: var(--text-faint); }
.thanks-empty p { margin: 0; font-size: .88rem; }

/* ====================================================================
   Responsive — grid menyusut bertahap tapi tetap rapi & 1:1.
   ==================================================================== */
@media (max-width: 1200px) { .thanks-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; } }
@media (max-width: 991.98px) { .thanks-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
	.thanks-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
	.thanks-announce { padding: 1.5rem 1.25rem; }
}
@media (max-width: 575.98px) { .thanks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; } }
@media (max-width: 380px) { .thanks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
