/* =========================================================
   Desi Hub Theme — main.css
   Premium dark, OTT-app-style design system.
   Bold display type (Unbounded) + clean body type (Plus Jakarta Sans)
   + Devanagari fallback so Hindi/desi-language titles render nicely too.
   ========================================================= */

:root {
	--dh-color-bg: #0a0a10;
	--dh-color-bg-alt: #0f0f18;
	--dh-color-surface: #16161f;
	--dh-color-surface-2: #1e1e2b;
	--dh-color-border: rgba(255, 255, 255, 0.08);
	--dh-color-text: #f4f4f7;
	--dh-color-text-muted: #a3a3b5;
	--dh-color-accent: #ff5c39;
	--dh-color-accent-2: #7b2ff7;
	--dh-color-success: #35c281;

	--dh-font-display: 'Unbounded', 'Noto Sans Devanagari', sans-serif;
	--dh-font-body: 'Plus Jakarta Sans', 'Noto Sans Devanagari', -apple-system, sans-serif;

	--dh-radius-sm: 10px;
	--dh-radius: 16px;
	--dh-radius-lg: 24px;
	--dh-container: 1240px;
	--dh-container-narrow: 780px;
	--dh-header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--dh-color-bg);
	color: var(--dh-color-text);
	font-family: var(--dh-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

h1, h2, h3, h4, h5 {
	font-family: var(--dh-font-display);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 .5em;
	letter-spacing: -0.01em;
}
h2 { font-weight: 600; font-size: clamp(22px, 3vw, 32px); }
h3 { font-weight: 600; font-size: 18px; }
p { margin: 0 0 1em; color: var(--dh-color-text-muted); }

.dh-skip-link {
	position: absolute; left: -999px; top: 0;
	background: var(--dh-color-accent); color: #fff; padding: 10px 16px; z-index: 10000;
}
.dh-skip-link:focus { left: 10px; top: 10px; }

.dh-container { max-width: var(--dh-container); margin: 0 auto; padding: 0 24px; }
.dh-container-narrow { max-width: var(--dh-container-narrow); margin: 0 auto; padding: 0 24px; }

body.dh-age-gate-active { overflow: hidden; }

/* ---------- Header ---------- */
.dh-site-header {
	position: sticky; top: 0; z-index: 500;
	background: rgba(10, 10, 16, 0.85);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--dh-color-border);
}
.dh-header-inner {
	display: flex; align-items: center; justify-content: space-between;
	min-height: var(--dh-header-h);
	gap: 24px;
}
.dh-logo { display: flex; align-items: center; }
.dh-logo-text {
	font-family: var(--dh-font-display);
	font-weight: 800;
	font-size: 22px;
	background: linear-gradient(135deg, var(--dh-color-accent), var(--dh-color-accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.dh-primary-nav { flex: 1; display: flex; justify-content: center; }
.dh-nav-list { display: flex; gap: 8px; }
.dh-nav-list a {
	display: block; padding: 10px 16px; border-radius: 999px;
	font-weight: 600; font-size: 14.5px; color: var(--dh-color-text-muted);
	transition: background .15s, color .15s;
}
.dh-nav-list a:hover, .dh-nav-list li.current-menu-item a {
	background: var(--dh-color-surface); color: var(--dh-color-text);
}
.dh-header-actions { display: flex; align-items: center; gap: 10px; }

.dh-nav-toggle {
	display: none; flex-direction: column; justify-content: center; gap: 5px;
	width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--dh-color-border);
	background: var(--dh-color-surface); cursor: pointer;
}
.dh-nav-toggle span { width: 18px; height: 2px; background: var(--dh-color-text); margin: 0 auto; transition: transform .2s, opacity .2s; }
.dh-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dh-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.dh-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.dh-mobile-nav { display: none; border-top: 1px solid var(--dh-color-border); padding: 12px 24px 20px; }
.dh-mobile-nav.is-open { display: block; }
.dh-mobile-nav-list li a { display: block; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--dh-color-border); }

/* ---------- Buttons (base — most variants live in the plugin's frontend.css) ---------- */
.dh-btn-lg { padding: 16px 30px; font-size: 16px; }
.dh-btn-sm { padding: 8px 16px; font-size: 13px; }
.dh-btn-xs { padding: 6px 12px; font-size: 12px; border-radius: 999px; }
.dh-btn-disabled { opacity: .5; cursor: default; }

/* ---------- Hero ---------- */
.dh-hero {
	position: relative;
	padding: 90px 0 70px;
	text-align: center;
	overflow: hidden;
	background:
		radial-gradient(60% 60% at 50% -10%, rgba(255, 92, 57, .28), transparent 70%),
		radial-gradient(50% 50% at 85% 10%, rgba(123, 47, 247, .22), transparent 70%),
		var(--dh-color-bg);
}
.dh-hero-title {
	font-size: clamp(36px, 7vw, 64px);
	background: linear-gradient(135deg, #ffffff 30%, var(--dh-color-accent));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.dh-hero-tagline { font-size: clamp(15px, 2vw, 19px); max-width: 560px; margin: 0 auto 32px; }
.dh-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Row sections / grids ---------- */
.dh-row-section { padding: 50px 0; }
.dh-row-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.dh-row-heading h2 { margin: 0; }
.dh-row-viewall { font-weight: 700; font-size: 14px; color: var(--dh-color-accent); white-space: nowrap; }

.dh-grid { display: grid; gap: 20px; }
.dh-grid-row { grid-template-columns: repeat(4, 1fr); }
.dh-grid-archive { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* ---------- Cards ---------- */
.dh-card {
	position: relative;
	background: var(--dh-color-surface);
	border: 1px solid var(--dh-color-border);
	border-radius: var(--dh-radius);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dh-card:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 92, 57, .5);
	box-shadow: 0 16px 40px -16px rgba(0,0,0,.6);
}
.dh-card-media { position: relative; aspect-ratio: 3 / 4; background: var(--dh-color-surface-2); overflow: hidden; }
.dh-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.dh-card:hover .dh-card-media img { transform: scale(1.06); }
.dh-card-media-placeholder {
	width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
	font-family: var(--dh-font-display); font-size: 42px; font-weight: 800;
	color: rgba(255,255,255,.25);
}
.dh-card-overlay {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(0deg, rgba(0,0,0,.75), transparent 55%);
	opacity: 0; transition: opacity .2s ease;
}
.dh-card:hover .dh-card-overlay { opacity: 1; }
.dh-card-play {
	font-weight: 700; font-size: 13px; padding: 10px 18px; border-radius: 999px;
	background: var(--dh-color-accent); color: #fff;
}
.dh-card-body { padding: 14px 14px 10px; }
.dh-card-title { font-size: 15px; margin: 0 0 8px; line-height: 1.35; }
.dh-card-actions { display: flex; gap: 8px; padding: 0 14px 14px; }
.dh-card-actions .dh-btn { flex: 1; }

.dh-badge {
	display: inline-block; padding: 4px 10px; border-radius: 999px;
	background: var(--dh-color-surface-2); border: 1px solid var(--dh-color-border);
	font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.dh-badge-mature { background: #3a1414; border-color: #7a2a2a; color: #ff9b9b; }
.dh-badge-corner { position: absolute; top: 10px; right: 10px; z-index: 2; }

.dh-tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.dh-tag-list-sm { margin: 0; }
.dh-tag {
	font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
	background: var(--dh-color-surface-2); color: var(--dh-color-text-muted);
}

/* ---------- Tag filter pills (archives) ---------- */
.dh-archive-hero { padding: 50px 0 10px; text-align: center; }
.dh-page-title { font-size: clamp(28px, 5vw, 42px); }
.dh-page-subtitle { max-width: 620px; margin: 0 auto 24px; }
.dh-tag-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 10px; }
.dh-tag-pill {
	padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
	border: 1px solid var(--dh-color-border); color: var(--dh-color-text-muted);
	transition: all .15s;
}
.dh-tag-pill:hover { border-color: var(--dh-color-accent); color: var(--dh-color-text); }
.dh-tag-pill.is-active { background: var(--dh-color-accent); border-color: var(--dh-color-accent); color: #fff; }

/* ---------- Pagination ---------- */
.dh-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.dh-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px;
	background: var(--dh-color-surface); border: 1px solid var(--dh-color-border); font-weight: 700; font-size: 14px;
}
.dh-pagination .page-numbers.current { background: var(--dh-color-accent); border-color: var(--dh-color-accent); }

/* ---------- Membership band ---------- */
.dh-membership-band { background: var(--dh-color-surface); border-top: 1px solid var(--dh-color-border); border-bottom: 1px solid var(--dh-color-border); }
.dh-membership-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.dh-membership-band-inner h2 { margin-bottom: 6px; }
.dh-membership-band-inner p { margin: 0; }

/* ---------- Reader (single / popup) ---------- */
.dh-reader-page { padding-top: 30px; }
.dh-reader { position: relative; }
.dh-reader-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.dh-reader-close { font-weight: 700; color: var(--dh-color-text-muted); }
.dh-reader-close:hover { color: var(--dh-color-text); }
.dh-reader-title { font-size: clamp(24px, 4vw, 36px); }
.dh-reader-media { border-radius: var(--dh-radius); overflow: hidden; margin: 18px 0; background: var(--dh-color-surface-2); }
.dh-reader-media img { width: 100%; height: auto; }
.dh-reader-content { margin: 20px 0; }
.dh-reader-content img { border-radius: var(--dh-radius-sm); margin: 12px 0; }
.dh-reader-footer-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--dh-color-border); gap: 12px; flex-wrap: wrap; }

/* Content-protection: applied to .dh-protected by protection.js */
.dh-protected { position: relative; }
.dh-protected img { pointer-events: none; }

/* ---------- Popup modal ---------- */
.dh-modal { position: fixed; inset: 0; z-index: 9000; display: none; align-items: flex-start; justify-content: center; padding: 4vh 16px; }
.dh-modal.is-open { display: flex; }
.dh-modal-backdrop { position: absolute; inset: 0; background: rgba(4,4,8,.88); backdrop-filter: blur(8px); }
.dh-modal-panel {
	position: relative; z-index: 2; width: 100%; max-width: 820px; max-height: 92vh; overflow-y: auto;
	background: var(--dh-color-bg-alt); border: 1px solid var(--dh-color-border);
	border-radius: var(--dh-radius-lg); padding: 34px;
}
.dh-modal-close {
	position: sticky; float: right; top: 0; margin-left: 12px;
	width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--dh-color-border);
	background: var(--dh-color-surface); color: var(--dh-color-text); font-size: 20px; cursor: pointer; z-index: 3;
}
.dh-modal-loading { text-align: center; padding: 60px 0; color: var(--dh-color-text-muted); }

/* ---------- Account / policy / misc ---------- */
.dh-policy-content h2 { margin-top: 1.4em; }
.dh-policy-content h3 { margin-top: 1.2em; color: var(--dh-color-text); }
.dh-post-meta { font-size: 13px; color: var(--dh-color-text-muted); }

/* ---------- Footer ---------- */
.dh-site-footer { background: var(--dh-color-bg-alt); border-top: 1px solid var(--dh-color-border); padding: 60px 0 0; margin-top: 40px; }
.dh-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.dh-footer-about p { margin-top: 10px; }
.dh-telegram-chip {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
	padding: 10px 16px; border-radius: 999px; background: #229ED9; color: #fff; font-weight: 700; font-size: 13px;
}
.dh-footer-widget-title { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--dh-color-text-muted); margin-bottom: 14px; }
.dh-footer-nav-list li a { display: block; padding: 6px 0; color: var(--dh-color-text-muted); }
.dh-footer-nav-list li a:hover { color: var(--dh-color-text); }
.dh-footer-bottom {
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
	padding: 20px 0; border-top: 1px solid var(--dh-color-border);
	font-size: 13px; color: var(--dh-color-text-muted);
}
.dh-footer-legal-links a { color: var(--dh-color-text-muted); }
.dh-footer-legal-links a:hover { color: var(--dh-color-text); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.dh-grid-row { grid-template-columns: repeat(3, 1fr); }
	.dh-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.dh-primary-nav { display: none; }
	.dh-nav-toggle { display: flex; }
}
@media (max-width: 768px) {
	.dh-grid-row { grid-template-columns: repeat(2, 1fr); }
	.dh-grid-archive { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
	.dh-hero { padding: 60px 0 44px; }
	.dh-row-section { padding: 34px 0; }
	.dh-footer-grid { grid-template-columns: 1fr; }
	.dh-modal-panel { padding: 22px; border-radius: var(--dh-radius); }
}
@media (max-width: 480px) {
	.dh-grid-row { grid-template-columns: repeat(2, 1fr); }
	.dh-header-actions .dh-btn-sm:not(.dh-btn-primary) { display: none; }
	.dh-hero-actions .dh-btn { width: 100%; }
	.dh-access-buttons-split { flex-direction: column; }
}
