/*
 * Sahah Addariah — Halaman Lobi (Custom, gaya terinspirasi antigravity.google)
 * Palet warna dari logo Sahah Addariyah: hijau + emas + hitam.
 * Otomatis dark/light lewat prefers-color-scheme (preferensi sistem
 * pengunjung) — bukan toggle manual tema, karena mekanisme toggle tema
 * "navid" belum bisa saya pastikan tanpa akses langsung ke kodenya.
 */

.sahah-lobby {
	--sl-bg: #0c0d0c;
	--sl-bg-soft: #16181a;
	--sl-text: #f3f3f0;
	--sl-text-muted: #a6a9a6;
	--sl-green: #2eb86a;
	--sl-green-deep: #1e8a4c;
	--sl-gold: #d4a530;
	--sl-border: rgba(255, 255, 255, 0.09);
	--sl-particle-a: 46, 184, 106;
	--sl-particle-b: 212, 165, 48;

	background: var(--sl-bg);
	color: var(--sl-text);
	overflow-x: hidden;
}

@media (prefers-color-scheme: light) {
	.sahah-lobby {
		--sl-bg: #faf9f5;
		--sl-bg-soft: #ffffff;
		--sl-text: #17181a;
		--sl-text-muted: #5c5f5c;
		--sl-green: #1e8a4c;
		--sl-green-deep: #157a41;
		--sl-gold: #b8891f;
		--sl-border: rgba(0, 0, 0, 0.08);
	}
}

.sahah-lobby * {
	box-sizing: border-box;
}

/* ===== Reveal saat discroll ===== */
.sahah-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.sahah-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ===== HERO ===== */
.sahah-lobby-hero {
	position: relative;
	min-height: 86vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 60px 24px;
	background: var(--sl-bg);
	overflow: hidden;
}

/* Gradasi gelap tipis di puncak hero — supaya teks nav bar tema (yang mungkin
   dirancang buat sit di atas background gelap) tetap kontras, terlepas dari
   apakah hero ini lagi mode terang atau gelap. */
.sahah-lobby-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 140px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent);
	pointer-events: none;
	z-index: 1;
}

.sahah-particle-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.sahah-cursor-spotlight {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.4s ease;
	background: radial-gradient(560px circle at var(--sx, 50%) var(--sy, 50%), rgba(var(--sl-particle-a), 0.18), transparent 65%);
}

.sahah-lobby-hero-content {
	position: relative;
	z-index: 2;
	max-width: 720px;
}

.sahah-lobby-wordmark {
	font-size: 1.6rem;
	color: var(--sl-gold);
	margin: 0 0 6px;
	letter-spacing: 0.02em;
}

.sahah-lobby-title {
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	font-weight: 800;
	margin: 0 0 12px;
	line-height: 1.05;
	background: linear-gradient(135deg, var(--sl-text), var(--sl-green));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.sahah-lobby-tagline {
	font-size: 1rem;
	color: var(--sl-text-muted);
	margin: 0 0 20px;
}

.sahah-lobby-desc {
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--sl-text-muted);
	max-width: 560px;
	margin: 0 auto 32px;
}

.sahah-lobby-cta-group {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}

.sahah-btn {
	display: inline-flex;
	align-items: center;
	padding: 13px 30px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	font-size: 0.95rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	color-scheme: light dark;
}

.sahah-btn-primary,
html body a.sahah-btn-primary {
	background: var(--sl-green);
	color: #06120b !important;
}

.sahah-btn-primary:hover,
html body a.sahah-btn-primary:hover,
html body a.sahah-btn-primary:visited {
	background: var(--sl-green-deep);
	color: #06120b !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(46, 184, 106, 0.3);
}

.sahah-btn-ghost,
html body a.sahah-btn-ghost {
	background: transparent;
	color: var(--sl-text) !important;
	border: 1px solid var(--sl-border);
}

.sahah-btn-ghost:hover,
html body a.sahah-btn-ghost:hover,
html body a.sahah-btn-ghost:visited {
	border-color: var(--sl-green);
	color: var(--sl-green) !important;
	transform: translateY(-2px);
}

/* ===== VIDEO TUTORIAL ===== */
.sahah-lobby-tutorial {
	padding: 72px 24px;
	text-align: center;
}

.sahah-lobby-tutorial-inner {
	max-width: 860px;
	margin: 0 auto;
}

.sahah-lobby-tutorial h2 {
	font-size: 1.7rem;
	margin: 0 0 6px;
}

.sahah-lobby-tutorial-sub {
	color: var(--sl-text-muted);
	margin: 0 0 32px;
}

.sahah-tilt-card {
	transition: transform 0.15s ease;
	transform-style: preserve-3d;
}

.sahah-lobby-tutorial-card {
	border-radius: 20px;
	padding: 3px;
	background: linear-gradient(135deg, rgba(var(--sl-particle-a), 0.5), rgba(var(--sl-particle-b), 0.5));
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.sahah-lobby-tutorial-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 18px;
	overflow: hidden;
	background: #000;
}

