/* ==========================================================
   MOBO-STYLE BROWSE PAGE CSS — v2
   Is poori file ko "Appearance > Customize > Additional CSS" mein
   PURANI CSS ki jagah PASTE karein (poori purani hata kar ye daalein).
   ========================================================== */

/* ---------------------------------------------------
   FULL-BLEED FIX — theme ka content container jitna bhi tang ho,
   ye trick us se bahar nikal kar poori screen (viewport) tak fail deta hai.
   Naam/class jaanne ki zaroorat nahi — kisi bhi theme par kaam karta hai.
--------------------------------------------------- */
.mobo-fullbleed {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	overflow-x: hidden;
}

/* ---------------------------------------------------
   MOBILE OVERFLOW FIX — box-sizing na hone se padding viewport
   se bahar nikal jaata hai, jisse side mein blank space aata hai
--------------------------------------------------- */
.mobo-wrap, .mobo-wrap * { box-sizing: border-box; }
.mobo-wrap { overflow-x: hidden; width: 100%; }

@media (max-width: 600px) {
	.mobo-section { padding: 24px 16px 6px; }
	.mobo-page-heading { padding: 20px 16px 0; flex-wrap: wrap; gap: 10px; }
	.mobo-page-heading h1 { font-size: 22px; }
	.mobo-hero-overlay { padding: 24px 20px; max-width: 100%; }
	.mobo-hero-title { font-size: 30px; }
	.mobo-podium-bg { padding: 20px 12px 0; }
	.mobo-podium { gap: 8px; }
	.mobo-podium-captions { padding: 12px 12px 20px; gap: 8px; }
	.mobo-podium-caption h3 { font-size: 12px; }
	.mobo-grid-row { gap: 10px; }
	.mobo-detail-row { gap: 16px; }
}

