/*
Theme Name: Spin PKR
Theme URI: https://spinpkr.site/
Author: Muse for Shah
Author URI: https://spinpkr.site/
Description: Spin PKR v12 — Play Store-inspired homepage in dark green-charcoal (not pure black), with single posts in the green pakaviator.pk style for an Android APK download and app review blog. Light / Dark theme toggle inside the hamburger drawer menu (choice saved), plus an Information section in the drawer linking to Privacy Policy, Terms and Conditions, About Us, Contact Us and Disclaimer pages. Gold and green accents, horizontal app rows, vertical app lists, APKPure-style swipeable category icon row below the hero carousel, SVG icons only (no emojis), no bell or profile avatar in the header, no author shown on single posts, right-side drawer menu, and a separate clean Blog layout for Blog-category posts. No hero text on the homepage, no bottom navigation, desktop layout polished (1200px container, 4-column app grids). No tracking, no external APIs, no sample content, no fake ratings or sizes. Single posts use a Play Store-style detail page: logo on the left, title once, stats row, one gold Download button, About this app, tag pills, and a ratings section shown only from admin-filled meta.
Version: 14.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spin-pkr
Tags: blog, app-reviews, apk, dark, green, gold, responsive, custom-logo, featured-images, sticky-post, threaded-comments, translation-ready
*/