.sahah-lobby-tutorial-thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.75;
}

.sahah-lobby-tutorial-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.sahah-lobby-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border-radius: 999px;
	border: none;
	background: rgba(255, 255, 255, 0.95);
	color: #111;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.sahah-lobby-play-btn:hover {
	transform: translate(-50%, -50%) scale(1.06);
}

.sahah-lobby-play-icon {
	color: var(--sl-green-deep);
}

/* ===== ARTIKEL TERBARU ===== */
.sahah-lobby-articles {
	padding: 72px 24px;
}

.sahah-lobby-section-inner {
	max-width: 1100px;
	margin: 0 auto;
}

.sahah-section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}

.sahah-section-heading h2,
.sahah-lobby-syekh > .sahah-lobby-section-inner > h2 {
	font-size: 1.7rem;
	margin: 0;
}

.sahah-section-link {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--sl-green) !important;
	text-decoration: none;
	white-space: nowrap;
}

.sahah-section-link:hover {
	text-decoration: underline;
}

.sahah-articles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 22px;
}

.sahah-article-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: var(--sl-bg-soft);
	border: 1px solid var(--sl-border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sahah-article-thumb img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}

.sahah-article-body {
	padding: 18px;
}

.sahah-article-body h3 {
	font-size: 1.05rem;
	margin: 0 0 8px;
	line-height: 1.35;
}

.sahah-article-body p {
	font-size: 0.88rem;
	color: var(--sl-text-muted);
	line-height: 1.6;
	margin: 0;
}

/* ===== PROFIL SYEKH — carousel gaya Antigravity ===== */
.sahah-lobby-syekh {
	padding: 72px 24px;
	border-top: 1px solid var(--sl-border);
}

.sahah-lobby-syekh h2 {
	font-size: 1.7rem;
	margin: 0 0 28px;
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

.sahah-syekh-carousel {
	position: relative;
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
}

.sahah-syekh-track {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 6px;
	flex: 1;
}

.sahah-syekh-track::-webkit-scrollbar {
	height: 6px;
}

.sahah-syekh-track::-webkit-scrollbar-thumb {
	background: var(--sl-border);
	border-radius: 3px;
}

.sahah-syekh-card {
	position: relative;
	flex: 0 0 240px;
	aspect-ratio: 3 / 4;
	border-radius: 18px;
	scroll-snap-align: start;
	background-color: var(--sl-bg-soft);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	text-decoration: none;
	transition: transform 0.25s ease;
}

.sahah-syekh-card:hover {
	transform: translateY(-6px);
}

.sahah-syekh-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0) 55%);
}

.sahah-syekh-name {
	position: relative;
	z-index: 1;
	padding: 18px;
	color: #fff !important;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.3;
}

.sahah-carousel-arrow {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--sl-border);
	background: var(--sl-bg-soft);
	color: var(--sl-text);
	cursor: pointer;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}

.sahah-carousel-arrow:hover {
	background: var(--sl-green);
	color: #06120b !important;
}

/* ===== TENTANG ===== */
.sahah-lobby-about {
	padding: 60px 24px;
	border-top: 1px solid var(--sl-border);
	text-align: center;
}

.sahah-lobby-about-inner {
	max-width: 700px;
	margin: 0 auto;
}

.sahah-lobby-about-inner h2 {
	font-size: 1.5rem;
	margin: 0 0 16px;
}

.sahah-lobby-about-text {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--sl-text-muted);
}

/* ===== KONTAK / FOOTER ===== */
.sahah-lobby-contact {
	padding: 60px 24px 72px;
	border-top: 1px solid var(--sl-border);
}

.sahah-lobby-contact-inner {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.sahah-lobby-contact-inner h3 {
	font-size: 1.3rem;
	margin: 0 0 28px;
}

.sahah-lobby-contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	text-align: left;
}

.sahah-contact-item {
	background: var(--sl-bg-soft);
	border: 1px solid var(--sl-border);
	border-radius: 14px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.9rem;
}

.sahah-contact-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sl-gold);
}

.sahah-lobby-contact-grid a {
	color: var(--sl-green) !important;
	text-decoration: none;
}

.sahah-lobby-contact-grid a:hover {
	text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
	.sahah-lobby-hero {
		min-height: 70vh;
		padding: 48px 20px;
	}
	.sahah-lobby-tutorial,
	.sahah-lobby-articles,
	.sahah-lobby-syekh,
	.sahah-lobby-about,
	.sahah-lobby-contact {
		padding-left: 18px;
		padding-right: 18px;
	}
	.sahah-lobby-contact-grid {
		grid-template-columns: 1fr;
	}
	.sahah-syekh-card {
		flex-basis: 190px;
	}
	.sahah-carousel-arrow {
		width: 36px;
		height: 36px;
	}
}
