/*
Theme Name:  SmartStreamTips
Theme URI:   https://smartstreamtips.com
Author:      SmartStreamTips
Author URI:  https://smartstreamtips.com
Description: A high-value, AdSense-safe WordPress theme for streaming tutorials, Firestick guides, and Android TV content. Dark tech aesthetic with full SEO optimization.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smartstreamtips
Tags: dark, tech, blog, adsense, streaming, responsive, custom-menu, featured-images, threaded-comments
*/

/* ============================================================
   0. IMPORT FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --bg:          #080c14;
  --bg2:         #0c1220;
  --bg3:         #101828;
  --card:        #111827;
  --card2:       #1a2332;
  --border:      #1e2d42;
  --border2:     #243347;

  --accent:      #3b82f6;
  --accent-h:    #2563eb;
  --accent-glow: rgba(59,130,246,.25);
  --accent2:     #8b5cf6;
  --red:         #ef4444;
  --red-soft:    rgba(239,68,68,.1);
  --green:       #22c55e;
  --green-soft:  rgba(34,197,94,.1);
  --orange:      #f97316;
  --orange-soft: rgba(249,115,22,.1);
  --purple-soft: rgba(139,92,246,.1);
  --gold:        #f59e0b;

  --text:        #f1f5f9;
  --text2:       #cbd5e1;
  --muted:       #64748b;
  --muted2:      #475569;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --max:    1200px;
  --gap:    24px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.4);
  --shadow:    0 8px 32px rgba(0,0,0,.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.6);
  --shadow-accent: 0 0 30px var(--accent-glow);

  /* Transitions */
  --trans: all .22s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay for depth */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: .4;
}

/* Grid background */
.site-wrapper {
  position: relative;
  background-image:
    linear-gradient(rgba(59,130,246,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  min-height: 100vh;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.2em; color: var(--text2); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: var(--trans); }
a:hover { color: var(--accent-h); }

strong, b { font-weight: 600; color: var(--text); }
em, i { font-style: italic; }

code, pre {
  font-family: var(--font-mono);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
code { padding: 2px 7px; font-size: .85em; }
pre  { padding: 20px; overflow-x: auto; margin: 24px 0; }
pre code { background: none; border: none; padding: 0; }

blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  background: rgba(59,130,246,.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text2);
}

ul, ol { padding-left: 1.5em; margin-bottom: 1.2em; color: var(--text2); }
li { margin-bottom: .4em; }

img { max-width: 100%; height: auto; display: block; }
hr  { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

table { width: 100%; border-collapse: collapse; margin: 24px 0; }
th, td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; font-size: .9rem; }
th { background: var(--bg3); font-family: var(--font-display); font-weight: 600; color: var(--text); }
tr:nth-child(even) td { background: rgba(255,255,255,.02); }

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.section { padding: 64px 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); }

.flex       { display: flex; }
.flex-center{ display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-sm     { gap: 8px; }
.gap-md     { gap: 16px; }

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  cursor: pointer; border: none; transition: var(--trans);
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-2px); color: #fff; box-shadow: 0 0 40px var(--accent-glow); }

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(59,130,246,.06); color: var(--text); }

.btn-sm { padding: 7px 16px; font-size: .8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ============================================================
   6. BADGES / TAGS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.badge-blue   { background: rgba(59,130,246,.12); color: var(--accent); border: 1px solid rgba(59,130,246,.2); }
.badge-red    { background: var(--red-soft); color: var(--red); border: 1px solid rgba(239,68,68,.2); }
.badge-green  { background: var(--green-soft); color: var(--green); border: 1px solid rgba(34,197,94,.2); }
.badge-purple { background: var(--purple-soft); color: var(--accent2); border: 1px solid rgba(139,92,246,.2); }
.badge-orange { background: var(--orange-soft); color: var(--orange); border: 1px solid rgba(249,115,22,.2); }

/* ============================================================
   7. CARDS
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--trans);
  display: flex; flex-direction: column;
}
.card:hover {
  border-color: rgba(59,130,246,.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(59,130,246,.1);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg3);
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-thumb img { transform: scale(1.06); }

.card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--bg3) 0%, var(--card2) 100%);
}

.card-cat {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 6px;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.cat-fire   { background: rgba(239,68,68,.85);   color: #fff; }
.cat-tv     { background: rgba(59,130,246,.85);  color: #fff; }
.cat-stream { background: rgba(139,92,246,.85);  color: #fff; }
.cat-review { background: rgba(245,158,11,.85);  color: #fff; }

.card-read-time {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
  color: #fff; font-size: .68rem; padding: 3px 8px; border-radius: 4px;
  font-family: var(--font-mono);
}

.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.card-title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; line-height: 1.35;
  margin-bottom: 10px; letter-spacing: -.01em;
  color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--accent); }

.card-excerpt {
  font-size: .85rem; color: var(--muted); line-height: 1.6;
  flex: 1; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border);
  font-size: .78rem; color: var(--muted);
}
.card-meta { display: flex; align-items: center; gap: 12px; }
.card-meta-item { display: flex; align-items: center; gap: 5px; }
.card-meta-item svg { width: 13px; height: 13px; flex-shrink: 0; }

.read-more {
  font-family: var(--font-display); font-size: .8rem; font-weight: 600;
  color: var(--accent); display: flex; align-items: center; gap: 4px;
  transition: gap .2s;
}
.read-more:hover { gap: 8px; color: var(--accent-h); }

/* Featured card */
.card-featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.2fr 1fr;
}
.card-featured .card-thumb { aspect-ratio: auto; min-height: 280px; }
.card-featured .card-title { font-size: 1.25rem; }
.card-featured .card-body  { padding: 28px; }

