/* =========================================================
   SPECTRA BETTA — FAQ.CSS
   Halaman FAQ: hero + search, tab kategori, grid accordion,
   bantuan bawah. Hanya di-load di halaman dengan slug "faq".
   ========================================================= */

/* NOTE: .sb-split-heading--center sekarang di sections.css (sitewide). */

/* ---------------------------------------------------------
   FAQ HERO
   --------------------------------------------------------- */
.sb-faq-hero {
	position: relative;
	overflow: hidden;
	padding: 40px 0 32px;
}

.sb-faq-hero__glow-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: radial-gradient(ellipse 60% 70% at 50% 20%, rgba(255, 45, 45, 0.16), transparent 60%);
	pointer-events: none;
}

.sb-faq-hero__container {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
}

.sb-faq-hero__fish {
	flex-shrink: 0;
	width: 26vw;
	max-width: 320px;
	height: auto;
	filter: drop-shadow(0 20px 40px rgba(255, 45, 45, 0.3));
	animation: sbFloat 6s ease-in-out infinite;
	mix-blend-mode: lighten; /* sama seperti .sb-hero__fish - lihat hero.css untuk penjelasan */
}

.sb-faq-hero__fish--right {
	transform: scaleX(-1);
}

.sb-faq-hero__content {
	flex-shrink: 0;
	width: min(560px, 100%);
	text-align: center;
}

.sb-faq-hero__desc {
	max-width: 480px;
	margin: 0 auto 28px;
	color: #d0d0d0;
	font-size: 15px;
	line-height: 1.6;
}

.sb-faq-search {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 52px;
	padding: 0 20px;
	background-color: var(--sb-card);
	border: 1px solid var(--sb-border);
	border-radius: 999px;
	color: var(--sb-muted);
}

.sb-faq-search input {
	flex: 1 1 auto;
	background: none;
	border: none;
	color: var(--sb-white);
	font-size: 14px;
}

.sb-faq-search input::placeholder {
	color: var(--sb-muted);
}

.sb-faq-search input:focus {
	outline: none;
}

/* ---------------------------------------------------------
   TAB KATEGORI
   --------------------------------------------------------- */
.sb-faq-tabs {
	display: flex;
	align-items: center;
	gap: 10px;
	overflow-x: auto;
	padding: 4px 0 24px;
	scrollbar-width: none;
}

.sb-faq-tabs::-webkit-scrollbar {
	display: none;
}

.sb-faq-tab {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	height: 46px;
	padding: 0 18px;
	background-color: var(--sb-card);
	border: 1px solid var(--sb-border);
	border-radius: var(--sb-radius-md);
	color: var(--sb-text-secondary);
	font-size: 13px;
	font-weight: 600;
	transition: border-color var(--sb-transition), color var(--sb-transition), background-color var(--sb-transition);
}

.sb-faq-tab:hover {
	border-color: rgba(255, 255, 255, 0.3);
	color: var(--sb-white);
}

.sb-faq-tab.is-active {
	background-color: rgba(255, 45, 45, 0.12);
	border-color: var(--sb-red);
	color: var(--sb-white);
}

.sb-faq-tab.is-active svg {
	color: var(--sb-red);
}

.sb-faq-tab__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.1);
	font-size: 11px;
	font-weight: 700;
}

.sb-faq-tab.is-active .sb-faq-tab__count {
	background-color: var(--sb-red);
	color: var(--sb-white);
}

/* ---------------------------------------------------------
   GRID FAQ (native <details>/<summary>)
   --------------------------------------------------------- */
.sb-faq-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 8px;
}

.sb-faq-item {
	background-color: var(--sb-card);
	border: 1px solid var(--sb-border);
	border-left: 3px solid transparent;
	border-radius: var(--sb-radius-lg);
	transition: border-color var(--sb-transition), grid-column 0ms;
}

.sb-faq-item[open] {
	grid-column: 1 / -1;
	border-color: var(--sb-red);
	border-left-color: var(--sb-red);
}

.sb-faq-item__summary {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 18px;
	cursor: pointer;
	list-style: none;
}

.sb-faq-item__summary::-webkit-details-marker {
	display: none;
}

.sb-faq-item__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background-color: rgba(255, 45, 45, 0.1);
	color: var(--sb-red);
}

.sb-faq-item__question {
	flex: 1 1 auto;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--sb-white);
	transition: color var(--sb-transition);
}

.sb-faq-item[open] .sb-faq-item__question {
	color: var(--sb-red-bright);
}

.sb-faq-item__toggle {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: var(--sb-muted);
}

.sb-faq-item__icon-minus {
	display: none;
}

.sb-faq-item[open] .sb-faq-item__icon-plus {
	display: none;
}

.sb-faq-item[open] .sb-faq-item__icon-minus {
	display: block;
	color: var(--sb-red);
}

.sb-faq-item__answer {
	padding: 0 18px 20px 64px;
}

.sb-faq-item__answer p {
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--sb-text-secondary);
}

.sb-faq-empty {
	text-align: center;
	padding: 40px 0;
	color: var(--sb-muted);
	font-size: 14px;
}

/* NOTE: bar "Masih Butuh Bantuan" sekarang pakai komponen sitewide
   .sb-help-cta (lihat sections.css), supaya bisa dipakai ulang di
   halaman Ketentuan Garansi juga. */

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
	.sb-faq-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sb-faq-hero__fish {
		width: 20vw;
	}
}

@media (max-width: 768px) {
	.sb-faq-hero__container {
		flex-direction: column;
		gap: 16px;
	}

	.sb-faq-hero__fish {
		width: 46%;
		max-width: 200px;
	}

	.sb-faq-hero__fish--left {
		order: 2;
	}

	.sb-faq-hero__content {
		order: 1;
		width: 100%;
	}

	.sb-faq-hero__fish--right {
		order: 3;
	}

	.sb-split-heading--center {
		font-size: 30px;
	}

	.sb-faq-grid {
		grid-template-columns: 1fr;
	}

	.sb-faq-item[open] {
		grid-column: auto;
	}

	.sb-faq-item__answer {
		padding-left: 18px;
	}

	/* NOTE: responsive .sb-help-cta sekarang di responsive.css (sitewide). */
}