/* ---------- THEME VARIABLES (Light = default) ---------- */
.mobo-wrap {
	--mobo-bg: #ffffff;
	--mobo-card-bg: #f2f0eb;
	--mobo-text-primary: #1a1a1a;
	--mobo-text-secondary: #55524d;
	--mobo-text-muted: #8a8781;
	--mobo-border: #e5e2dc;
	--mobo-accent-gold: #d9a441;
	--mobo-accent-red: #e0512f;
	--mobo-shadow: rgba(0,0,0,0.12);
	--mobo-podium-bg: linear-gradient(180deg, #fdf3ec 0%, #fbe9e4 100%);
	--mobo-podium-block: #f6cccc;
	--mobo-podium-num: #d98f8f;

	max-width: 1400px;
	margin: 0 auto;
	background: var(--mobo-bg);
	color: var(--mobo-text-primary);
	font-family: 'Georgia', 'Times New Roman', serif;
	transition: background 0.3s ease, color 0.3s ease;
}

/* ---------- DARK MODE OVERRIDE (jab toggle "moon" par ho) ---------- */
.mobo-wrap.mobo-dark {
	--mobo-bg: #0d0f14;
	--mobo-card-bg: #1a1d24;
	--mobo-text-primary: #f0ede6;
	--mobo-text-secondary: #b8b5ae;
	--mobo-text-muted: #8a8781;
	--mobo-border: #33363f;
	--mobo-accent-gold: #d9a441;
	--mobo-accent-red: #e8734a;
	--mobo-shadow: rgba(0,0,0,0.5);
	--mobo-podium-bg: linear-gradient(180deg, #2a1a10 0%, #1a1210 100%);
	--mobo-podium-block: #4a2f2f;
	--mobo-podium-num: #d98f8f;
}

/* ---------- PAGE HEADING + THEME TOGGLE ---------- */
.mobo-page-heading {
	padding: 24px 40px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.mobo-page-heading h1 {
	color: var(--mobo-text-primary);
	font-size: 30px;
	margin: 0;
	border-left: 4px solid var(--mobo-accent-gold);
	padding-left: 14px;
}

/* Sun/Moon toggle switch */
.mobo-theme-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
}
.mobo-theme-toggle .mobo-icon { font-size: 16px; line-height: 1; opacity: 0.6; transition: opacity 0.2s; }
.mobo-theme-toggle.is-dark .mobo-icon-moon,
.mobo-theme-toggle:not(.is-dark) .mobo-icon-sun { opacity: 1; }
.mobo-toggle-track {
	width: 44px;
	height: 24px;
	background: var(--mobo-card-bg);
	border: 1px solid var(--mobo-border);
	border-radius: 20px;
	position: relative;
	transition: background 0.3s ease;
}
.mobo-toggle-thumb {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--mobo-accent-gold);
	transition: left 0.25s ease;
}
.mobo-theme-toggle.is-dark .mobo-toggle-thumb { left: 22px; }

/* ---------- HERO BANNER (top of Browse page, if a featured post exists) ---------- */
.mobo-hero {
	position: relative;
	height: 420px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
	border-radius: 0 0 12px 12px;
	overflow: hidden;
}
.mobo-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.05) 100%);
}
.mobo-hero-overlay { position: relative; z-index: 2; padding: 40px 60px; max-width: 650px; }
.mobo-hero-tag { color: #7fd4d4; font-size: 18px; margin-bottom: 8px; }
.mobo-hero-title { font-size: 48px; font-weight: 700; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.6); margin: 0 0 20px; line-height: 1.1; }
.mobo-hero-btn { display: inline-block; background: var(--mobo-accent-gold); color: #1a1a1a; padding: 10px 28px; border-radius: 4px; font-weight: 600; text-decoration: none; }
.mobo-hero-btn:hover { background: #e8b95c; }

/* ---------- SECTION HEADER ---------- */
.mobo-section { padding: 30px 40px 10px; }
.mobo-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mobo-section-header h2 { font-size: 22px; color: var(--mobo-text-primary); margin: 0; }
.mobo-section-header a { color: var(--mobo-accent-red); text-decoration: none; font-size: 14px; }
.mobo-section-header a:hover { text-decoration: underline; }

/* ---------- COMPACT GRID CARDS (Best Sellers / Hot Picks) ---------- */
.mobo-grid-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
@media (max-width: 900px) { .mobo-grid-row { grid-template-columns: repeat(3, 1fr); } }
.mobo-card { display: flex; flex-direction: column; }
.mobo-card-cover {
	display: block;
	aspect-ratio: 2/3;
	border-radius: 6px;
	overflow: hidden;
	background: var(--mobo-card-bg);
	box-shadow: 0 4px 14px var(--mobo-shadow);
	transition: box-shadow 0.3s ease;
	position: relative;
}
.mobo-card-cover:hover { box-shadow: 0 8px 22px var(--mobo-shadow); }
.mobo-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.mobo-card-cover:hover img { transform: scale(1.12); }
.mobo-card-title { font-size: 14px; margin: 10px 0 4px; line-height: 1.3; }
.mobo-card-title a { color: var(--mobo-text-primary); text-decoration: none; }
.mobo-card-title a:hover { color: var(--mobo-accent-gold); }
.mobo-card-meta { font-size: 12px; color: var(--mobo-text-muted); }
.mobo-card-author { font-size: 13px; color: var(--mobo-text-secondary); margin-bottom: 4px; }

/* ---------- STAR RATING ---------- */
.mobo-stars-wrap { position: relative; display: inline-block; line-height: 1; font-size: 15px; letter-spacing: 2px; }
.mobo-stars-bg { color: var(--mobo-border); }
.mobo-stars-fg { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: #e8a33d; }
.mobo-rating-num { color: var(--mobo-text-secondary); font-size: 13px; margin-left: 4px; }
.mobo-rating-line { margin-bottom: 8px; }

/* ---------- DETAILED ROW (Readers' Choice / category sections) ---------- */
.mobo-detail-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .mobo-detail-row { grid-template-columns: 1fr; } }
.mobo-detail-card { display: flex; gap: 14px; }
.mobo-detail-cover { flex-shrink: 0; width: 110px; aspect-ratio: 2/3; border-radius: 6px; overflow: hidden; background: var(--mobo-card-bg); box-shadow: 0 4px 14px var(--mobo-shadow); position: relative; }
.mobo-detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.mobo-detail-cover:hover img { transform: scale(1.12); }
.mobo-detail-info h3 { font-size: 16px; margin: 0 0 6px; }
.mobo-detail-info h3 a { color: var(--mobo-text-primary); text-decoration: none; }
.mobo-detail-info h3 a:hover { color: var(--mobo-accent-gold); }
.mobo-card-author { font-size: 13px; color: var(--mobo-text-secondary); margin-bottom: 8px; }
.mobo-excerpt { font-size: 13px; color: var(--mobo-text-secondary); line-height: 1.5; margin: 0; }
.mobo-chapter-count { font-size: 13px; color: var(--mobo-text-muted); }
.mobo-mini-chapters { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.mobo-mini-chapter-row { display: flex; align-items: center; gap: 14px; }
.mobo-mini-chapter-link {
	background: var(--mobo-card-bg);
	color: var(--mobo-text-primary);
	padding: 4px 12px;
	border-radius: 16px;
	font-size: 12px;
	text-decoration: none;
	white-space: nowrap;
	min-width: 56px;
	text-align: center;
	flex-shrink: 0;
}
.mobo-mini-chapter-link:hover { color: var(--mobo-accent-gold); }
.mobo-mini-chapter-time { font-size: 13px; color: var(--mobo-text-muted); font-style: italic; white-space: nowrap; flex-shrink: 0; }
.mobo-new-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #e0512f;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	letter-spacing: 0.5px;
}
.mobo-pagination { display: flex; justify-content: center; gap: 8px; padding: 30px 0; }
.mobo-pagination .page-numbers {
	color: var(--mobo-text-secondary);
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 4px;
	border: 1px solid var(--mobo-border);
}
.mobo-pagination .page-numbers.current { background: var(--mobo-accent-gold); color: #1a1a1a; border-color: var(--mobo-accent-gold); }
.mobo-pagination .page-numbers:hover:not(.current) { border-color: var(--mobo-accent-gold); }

/* ---------- LATEST RELEASE PAGE ---------- */
.mobo-release-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr); /* 3 column chahiye to "2" ko "3" kar dein */
	gap: 24px 50px;
}
@media (max-width: 900px) { .mobo-release-grid { grid-template-columns: 1fr; } }

.mobo-release-item {
	display: flex;
	gap: 16px;
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--mobo-border);
}
.mobo-release-cover {
	display: block;
	flex-shrink: 0;
	width: 90px;
	aspect-ratio: 2/3;
	border-radius: 6px;
	overflow: hidden;
	background: var(--mobo-card-bg);
}
.mobo-release-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mobo-release-info { flex: 1; min-width: 0; }
.mobo-release-title { font-size: 16px; margin: 0 0 12px; }
.mobo-release-title a { color: var(--mobo-text-primary); text-decoration: none; }
.mobo-release-title a:hover { color: var(--mobo-accent-gold); }
.mobo-release-chapters { display: flex; flex-direction: column; gap: 10px; }
.mobo-release-chapter-row { display: flex; align-items: center; gap: 18px; }
.mobo-release-chapter-link {
	background: var(--mobo-card-bg);
	color: var(--mobo-text-primary);
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 13px;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 80px;
	text-align: center;
	flex-shrink: 0;
}
.mobo-release-chapter-link:hover { color: var(--mobo-accent-gold); }
.mobo-release-time { font-size: 14px; color: var(--mobo-text-muted); font-style: italic; white-space: nowrap; flex-shrink: 0; }
.mobo-podium-bg { background: var(--mobo-podium-bg); border-radius: 12px; padding: 40px 30px 0; }
.mobo-podium { display: flex; align-items: flex-end; gap: 16px; }
.mobo-podium-col { flex: 1; display: flex; flex-direction: column; align-items: center; }
.mobo-podium-cover { width: 100%; max-width: 170px; }
.mobo-podium-pedestal {
	width: 100%;
	max-width: 170px;
	background: var(--mobo-podium-block);
	color: var(--mobo-podium-num);
	font-size: 30px;
	font-weight: 700;
	text-align: center;
	border-radius: 6px 6px 0 0;
	margin-top: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.mobo-rank-1 { order: 3; } .mobo-rank-1 .mobo-podium-pedestal { height: 70px; }
.mobo-rank-2 { order: 2; } .mobo-rank-2 .mobo-podium-pedestal { height: 50px; }
.mobo-rank-3 { order: 4; } .mobo-rank-3 .mobo-podium-pedestal { height: 50px; }
.mobo-rank-4 { order: 1; } .mobo-rank-4 .mobo-podium-pedestal { height: 30px; }
.mobo-rank-5 { order: 5; } .mobo-rank-5 .mobo-podium-pedestal { height: 30px; }
.mobo-podium-captions { display: flex; gap: 16px; padding: 16px 30px 30px; text-align: center; }
.mobo-podium-caption { flex: 1; }
.mobo-podium-caption h3 { font-size: 15px; margin: 0 0 4px; }
.mobo-podium-caption h3 a { color: var(--mobo-text-primary); text-decoration: none; }