/* ============================================================
   8. NAVBAR
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(8,12,20,.88);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gap);
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 20px;
}

.site-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 800;
  letter-spacing: -.025em; flex-shrink: 0;
}
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; flex-shrink: 0;
  box-shadow: 0 0 20px rgba(59,130,246,.3);
}
.logo-text span { color: var(--accent); }

.primary-nav ul {
  display: flex; list-style: none; gap: 2px;
}
.primary-nav a {
  padding: 7px 13px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500; color: var(--muted);
  transition: var(--trans);
}
.primary-nav a:hover,
.primary-nav .current-menu-item a {
  background: rgba(255,255,255,.05);
  color: var(--text);
}
.nav-cta-btn {
  background: var(--accent) !important;
  color: #fff !important; font-weight: 600 !important;
  padding: 8px 18px !important;
}
.nav-cta-btn:hover { background: var(--accent-h) !important; transform: translateY(-1px); }

/* Search toggle */
.nav-search-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent;
  color: var(--muted); cursor: pointer; transition: var(--trans);
  display: flex; align-items: center; justify-content: center;
}
.nav-search-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Mobile burger */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; padding: 8px;
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav-burger span {
  display: block; width: 100%; height: 2px;
  background: var(--muted); border-radius: 2px; transition: var(--trans);
}

/* ============================================================
   9. HERO (used in header.php partial)
   ============================================================ */
.hero-strip {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 80px var(--gap) 64px;
  text-align: center; position: relative; overflow: hidden;
}
.hero-strip::before {
  content: '';
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.2);
  color: var(--accent); padding: 6px 16px; border-radius: 100px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 22px; animation: fadeUp .5s ease both;
}
.hero-strip h1 {
  max-width: 720px; margin: 0 auto 18px;
  animation: fadeUp .5s .08s ease both;
}
.hero-strip h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-strip p {
  max-width: 520px; margin: 0 auto 32px;
  font-size: 1.05rem; color: var(--muted);
  animation: fadeUp .5s .16s ease both;
}
.hero-buttons {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp .5s .24s ease both;
}
.hero-stats-row {
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
  margin-top: 48px; padding-top: 40px;
  border-top: 1px solid var(--border);
  animation: fadeUp .5s .32s ease both;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800; letter-spacing: -.04em;
}
.hero-stat .lbl {
  font-size: .78rem; color: var(--muted); margin-top: 2px;
}

/* ============================================================
   10. SECTION HEADER
   ============================================================ */
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.sec-title {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 800; letter-spacing: -.025em;
  display: flex; align-items: center; gap: 10px;
}
.view-all-link {
  font-family: var(--font-display); font-size: .85rem;
  font-weight: 600; color: var(--accent);
  display: flex; align-items: center; gap: 4px; transition: gap .2s;
}
.view-all-link:hover { gap: 9px; color: var(--accent-h); }

/* ============================================================
   11. SIDEBAR
   ============================================================ */
.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px; align-items: start;
}

.sidebar { display: flex; flex-direction: column; gap: 28px; }

