/*
 * Sahah Addariyah — Component CSS
 * Cuma di-load di halaman yang butuh (lihat wp_enqueue_scripts di plugin).
 * Ini styling per-komponen, bukan tema/layout — layout keseluruhan tetap
 * dikerjakan lewat Elementor.
 */

/* Badge Status Akses (Gratis / Premium) */
.sahah-status-badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 999px;
	margin-bottom: 14px;
}

.sahah-status-badge.gratis {
	background: #e6f4ea;
	color: #1e7e34;
}

.sahah-status-badge.premium {
	background: linear-gradient(135deg, #fff4e0, #ffe4b3);
	color: #8a5a00;
	box-shadow: 0 1px 3px rgba(184, 134, 11, 0.25);
}

/* Wrapper video responsive 16:9 — video tetap proporsional di semua ukuran layar */
.sahah-video-wrap {
	position: relative;
	width: 100%;
	max-width: 900px;
	aspect-ratio: 16 / 9;
	margin: 0 auto 24px;
	border-radius: 14px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.sahah-video-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Fallback untuk browser lama yang belum support aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
	.sahah-video-wrap {
		height: 0;
		padding-bottom: 56.25%; /* 9/16 */
	}
}

/* Pesan gating "khusus member" — pengganti video untuk non-member (Tahap 3) */
.sahah-video-locked {
	max-width: 900px;
	margin: 0 auto 24px;
	padding: 40px 24px;
	text-align: center;
	background: #f7f7f8;
	border: 1px dashed #d0d0d5;
	border-radius: 14px;
}

.sahah-video-locked p {
	margin: 0 0 16px;
	color: #4a4a52;
	font-size: 1rem;
}

.sahah-join-button {
	display: inline-block;
	padding: 10px 28px;
	background: #1e7e34;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
	transition: background 0.15s ease;
}

.sahah-join-button:hover {
	background: #17612a;
	color: #fff;
}

/* Showcase halaman video Premium ([sahah_premium_videos]) */
.sahah-premium-intro {
	max-width: 900px;
	margin: 0 auto 32px;
	padding: 24px;
	text-align: center;
	background: linear-gradient(135deg, #fff4e0, #ffe4b3);
	border-radius: 14px;
}

.sahah-premium-intro p {
	margin: 0 0 16px;
	color: #6b4a00;
	font-size: 1.05rem;
}

.sahah-premium-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
	max-width: 1100px;
	margin: 0 auto;
}

.sahah-premium-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sahah-premium-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

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

.sahah-premium-card-body {
	padding: 16px;
}

.sahah-premium-card-body h3 {
	margin: 8px 0 6px;
	font-size: 1.1rem;
	color: #1a1a1a;
}

.sahah-premium-card-body p {
	margin: 0;
	font-size: 0.9rem;
	color: #666;
	line-height: 1.5;
}