/* ============ Tokens — Play Store dark, Spin PKR gold/green ============ */
:root {
  --bg: #16261f;
  --bg-2: #1c2f27;
  --surface: #223a30;
  --surface-2: #2a453a;
  --surface-3: #335144;
  --text: #f1f1f1;
  --text-2: #e8eaed;
  --muted: #a8b8ae;
  --muted-2: #8fa89b;
  --border: rgba(255, 255, 255, 0.08);
  --gold: #f2b705;
  --gold-2: #ffc107;
  --green: #0b3d2e;
  --green-2: #14664d;
  --green-bright: #10b981;
  --accent: #f2b705;
  --radius: 16px;
  --radius-sm: 12px;
  --icon-radius: 22%;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 0.6em; color: var(--text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em 1.25em; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #111; padding: 10px 16px; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; min-width: 0; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============ Header — Play Store style top bar ============ */
/* v13 FIX: header stacking context must sit ABOVE the drawer overlay (z 90),
   otherwise the overlay covers the drawer and its links look disabled and
   cannot be tapped. Drawer (z 95 inside header) is now clickable. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 14px; min-height: 60px; min-width: 0;
}
.header-right-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; width: 96px; }
.header-spacer { flex: 1 1 auto; min-width: 0; }
.site-branding { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-width: 0; flex: 0 0 auto; text-align: left; }
.site-branding a { justify-content: flex-start; }
.site-branding a { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; min-width: 0; }
.custom-logo { max-height: 40px; width: auto; border-radius: 8px; }
.site-title { font-size: 22px; font-weight: 800; letter-spacing: 0.2px; color: var(--text); white-space: nowrap; }
.site-title .gold { color: var(--gold); }
.site-description { display: none; }
.header-search-bar { flex: 1 1 auto; min-width: 0; display: flex; }
.header-search-bar .search-form { flex: 1; display: flex; gap: 0; min-width: 0; }
.header-search-bar input[type="search"] {
  flex: 1; min-width: 0; padding: 10px 16px; border-radius: 999px 0 0 999px;
  border: 1px solid var(--border); border-right: 0; background: var(--surface);
  color: var(--text); font-size: 15px;
}
.header-search-bar input[type="search"]::placeholder { color: var(--muted); }
.header-search-bar button {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 0 999px 999px 0; padding: 10px 16px; font-weight: 700; font-size: 15px;
}
.header-search-bar button:hover { background: var(--surface-2); }
.main-navigation {
  display: block; position: fixed; top: 0; right: 0; bottom: 0;
  width: 300px; max-width: 84vw; height: 100%;
  background: var(--bg-2); padding: 64px 20px 16px; border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform 0.3s ease; z-index: 95;
  overflow-y: auto; margin-left: 0;
}
.main-navigation.is-open { transform: translateX(0); }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
/* v13: drawer links bright white, full-width tap targets, never dimmed. */
.main-navigation a {
  display: block; color: var(--text); padding: 12px; border-radius: 12px; font-weight: 700; font-size: 16px;
}
.main-navigation a:hover, .main-navigation .current-menu-item > a {
  background: var(--surface); color: var(--gold); text-decoration: none;
}
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.icon-button {
  background: transparent; color: var(--text); border: 0;
  border-radius: 50%; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; line-height: 1;
}
.icon-button:hover { background: var(--surface); }
.icon-button svg { width: 28px; height: 28px; display: block; flex: 0 0 auto; }
.pill-icon svg, .nav-icon svg { width: 18px; height: 18px; display: block; flex: 0 0 auto; }
.pill-icon, .nav-icon { display: inline-flex; align-items: center; justify-content: center; }
.pill-icon svg { width: 15px; height: 15px; }
.nav-icon svg { width: 20px; height: 20px; }
.rating-pill .star svg { width: 13px; height: 13px; display: inline-block; vertical-align: -1px; }
.menu-toggle { display: inline-flex; }
.header-search { display: none; background: var(--bg-2); padding: 12px 20px 16px; border-top: 1px solid var(--border); }
.header-search.is-open { display: block; }
.live-search-form { max-width: 1200px; margin: 0 auto; display: flex; gap: 8px; }
.live-search-form input[type="search"] { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 16px; }
.live-search-close { background: transparent; color: var(--text); border: 0; border-radius: 50%; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.live-search-close:hover { background: var(--surface); }
.live-search-close svg { width: 28px; height: 28px; display: block; }
.live-search-results { max-width: 1200px; margin: 10px auto 0; }
.live-search-hint, .live-search-none { color: var(--muted); font-size: 14px; margin: 4px 0; }
.live-result-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; color: var(--text); text-decoration: none; }
.live-result-row:hover { background: var(--surface); text-decoration: none; }
.live-result-thumb { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; overflow: hidden; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; }
.live-result-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.live-result-text { min-width: 0; display: flex; flex-direction: column; }
.live-result-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-result-cat { color: var(--muted); font-size: 13px; }
.search-form input[type="search"] {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 16px;
}
.search-form button, .btn {
  background: var(--gold); color: #111; border: 0; border-radius: 999px;
  padding: 11px 18px; font-weight: 800; font-size: 15px;
}
.search-form button:hover, .btn:hover { background: var(--gold-2); text-decoration: none; }

/* Category icons row (v10) — APKPure style: circular icon + label below.
   ONE horizontal SWIPEABLE row on EVERY screen size (touch swipe on mobile,
   mouse drag / scroll on desktop). Single row, scroll-snap, no visible
   scrollbar. NOT a centred grid — it scrolls left to right. */
.cat-icons-section { padding-bottom: 0; }
.cat-icons-row {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 2px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.cat-icons-row::-webkit-scrollbar { display: none; }
.cat-icons-row:active { cursor: grabbing; }
.cat-icon-item {
  flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column;
  align-items: center; gap: 8px; min-width: 72px; color: var(--text);
}
.cat-icon-item:hover { text-decoration: none; }
.cat-icon-circle {
  width: 64px; height: 64px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--border); display: inline-flex; align-items: center;
  justify-content: center; color: var(--gold); box-shadow: var(--shadow);
}
.cat-icon-circle svg { width: 30px; height: 30px; display: block; }
.cat-icon-item:hover .cat-icon-circle { background: var(--surface-2); border-color: var(--gold); }
.cat-icon-item.is-active .cat-icon-circle { background: var(--gold); color: #111; border-color: var(--gold); }
.cat-icon-label { font-size: 13px; font-weight: 600; color: var(--text-2); text-align: center; white-space: nowrap; }
.cat-icon-item.is-active .cat-icon-label { color: var(--gold); font-weight: 800; }

/* ============ Compact hero — sticky carousel, not a big banner ============ */
.hero-compact { padding: 8px 0 4px; }
.hero-compact h1 { font-size: clamp(22px, 3.5vw, 30px); margin: 0 0 4px; }
.hero-compact h1 .gold { color: var(--gold); }
.hero-compact p.lead { color: var(--muted); font-size: 15px; max-width: 640px; margin: 0 0 16px; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.hero-badge {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; color: var(--text-2);
}
.hero-carousel {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 2px 14px; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.hero-card {
  flex: 0 0 320px; max-width: 88vw; scroll-snap-align: start;
  background: linear-gradient(135deg, var(--green) 0%, #0a2e22 100%);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  display: flex; gap: 14px; align-items: center; min-width: 0;
}
.hero-card .hero-icon { width: 72px; height: 72px; flex: 0 0 72px; border-radius: var(--icon-radius); overflow: hidden; background: #fff; }
.hero-card .hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.hero-card h3 { font-size: 18px; margin: 0 0 4px; }
.hero-card h3 a { color: #fff; }
.hero-card p { color: #cfe3d8; font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-card .btn { margin-top: 10px; display: inline-block; padding: 8px 16px; font-size: 14px; }

/* ============ Sections / rows ============ */
.section { padding: 28px 0 4px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { font-size: 22px; margin: 0; }
.section-head .section-kicker { color: var(--muted); font-size: 13px; font-weight: 600; }
.section-head a { font-weight: 700; white-space: nowrap; color: var(--gold); }
.row-arrow {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); font-size: 18px;
}
.row-arrow:hover { background: var(--surface-2); border-color: var(--gold); }
.row-scroll {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 16px; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.row-scroll::-webkit-scrollbar { height: 6px; }
.row-scroll::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 6px; }

/* App card — horizontal row: large rounded square icon, 2-line title */
.app-card {
  flex: 0 0 168px; max-width: 168px; scroll-snap-align: start; min-width: 0;
}
.app-card a { color: var(--text); }
.app-card a:hover { text-decoration: none; }
.app-icon {
  width: 100%; aspect-ratio: 1 / 1; border-radius: var(--icon-radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow); margin-bottom: 10px;
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon .icon-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-weight: 800; font-size: 20px; background: var(--green);
}
.app-card h3 {
  font-size: 15px; margin: 0 0 4px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.app-card h3 a:hover { color: var(--gold); }
.app-meta { color: var(--muted); font-size: 13px; line-height: 1.4; }
.app-meta .rating-pill {
  display: inline-block; background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 1px 7px; font-weight: 700; color: var(--text-2); margin-right: 6px;
}
.app-meta .rating-pill .star { color: var(--gold); }

/* App list row — Play Store "Suggested for you" style */
.app-list { display: flex; flex-direction: column; }
.app-row {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px 2px;
  border-bottom: 1px solid var(--border); min-width: 0;
}
.app-row:last-child { border-bottom: 0; }
.app-row .app-icon { width: 72px; height: 72px; flex: 0 0 72px; margin-bottom: 0; border-radius: 16px; }
.app-row-body { flex: 1 1 auto; min-width: 0; }
.app-row-body h3 { font-size: 17px; margin: 0 0 3px; }
.app-row-body h3 a { color: var(--text); }
.app-row-body h3 a:hover { color: var(--gold); }
.app-row-body .app-sub { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 0 0 6px; }
.app-row-body .app-meta { font-size: 13px; }

/* Grid cards — Latest Blogs */
.card-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0;
}
.card:hover { border-color: var(--gold); }
.card-thumb { aspect-ratio: 16 / 9; background: var(--green); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb .thumb-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-weight: 800; font-size: 22px; background: var(--green);
}
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.card-cat a { color: var(--gold); }
.card h3 { font-size: 19px; margin: 0; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--gold); }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card-meta { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.read-more { font-weight: 800; color: var(--gold); white-space: nowrap; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cat-card {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.cat-card:hover { background: var(--surface-2); border-color: var(--gold); text-decoration: none; }
.cat-card strong { font-size: 18px; }
.cat-card span { color: var(--gold); font-weight: 700; font-size: 14px; white-space: nowrap; }

/* ============ Single post / page ============ */
.single-wrap { max-width: 820px; margin: 0 auto; padding: 28px 20px 48px; }
.entry-header { margin-bottom: 20px; }
.entry-header h1 { font-size: clamp(26px, 4vw, 38px); }
.entry-meta { color: var(--muted); font-size: 14px; display: flex; gap: 12px; flex-wrap: wrap; }
.entry-meta a { font-weight: 700; }
.app-detail-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.app-detail-head .app-icon { width: 96px; height: 96px; flex: 0 0 96px; margin-bottom: 0; }
.post-thumbnail { border-radius: var(--radius); overflow: hidden; margin: 0 0 24px; box-shadow: var(--shadow); background: var(--surface); }
.post-thumbnail img { width: 100%; }
.entry-content { font-size: 17px; color: var(--text-2); }
.entry-content h2 { font-size: 24px; margin-top: 1.6em; }
.entry-content h3 { font-size: 20px; margin-top: 1.4em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote {
  border-left: 4px solid var(--gold); margin: 1.2em 0; padding: 10px 18px; background: var(--surface);
}
.entry-content a { font-weight: 600; }

.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.post-nav a { font-weight: 700; }

/* Archive / search */
.page-head { padding: 28px 0 8px; }
.page-head h1 { font-size: clamp(26px, 4vw, 36px); }
.page-head p { color: var(--muted); max-width: 640px; }
.no-results { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }

/* Sidebar */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.widget {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.widget h2, .widget .widget-title { font-size: 18px; }
.widget ul { list-style: none; margin: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--text); }

/* Comments */
.comments-area { margin-top: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.comment-list { list-style: none; margin: 0; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--border); }
.comment-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 16px; font-family: inherit;
  background: var(--bg-2); color: var(--text);
}
.comment-form textarea { min-height: 120px; }

/* Pagination */
.pagination { margin: 28px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 13px; font-weight: 700; color: var(--text);
}
.pagination .page-numbers.current { background: var(--gold); color: #111; border-color: var(--gold); }

/* ============ Footer ============ */
.site-footer { background: var(--bg-2); color: #c9c9c9; margin-top: 48px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 36px 20px 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.footer-menu { list-style: none; margin: 0; }
.footer-menu li { padding: 5px 0; }
.disclaimer {
  background: rgba(242, 183, 5, 0.10); border: 1px solid rgba(242, 183, 5, 0.4);
  border-radius: 10px; padding: 14px 16px; font-size: 14px; margin-top: 24px;
}
.disclaimer strong { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border); margin-top: 28px; padding-top: 16px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted);
}


/* ============ Responsive ============ */
@media (max-width: 900px) {
  .card-grid, .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-search-bar { display: none; }
  .header-search-bar.is-mobile-open { display: flex; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .menu-toggle { display: inline-flex; }
  .main-navigation {
    display: block; position: fixed; top: 0; right: 0; bottom: 0;
    width: 300px; max-width: 84vw; height: 100%;
    background: var(--bg-2); padding: 64px 20px 16px; border-left: 1px solid var(--border);
    transform: translateX(100%); transition: transform 0.3s ease; z-index: 95;
    overflow-y: auto;
  }
  .main-navigation.is-open { transform: translateX(0); }
  .main-navigation ul { flex-direction: column; gap: 2px; }
  .main-navigation a { display: block; padding: 10px 12px; }
  .site-header { position: sticky; }
  .site-title { font-size: 20px; }
  .header-inner { padding: 10px 12px; min-height: 56px; gap: 10px; }
  .header-right-actions { width: 96px; }
  .header-spacer { flex: 1 1 auto; }
  .custom-logo { max-height: 36px; }
  .custom-logo { max-height: 36px; }
  .site-title { font-size: 19px; }
  .hero-compact h1 { font-size: 20px; }
  .hero-card h3 { font-size: 16px; }
  .hero-card .hero-icon { width: 72px; height: 72px; flex-basis: 72px; }
  .hero-card .btn { padding: 7px 14px; font-size: 13px; }
  .spk-buttons { flex-direction: column; }
  .spk-btn { width: 100%; max-width: 300px; }
  .cat-icons-row { gap: 16px; padding: 4px 2px 10px; }
  .cat-icon-item { min-width: 64px; }
  .cat-icon-circle { width: 64px; height: 64px; }
  .hero-card { flex-basis: 280px; }
  .app-card { flex-basis: 140px; max-width: 140px; }
  .app-row .app-icon { width: 64px; height: 64px; flex-basis: 64px; }
  .card-grid, .cat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 22px 0 4px; }
  .section-head h2 { font-size: 20px; }
  .row-arrow { display: none; }
  .single-wrap { padding: 20px 16px 36px; }
  .download-button { width: 100%; }
  .app-detail-head .app-icon { width: 72px; height: 72px; flex-basis: 72px; }
}

/* ============ v3 — Single post, green pakaviator style ============
   Homepage stays Play Store dark. Only single posts use this green
   treatment. Centred text, dark green background, bright green boxes,
   yellow pill headings, green Download / Register buttons.
   Font: system stack, bold headings — no Google Fonts, no external APIs. */
.single .site-main, .single-wrap {
  background: #064e3b;
  color: #ffffff;
}
.single-wrap {
  max-width: 860px;
  border-radius: 0;
  text-align: left;
}
.single-wrap .entry-header h1 { color: #fff; font-weight: 800; }
.single-wrap .entry-content p { line-height: 1.75; margin: 0 0 16px; }
.single-wrap .entry-content img { border-radius: 14px; margin: 16px auto; display: block; }
.single-wrap .entry-meta { color: #d6e8dd; justify-content: center; }
.single-wrap .entry-meta a { color: #fde047; }
.single-wrap .entry-content { color: #fff; text-align: left; }
.single-wrap .entry-content p { color: #fff; }
.single-wrap .entry-content a { color: #fde047; }
.single-wrap .entry-content ul, .single-wrap .entry-content ol { text-align: left; display: inline-block; margin-left: 0; }
.single-wrap .entry-content li { color: #fff; }
.single-wrap .app-detail-head { justify-content: center; flex-wrap: wrap; text-align: left; }
.single-wrap .app-detail-head .app-icon { border: 3px solid #fde047; border-radius: 22%; }
.single-wrap .post-nav a { color: #fde047; }
/* Info grid rendered by single.php from post meta */
.spk-info-box-theme {
  background: #10b981; border: 1px solid #fde047; border-radius: 8px;
  padding: 22px 12px; min-height: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.spk-info-box-theme .spk-info-label { font-size: 22px; font-weight: 800; color: #fff; }
.spk-info-box-theme .spk-info-value { font-size: 18px; font-weight: 700; color: #fde047; }
.spk-register-button {
  display: inline-block; background: #00a86b; color: #fff; font-weight: 700; font-size: 15px;
  padding: 10px 18px; border-radius: 999px; border: 2px solid #fde047; margin: 0;
}
.spk-register-button:hover { background: #10b981; color: #fff; text-decoration: none; }
/* --- .spk-* classes used by the articles-v2 HTML (pasted post content) --- */
.spk-app { text-align: center; }
.spk-head { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 8px 0 18px; text-align: left; }
.spk-head h1 { font-size: clamp(24px, 4vw, 34px); color: #fff; margin: 0 0 8px; }
.spk-logo { width: 120px; height: 120px; border-radius: 22%; border: 3px solid #fde047; object-fit: cover; background: #fff; flex: 0 0 auto; }
.spk-intro { color: #fff; font-size: 17px; }
.spk-buttons { margin: 20px 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.spk-btn {
  display: inline-block; width: auto; max-width: 300px; background: #00a86b; color: #fff;
  font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 999px;
  border: 2px solid #fde047; text-decoration: none; text-align: center;
}
.spk-btn:hover { background: #10b981; color: #fff; text-decoration: none; }
.spk-info-box {
  background: #10b981; border: 1px solid #fde047; border-radius: 8px;
  padding: 22px 12px; min-height: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.spk-info-label { font-size: 22px; font-weight: 800; color: #fff; }
.spk-info-value { font-size: 18px; font-weight: 700; color: #fde047; }
.spk-note { font-size: 14px; color: #d6e8dd; margin: 6px 0 20px; }
.spk-toc, .spk-req {
  background: #0a5c3f; border: 1px solid #fde047; border-radius: 14px;
  padding: 20px; margin: 24px 0; text-align: left;
}
.spk-toc h2, .spk-req h2 {
  background: #00a86b; color: #fde047; border-radius: 999px;
  padding: 10px 18px; text-align: center; font-size: 22px; margin: 0 0 14px;
}
.spk-toc ul, .spk-req ul { margin: 0; padding-left: 20px; }
.spk-toc a { color: #fde047; font-weight: 600; }
.spk-pill {
  background: #00a86b; color: #fde047 !important; border: 1px solid #fde047;
  border-radius: 14px; padding: 14px 18px; text-align: center;
  font-size: clamp(22px, 4vw, 30px); font-weight: 800; margin: 32px 0 16px;
}
.spk-faq { margin: 16px 0 24px; text-align: left; }
.spk-faq-item { background: #00a86b; border: 1px solid #fde047; border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.spk-faq-q {
  width: 100%; background: #00a86b; color: #fff; border: 0; text-align: left;
  font-size: 17px; font-weight: 800; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px;
}
.spk-faq-q::after { content: "+"; color: #fde047; font-size: 22px; font-weight: 800; flex: 0 0 auto; }
.spk-faq-item.is-open .spk-faq-q::after { content: "\2212"; }
.spk-faq-a { display: none; padding: 0 16px 14px; }
.spk-faq-a p { color: #fff; margin: 0; }
.spk-faq-item.is-open .spk-faq-a { display: block; }
.spk-disclaimer {
  background: rgba(253, 224, 71, 0.12); border: 1px solid #fde047; border-radius: 10px;
  padding: 14px 16px; font-size: 15px; margin-top: 24px; text-align: center;
}
.spk-disclaimer strong { color: #fde047; }
@media (max-width: 640px) {
  .spk-head { flex-direction: column; text-align: center; }
  .single-wrap .entry-content ul, .single-wrap .entry-content ol { text-align: left; }
}

/* ============ v4 — Play Store detail page (single posts) ============
   Back arrow + bookmark, developer link, stats row, one gold Install
   button, About section, tag pills, ratings section. SVG icons only. */
.detail-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.detail-topbar svg { width: 22px; height: 22px; display: block; }
.detail-back { color: #fff; display: inline-flex; padding: 6px; border-radius: 50%; }
.detail-back:hover { background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.detail-bookmark { color: #fff; display: inline-flex; padding: 6px; }
.detail-developer { display: block; color: #8ab4ff; font-size: 14px; font-weight: 600; text-align: left; margin-bottom: 2px; }
.detail-developer:hover { color: #aecbff; }
.detail-header { text-align: left; }
.detail-header h1 { color: #fff; }
.detail-head-text { flex: 1 1 auto; min-width: 0; }
.detail-version { color: #d6e8dd; font-size: 14px; margin: 6px 0 0; }
.detail-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0 8px; text-align: center;
}
.detail-stat { padding: 4px 8px; min-width: 0; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.detail-stat:first-child { border-left: 0; }
.detail-stat-value { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 15px; font-weight: 800; color: #fff; white-space: nowrap; }
.detail-stat-value svg { width: 15px; height: 15px; flex: 0 0 auto; }
.detail-stat-value .detail-star { color: #f2b705; }
.detail-stat-label { display: block; font-size: 12px; color: #a8b8ae; margin-top: 2px; }
.detail-install {
  display: block; width: 100%; max-width: 420px; margin: 18px auto; padding: 12px 18px;
  background: #f2b705; color: #111; font-size: 16px; font-weight: 700;
  border-radius: 999px; text-align: center; text-decoration: none;
}
.detail-install:hover { background: #ffc107; color: #111; text-decoration: none; }
.detail-about { text-align: left; margin: 24px 0 12px; }
.detail-about h2 { display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: 20px; margin: 0 0 8px; }
.detail-about h2 svg { width: 20px; height: 20px; color: #a8b8ae; flex: 0 0 auto; }
.detail-about p { color: #fff; margin: 0; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; justify-content: center; }
.detail-tag {
  background: #223a30; border: 1px solid rgba(255, 255, 255, 0.08); color: #fff;
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600;
}
.detail-tag:hover { border-color: #f2b705; color: #f2b705; text-decoration: none; }
.detail-ratings { text-align: left; margin: 28px 0 8px; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 20px; }
.detail-ratings h2 { color: #fff; font-size: 20px; margin: 0 0 10px; }
.detail-ratings-body { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-ratings-number { font-size: 40px; font-weight: 800; color: #fff; line-height: 1; }
.detail-stars { display: inline-flex; gap: 2px; }
.detail-stars .detail-star { width: 20px; height: 20px; color: rgba(255, 255, 255, 0.25); }
.detail-stars .detail-star.is-filled { color: #f2b705; }
.detail-reviews-count { color: #a8b8ae; font-size: 14px; }
@media (max-width: 640px) {
  .detail-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .detail-stat-value { font-size: 13px; }
  .detail-stat-label { font-size: 11px; }
  .detail-install { max-width: 100%; }
  .detail-header h1 { font-size: 22px; }
}

/* ============ v5 — Right-side drawer, footer simple, blog layout ============ */
.drawer-overlay {
  display: none; position: fixed; inset: 0; background: rgba(2, 6, 16, 0.62);
  z-index: 90;
}
.drawer-overlay.is-open { display: block; }
.drawer-close {
  position: absolute; top: 10px; right: 12px; width: 44px; height: 44px;
  background: transparent; color: var(--text); border: 0; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
}
@media (max-width: 640px) {
  .drawer-close { display: inline-flex; }
}
.drawer-close svg { width: 28px; height: 28px; }
.drawer-close:hover { background: var(--surface); }
.detail-app-name { color: #fff; font-size: 16px; font-weight: 800; margin: 0 0 4px; }
/* Footer v5: logo + copyright + short 18+ label only */
.footer-simple { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-simple .custom-logo { max-height: 30px; }
.footer-simple .footer-age { color: var(--gold); font-weight: 800; font-size: 14px; }
.footer-age-logo { width: 56px; height: 56px; border-radius: 50%; display: block; }
/* Blog layout: dark green-charcoal, readable, left-aligned, no app chrome */
.single-wrap.blog-layout { background: var(--bg); text-align: left; }
.single-wrap.blog-layout .entry-header h1 { color: #fff; }
.single-wrap.blog-layout .entry-meta { justify-content: flex-start; }
.single-wrap.blog-layout .entry-content { text-align: left; color: var(--text-2); }
.single-wrap.blog-layout .entry-content p { color: var(--text-2); }
.single-wrap.blog-layout .entry-content h2 { color: #fff; font-size: 24px; margin-top: 1.6em; }
.single-wrap.blog-layout .entry-content h3 { color: #fff; font-size: 20px; }
.single-wrap.blog-layout .entry-content a { color: var(--gold); }
.single-wrap.blog-layout .entry-content ul, .single-wrap.blog-layout .entry-content ol { text-align: left; display: block; margin-left: 1.25em; }
.blog-featured { border-radius: var(--radius); overflow: hidden; margin: 0 0 24px; box-shadow: var(--shadow); background: var(--surface); }
.blog-featured img { width: 100%; }
.blog-note {
  background: rgba(242, 183, 5, 0.10); border: 1px solid rgba(242, 183, 5, 0.4);
  border-radius: 10px; padding: 14px 16px; font-size: 15px; margin-top: 24px;
}
.blog-note strong { color: var(--gold); }

/* ============ v7 — Play Store detail header: logo left, title right ============ */
.detail-header-row { display: flex; gap: 20px; align-items: flex-start; text-align: left; margin: 8px 0 4px; }
.detail-header-row .app-icon { width: 96px; height: 96px; flex: 0 0 96px; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.detail-header-row .app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-header-text { min-width: 0; flex: 1; }
.detail-header-text h1 { font-size: 28px; line-height: 1.25; margin: 0 0 6px; text-align: left; }
.detail-header-text .detail-developer { display: inline-block; margin-bottom: 6px; }
.detail-header-text .entry-meta { justify-content: flex-start; margin: 0; }
.detail-header-text .card-cat { margin: 2px 0; }
.detail-header-text .detail-version { margin: 2px 0 0; color: #d6e8dd; }
@media (max-width: 640px) {
  .detail-header-row { gap: 14px; }
  .detail-header-row .app-icon { width: 72px; height: 72px; flex-basis: 72px; }
  .detail-header-text h1 { font-size: 22px; }
}
/* ============ v7 — Professional comment button ============ */
.comment-reply-title { font-size: 22px; font-weight: 800; margin: 0 0 12px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { background: #16261f; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; color: #fff; }
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid #f2b705; border-color: #f2b705; }
.spk-comment-submit, .comment-form input[type="submit"], .comment-form .submit {
  background: #f2b705; color: #16261f; border: 0; border-radius: 999px;
  padding: 12px 24px; font-size: 16px; font-weight: 800; font-family: inherit;
  cursor: pointer; display: block; width: 100%; max-width: 320px; margin: 12px auto 0;
}
.spk-comment-submit:hover, .comment-form input[type="submit"]:hover { background: #d9a404; }

/* ============ v10 — Desktop polish ============
   Mobile (<=640px) is untouched above. Desktop gets a wider centred
   container, larger hero cards and 4/5-column app grids. The category
   icons row stays a horizontal SWIPEABLE row on desktop too (same
   overflow-x row, max-width 1200px container) — never a centred grid. */
@media (min-width: 1024px) {
  body { font-size: 16px; }
  .wrap { padding: 0 24px; }
  .header-inner { padding: 12px 24px; min-height: 64px; }
  .section-head h2 { font-size: 24px; }
  /* Hero: bigger cards, bigger title, taller on desktop. */
  .hero-carousel { gap: 20px; padding: 8px 2px 16px; }
  .hero-card { flex-basis: 420px; min-height: 280px; padding: 28px; }
  .hero-card .hero-icon { width: 96px; height: 96px; flex-basis: 96px; }
  .hero-card h3 { font-size: 26px; }
  .hero-card p { font-size: 15px; }
  /* Category icons row: same swipeable row, bigger circles, 1200px wrap. */
  .cat-icon-circle { width: 72px; height: 72px; }
  .cat-icon-circle svg { width: 34px; height: 34px; }
  .cat-icon-item { min-width: 80px; }
  .cat-icon-label { font-size: 14px; }
  /* Recommended row becomes a 4-column grid on desktop. */
  .row-scroll { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; overflow: visible; padding: 4px 2px 16px; }
  .row-scroll .app-card { flex: none; max-width: none; }
  .row-scroll .app-card .app-icon { width: 100%; }
  /* Suggested list: two-column rows on desktop. */
  .app-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  /* Latest Blogs: 3 columns. */
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Detail page: wider centred content, spaced stats. */
  .single-wrap { max-width: 900px; }
  .detail-stats { margin: 24px 0 12px; }
  .detail-header-text h1 { font-size: 32px; }
}
@media (min-width: 1440px) {
  .row-scroll { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hero-card { flex-basis: 460px; min-height: 320px; }
  .hero-card h3 { font-size: 28px; }
}

/* ============ v12 — Light / Dark theme toggle (drawer) ============
   Default is dark (the current look). The toggle in the drawer adds
   `light-theme` to <html> (and <body>), saved in localStorage as
   'spin-pkr-theme'. Light palette: #F4F6F5 background, white cards,
   dark green-charcoal text, gold accents stay. */
.drawer-theme { margin-top: 16px; }
.theme-toggle {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px;
  padding: 8px 12px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-family: inherit;
  font-size: 15px; font-weight: 700; cursor: pointer; text-align: left;
}
.theme-toggle:hover { background: var(--surface-2); border-color: var(--gold); }
.theme-toggle-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--gold); }
.theme-toggle-icon svg { width: 22px; height: 22px; display: block; }
.theme-icon-moon { display: none; }
html.light-theme .theme-icon-sun { display: none; }
html.light-theme .theme-icon-moon { display: inline-flex; }
.theme-toggle-label { flex: 1 1 auto; }
.theme-switch {
  flex: 0 0 auto; width: 44px; height: 24px; border-radius: 999px;
  background: #5a6b62; position: relative; transition: background 0.2s ease;
}
.theme-switch-knob {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
html.light-theme .theme-switch { background: var(--gold); }
html.light-theme .theme-switch-knob { transform: translateX(20px); }

/* v12 — Drawer "Information" section: same look as the primary menu. */
.drawer-more { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.drawer-more-title {
  margin: 0 0 6px; padding: 0 12px; font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.drawer-more-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }

/* ============ v12 — Light theme overrides ============
   Variable swap first (covers everything built on the tokens), then
   explicit overrides for the rules that use hardcoded dark colours. */
html.light-theme, body.light-theme {
  --bg: #f4f6f5;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #edf2ef;
  --surface-3: #dde7e0;
  --text: #16261f;
  --text-2: #1e2f27;
  --muted: #4a5a52;
  --muted-2: #5f7268;
  --border: #d8e0dc;
  --green: #0b3d2e;
  --green-2: #14664d;
  --shadow: 0 4px 16px rgba(22, 38, 31, 0.10);
}
html.light-theme .cat-icon-circle { background: #e8efea; border-color: #d8e0dc; }
html.light-theme .cat-icon-item.is-active .cat-icon-circle { background: var(--gold); border-color: var(--gold); }
html.light-theme .hero-card { background: linear-gradient(135deg, #0b3d2e 0%, #14664d 100%); }
html.light-theme .hero-card h3 a { color: #fff; }
html.light-theme .hero-card p { color: #d8e8de; }
html.light-theme .site-footer { color: #4a5a52; }
html.light-theme .site-footer h2, html.light-theme .site-footer h3 { color: #16261f; }
html.light-theme .site-footer a { color: #16261f; }
html.light-theme .site-footer a:hover { color: #8a6d00; }
/* Single post wrapper: green block becomes white in light mode. */
html.light-theme .single .site-main, html.light-theme .single-wrap { background: #ffffff; color: #16261f; }
html.light-theme .single-wrap .entry-header h1 { color: #16261f; }
html.light-theme .single-wrap .entry-meta { color: #4a5a52; }
html.light-theme .single-wrap .entry-meta a { color: #0b5c40; }
html.light-theme .single-wrap .entry-content { color: #16261f; }
html.light-theme .single-wrap .entry-content p { color: #16261f; }
html.light-theme .single-wrap .entry-content a { color: #0b5c40; }
html.light-theme .single-wrap .entry-content li { color: #16261f; }
html.light-theme .single-wrap .app-detail-head .app-icon { border-color: var(--gold); }
html.light-theme .single-wrap .post-nav a { color: #0b5c40; }
/* Article (.spk-*) content in light mode: dark text on white, green pills kept but darker for contrast. */
html.light-theme .spk-head h1 { color: #16261f; }
html.light-theme .spk-intro { color: #16261f; }
html.light-theme .spk-info-box { background: #ffffff; border-color: #d8e0dc; }
html.light-theme .spk-info-label { color: #16261f; }
html.light-theme .spk-info-value { color: #0b5c40; }
html.light-theme .spk-note { color: #4a5a52; }
html.light-theme .spk-toc, html.light-theme .spk-req { background: #ffffff; border-color: #d8e0dc; }
html.light-theme .spk-toc h2, html.light-theme .spk-req h2 { background: #0b3d2e; color: #fff; }
html.light-theme .spk-toc a { color: #0b5c40; }
html.light-theme .spk-pill { background: #0b3d2e; color: #fff !important; border-color: #0b3d2e; }
html.light-theme .spk-faq-item { background: #ffffff; border-color: #d8e0dc; }
html.light-theme .spk-faq-q { background: #ffffff; color: #16261f; }
html.light-theme .spk-faq-q::after { color: #0b5c40; }
html.light-theme .spk-faq-a p { color: #16261f; }
html.light-theme .spk-disclaimer { background: #fff7d6; border-color: #e3c766; color: #16261f; }
html.light-theme .spk-disclaimer strong { color: #7a5b00; }
html.light-theme .spk-info-box-theme { background: #ffffff; border-color: #d8e0dc; }
html.light-theme .spk-info-box-theme .spk-info-label { color: #16261f; }
html.light-theme .spk-info-box-theme .spk-info-value { color: #0b5c40; }
/* Play Store detail page in light mode. */
html.light-theme .detail-back, html.light-theme .detail-bookmark { color: #16261f; }
html.light-theme .detail-back:hover { background: rgba(22, 38, 31, 0.06); }
html.light-theme .detail-developer { color: #0b5c40; }
html.light-theme .detail-developer:hover { color: #14664d; }
html.light-theme .detail-header h1 { color: #16261f; }
html.light-theme .detail-version, html.light-theme .detail-header-text .detail-version { color: #4a5a52; }
html.light-theme .detail-stat { border-left-color: rgba(22, 38, 31, 0.14); }
html.light-theme .detail-stat-value { color: #16261f; }
html.light-theme .detail-stat-label { color: #4a5a52; }
html.light-theme .detail-about h2 { color: #16261f; }
html.light-theme .detail-about h2 svg { color: #4a5a52; }
html.light-theme .detail-about p { color: #16261f; }
html.light-theme .detail-tag { background: #ffffff; border-color: #d8e0dc; color: #16261f; }
html.light-theme .detail-ratings { border-top-color: rgba(22, 38, 31, 0.14); }
html.light-theme .detail-ratings h2 { color: #16261f; }
html.light-theme .detail-ratings-number { color: #16261f; }
html.light-theme .detail-stars .detail-star { color: rgba(22, 38, 31, 0.25); }
html.light-theme .detail-reviews-count { color: #4a5a52; }
html.light-theme .detail-app-name { color: #16261f; }
html.light-theme .detail-header-row .app-icon { box-shadow: 0 4px 16px rgba(22, 38, 31, 0.15); }
/* Blog layout in light mode (variables cover most of it). */
html.light-theme .single-wrap.blog-layout .entry-header h1 { color: #16261f; }
html.light-theme .single-wrap.blog-layout .entry-content h2,
html.light-theme .single-wrap.blog-layout .entry-content h3 { color: #16261f; }
/* Comment form in light mode: white fields, dark text, gold button stays. */
html.light-theme .comment-form input[type="text"],
html.light-theme .comment-form input[type="email"],
html.light-theme .comment-form input[type="url"],
html.light-theme .comment-form textarea { background: #ffffff; border-color: #c9d4ce; color: #16261f; }
html.light-theme .comment-form input::placeholder,
html.light-theme .comment-form textarea::placeholder { color: #5f7268; }

/* ============ v14 — Bottom navigation, MOBILE ONLY ============ */
/* Hidden on desktop (>=641px). Fixed bar, 64px, dark green-charcoal.
   z-index 80: below header (100) and drawer (95 inside header), so the
   drawer still opens above it and its links stay clickable (v13 lesson). */
.bottom-nav { display: none; }
@media (max-width: 640px) {
  body { padding-bottom: 64px; }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    height: 64px; background: var(--bg-2); border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav-item {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    background: transparent; border: 0; padding: 8px 4px 6px;
    color: var(--muted); font-family: inherit; font-size: 11px; font-weight: 700;
    text-decoration: none; cursor: pointer;
  }
  .bottom-nav-item:hover { color: var(--text); text-decoration: none; }
  .bottom-nav-item.is-active { color: var(--gold); }
  .bottom-nav-icon { display: inline-flex; align-items: center; justify-content: center; }
  .bottom-nav-icon svg { width: 24px; height: 24px; display: block; }
  .bottom-nav-label { line-height: 1; white-space: nowrap; }
}
/* Bottom nav in light mode: white bar, dark text, gold active. */
html.light-theme .bottom-nav { background: #ffffff; border-top-color: #d8e0dc; }
html.light-theme .bottom-nav-item { color: #4a5a52; }
html.light-theme .bottom-nav-item:hover { color: #16261f; }
html.light-theme .bottom-nav-item.is-active { color: #b89000; }