.widget {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.widget-title {
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 800; letter-spacing: -.01em;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.widget-title::before { font-size: 1rem; }

/* Recent posts widget */
.widget-post {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.widget-post:last-child { border-bottom: none; padding-bottom: 0; }
.widget-post-thumb {
  width: 64px; height: 48px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0; background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; overflow: hidden;
}
.widget-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-post-title {
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 600; line-height: 1.35;
  color: var(--text); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.widget-post-title:hover { color: var(--accent); }
.widget-post-date { font-size: .7rem; color: var(--muted); margin-top: 4px; display: block; }

/* Search widget */
.widget-search {
  display: flex; gap: 8px;
}
.widget-search input {
  flex: 1; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: 10px 14px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .875rem; outline: none;
  transition: border-color .2s;
}
.widget-search input:focus { border-color: var(--accent); }
.widget-search button {
  background: var(--accent); color: #fff; border: none;
  padding: 10px 16px; border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--trans); font-size: .875rem;
}
.widget-search button:hover { background: var(--accent-h); }

/* Category widget */
.widget-cats { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.widget-cats li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: var(--radius-sm);
  background: var(--bg3); border: 1px solid var(--border);
  font-size: .85rem; color: var(--text2); transition: var(--trans);
}
.widget-cats li a:hover { border-color: var(--accent); color: var(--accent); background: rgba(59,130,246,.05); }
.widget-cats .count {
  background: var(--border); color: var(--muted);
  padding: 2px 8px; border-radius: 4px; font-size: .72rem; font-family: var(--font-mono);
}

/* Ad widget */
.widget-ad {
  background: linear-gradient(135deg, var(--bg3), var(--card2));
  border-style: dashed;
  text-align: center; padding: 32px 24px;
}
.widget-ad p { font-size: .78rem; color: var(--muted); margin-top: 8px; }

/* ============================================================
   12. SINGLE ARTICLE
   ============================================================ */
.article-hero {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.article-crumbs {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap;
}
.article-crumbs a { color: var(--muted); }
.article-crumbs a:hover { color: var(--accent); }
.article-crumbs .sep { color: var(--border2); }

.article-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  max-width: 800px; margin-bottom: 20px;
}
.article-meta-bar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: .82rem; color: var(--muted); margin-bottom: 28px;
}
.article-meta-bar svg { width: 14px; height: 14px; flex-shrink: 0; }
.article-meta-item { display: flex; align-items: center; gap: 6px; }

.article-featured-img {
  width: 100%; border-radius: var(--radius-lg);
  max-height: 460px; object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

/* TOC */
.toc {
  background: var(--card2); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 22px 24px; margin: 32px 0;
}
.toc-title {
  font-family: var(--font-display); font-size: .9rem; font-weight: 700;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.toc ol { counter-reset: toc; list-style: none; padding: 0; }
.toc ol li { counter-increment: toc; margin-bottom: 8px; }
.toc ol li::before {
  content: counter(toc) ".";
  color: var(--accent); font-weight: 700; font-family: var(--font-mono);
  margin-right: 8px; font-size: .85rem;
}
.toc a { color: var(--text2); font-size: .875rem; }
.toc a:hover { color: var(--accent); }

/* Article content */
.entry-content {
  font-size: 1.02rem; line-height: 1.85; color: var(--text2);
}
.entry-content h2 {
  font-size: 1.6rem; margin: 40px 0 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.entry-content h3 { font-size: 1.25rem; margin: 32px 0 12px; }
.entry-content h4 { font-size: 1.05rem; margin: 24px 0 10px; color: var(--text); }
.entry-content p  { margin-bottom: 1.4em; }

.entry-content img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 24px auto;
}

/* Pro tip box */
.tip-box {
  background: rgba(59,130,246,.06);
  border: 1px solid rgba(59,130,246,.2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 18px 20px; margin: 24px 0;
}
.tip-box strong { color: var(--accent); }

/* Warning box */
.warn-box {
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.2);
  border-left: 3px solid var(--red);
  border-radius: var(--radius); padding: 18px 20px; margin: 24px 0;
}
.warn-box strong { color: var(--red); }

/* Step list */
.steps { list-style: none; padding: 0; counter-reset: steps; }
.steps li {
  counter-increment: steps; padding: 14px 14px 14px 52px;
  position: relative; border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(steps);
  position: absolute; left: 0; top: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Author box */
.author-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; gap: 20px; align-items: flex-start; margin: 40px 0;
}
.author-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.author-name { font-family: var(--font-display); font-weight: 700; margin-bottom: 4px; }
.author-bio  { font-size: .875rem; color: var(--muted); }

/* Tags */
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.post-tag {
  padding: 5px 12px; border-radius: 6px;
  background: var(--bg3); border: 1px solid var(--border);
  font-size: .78rem; color: var(--muted); transition: var(--trans);
}
.post-tag:hover { border-color: var(--accent); color: var(--accent); background: rgba(59,130,246,.05); }

/* Social share */
.share-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: 32px 0;
}
.share-label { font-family: var(--font-display); font-size: .85rem; font-weight: 700; color: var(--muted); }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: .8rem; font-weight: 600; border: 1px solid var(--border);
  background: var(--card); color: var(--text2); cursor: pointer; transition: var(--trans);
  text-decoration: none;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Comments */
.comments-area { margin-top: 48px; }
.comments-title { margin-bottom: 28px; }
.comment-list { list-style: none; }
.comment { padding: 20px 0; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: none; }
.comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-author img { border-radius: 50%; }
.comment-author-name { font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
.comment-date { font-size: .75rem; color: var(--muted); }
.comment-body { font-size: .9rem; color: var(--text2); }

.comment-form label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--text2); margin-bottom: 6px;
}
.comment-form input,
.comment-form textarea {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: 12px 14px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .9rem; outline: none; transition: border-color .2s;
  margin-bottom: 16px;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form textarea { min-height: 120px; resize: vertical; }

/* ============================================================
   13. PAGINATION
   ============================================================ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 40px 0; flex-wrap: wrap;
}
.page-numbers {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .85rem; font-weight: 600;
  border: 1px solid var(--border); color: var(--muted); transition: var(--trans);
  text-decoration: none;
}
.page-numbers:hover, .page-numbers.current {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.page-numbers.dots { border: none; cursor: default; }

/* ============================================================
   14. FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
}
.footer-brand-desc {
  font-size: .875rem; color: var(--muted);
  margin-top: 14px; line-height: 1.75; max-width: 280px;
}
.footer-social {
  display: flex; gap: 10px; margin-top: 20px;
}
.social-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: var(--trans); color: var(--muted);
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(59,130,246,.06); }

.footer-col-title {
  font-family: var(--font-display); font-size: .9rem; font-weight: 800;
  margin-bottom: 18px; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .85rem; color: var(--muted); transition: var(--trans); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .8rem; color: var(--muted2);
}
.footer-disclaimer {
  background: rgba(0,0,0,.3); border-top: 1px solid var(--border);
  padding: 14px 0; font-size: .73rem; color: var(--muted2); text-align: center;
  line-height: 1.6;
}

/* ============================================================
   15. BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  background: var(--bg3); border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumbs nav {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: .8rem; color: var(--muted);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .current { color: var(--text2); }
.breadcrumbs .sep { color: var(--border2); }

/* ============================================================
   16. NOTICE BOXES (AdSense signal — rich content)
   ============================================================ */
.notice {
  padding: 16px 20px; border-radius: var(--radius); margin: 24px 0;
  display: flex; gap: 14px; align-items: flex-start;
}
.notice-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.notice-content p { margin: 0; font-size: .9rem; }
.notice-info    { background: rgba(59,130,246,.07); border: 1px solid rgba(59,130,246,.18); }
.notice-success { background: var(--green-soft); border: 1px solid rgba(34,197,94,.2); }
.notice-warning { background: var(--orange-soft); border: 1px solid rgba(249,115,22,.2); }
.notice-danger  { background: var(--red-soft);    border: 1px solid rgba(239,68,68,.2); }

/* ============================================================
   17. ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 20px var(--accent-glow); }
  50%      { box-shadow: 0 0 40px var(--accent-glow); }
}

.animate-up { animation: fadeUp .5s ease both; }
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }

/* ============================================================
   18. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .content-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .card-featured { grid-template-columns: 1fr; }
  .card-featured .card-thumb { min-height: 220px; }
}

@media (max-width: 768px) {
  :root { --gap: 16px; }
  .primary-nav { display: none; }
  .nav-burger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-strip { padding: 56px var(--gap) 48px; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .share-bar { gap: 8px; }
  .author-box { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-stats-row { gap: 24px; }
  .article-meta-bar { gap: 12px; }
  .hero-buttons { flex-direction: column; align-items: center; }
}

/* ============================================================
   19. WORDPRESS CORE CLASSES
   ============================================================ */
.alignleft  { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter{ display: block; margin: 16px auto; }
.wp-block-image img { border-radius: var(--radius); }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.sticky { border-left: 3px solid var(--gold); }
.bypostauthor {}

/* ============================================================
   20. MOBILE NAV (open state)
   ============================================================ */
.mobile-nav {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(8,12,20,.97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  padding: 80px var(--gap) 40px;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a {
  display: block; padding: 14px 18px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  color: var(--text); border: 1px solid var(--border); transition: var(--trans);
}
.mobile-nav a:hover { border-color: var(--accent); color: var(--accent); background: rgba(59,130,246,.05); }
