/* StackSavvy Theme — css/main.css
   Auto dark/light · Modern tech · Animated gradients
   ─────────────────────────────────────────────── */

/* ── Google Fonts ──────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables (Light mode default) ────── */
:root {
  --bg:          #FFFFFF;
  --bg-2:        #F8F9FA;
  --bg-3:        #F1F3F5;
  --surface:     #FFFFFF;
  --border:      #E9ECEF;
  --border-2:    #DEE2E6;
  --text:        #1A1A2E;
  --text-2:      #495057;
  --text-3:      #868E96;
  --text-inv:    #FFFFFF;

  /* Brand colours */
  --amber:       #F59E0B;
  --amber-light: #FEF3C7;
  --amber-dark:  #B45309;
  --teal:        #0EA5E9;
  --teal-light:  #E0F2FE;
  --teal-dark:   #0369A1;
  --green:       #10B981;
  --purple:      #8B5CF6;
  --red:         #EF4444;

  /* Section colours */
  --deals-primary:   #F59E0B;
  --deals-secondary: #EF4444;
  --deals-bg:        #FFFBEB;
  --ai-primary:      #8B5CF6;
  --ai-secondary:    #0EA5E9;
  --ai-bg:           #F5F3FF;

  /* Typography */
  --font-sans:  'Inter', -apple-system, system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --max-w:   1200px;
  --max-w-sm: 860px;
  --r:        8px;
  --r-lg:     16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.04);

  /* Transitions */
  --t: .2s ease;
}

/* ── Dark mode ──────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #0D1117;
    --bg-2:    #161B22;
    --bg-3:    #1C2128;
    --surface: #161B22;
    --border:  #30363D;
    --border-2:#444C56;
    --text:    #E6EDF3;
    --text-2:  #8B949E;
    --text-3:  #6E7681;

    --deals-bg: rgba(245,158,11,.08);
    --ai-bg:    rgba(139,92,246,.08);

    --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
    --shadow:    0 4px 6px rgba(0,0,0,.3);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.4);
  }
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background:  var(--bg);
  color:       var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: var(--teal); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--teal-dark); }

/* ── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track  { background: var(--bg); }
::-webkit-scrollbar-thumb  { background: var(--border-2); border-radius: 3px; }

/* ══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
.site-header {
  position:   sticky;
  top:        0;
  z-index:    100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max-w);
  margin:    0 auto;
  padding:   0 24px;
  height:    64px;
  display:   flex;
  align-items: center;
  gap:       32px;
}

.site-logo {
  font-size:   20px;
  font-weight: 700;
  color:       var(--text);
  letter-spacing: -.02em;
  display:     flex;
  align-items: center;
  gap:         8px;
  flex-shrink: 0;
}
.site-logo .logo-icon {
  width:  32px; height: 32px;
  background: linear-gradient(135deg, var(--amber), var(--purple));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.site-logo span { color: var(--amber); }

.main-nav {
  display:    flex;
  align-items: center;
  gap:        4px;
  flex:       1;
}

.main-nav a {
  font-size:   14px;
  font-weight: 500;
  color:       var(--text-2);
  padding:     6px 14px;
  border-radius: var(--r);
  transition:  all var(--t);
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--bg-3);
  color:      var(--text);
}

/* Section nav pills */
.nav-deals {
  background: var(--amber-light) !important;
  color:      var(--amber-dark)  !important;
  border:     1px solid rgba(245,158,11,.3);
}
.nav-ai {
  background: rgba(139,92,246,.1) !important;
  color:      var(--purple)       !important;
  border:     1px solid rgba(139,92,246,.3);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input {
  background:  var(--bg-2);
  border:      1px solid var(--border);
  border-radius: 20px;
  padding:     6px 16px;
  font-size:   13px;
  color:       var(--text);
  width:       200px;
  transition:  all var(--t);
}
.search-input:focus {
  outline:      none;
  border-color: var(--teal);
  width:        240px;
  box-shadow:   0 0 0 3px rgba(14,165,233,.1);
}
.search-input::placeholder { color: var(--text-3); }

/* ══════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════ */
.hero {
  position:   relative;
  overflow:   hidden;
  padding:    80px 24px 90px;
  text-align: center;
}

.hero-bg {
  position:  absolute;
  inset:     0;
  background: linear-gradient(
    135deg,
    rgba(245,158,11,.12) 0%,
    rgba(139,92,246,.08) 50%,
    rgba(14,165,233,.10) 100%
  );
  animation: heroShift 8s ease infinite alternate;
}

@keyframes heroShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .4;
}

.hero-inner {
  position:  relative;
  max-width: var(--max-w-sm);
  margin:    0 auto;
}

.hero-badge {
  display:        inline-flex;
  align-items:    center;
  gap:            6px;
  background:     var(--bg-2);
  border:         1px solid var(--border);
  border-radius:  20px;
  padding:        5px 14px;
  font-size:      12px;
  font-weight:    500;
  color:          var(--text-2);
  margin-bottom:  20px;
  animation:      fadeDown .5s ease;
}

.hero h1 {
  font-size:      clamp(32px, 5vw, 56px);
  font-weight:    700;
  letter-spacing: -.03em;
  line-height:    1.1;
  margin-bottom:  20px;
  animation:      fadeDown .6s ease .1s both;
}

.hero h1 .gradient-text {
  background:         linear-gradient(135deg, var(--amber), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip:    text;
}

.hero-desc {
  font-size:     18px;
  color:         var(--text-2);
  max-width:     560px;
  margin:        0 auto 32px;
  animation:     fadeDown .6s ease .2s both;
}

.hero-actions {
  display:        flex;
  gap:            12px;
  justify-content: center;
  flex-wrap:      wrap;
  animation:      fadeDown .6s ease .3s both;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
  display:        inline-flex;
  align-items:    center;
  gap:            8px;
  padding:        10px 22px;
  border-radius:  var(--r);
  font-size:      14px;
  font-weight:    600;
  cursor:         pointer;
  border:         none;
  transition:     all var(--t);
  text-decoration: none;
}

.btn-deals {
  background: linear-gradient(135deg, var(--amber), var(--deals-secondary));
  color:      #fff;
  box-shadow: 0 4px 14px rgba(245,158,11,.35);
}
.btn-deals:hover {
  transform:  translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,.45);
  color:      #fff;
}

.btn-ai {
  background: linear-gradient(135deg, var(--purple), var(--teal));
  color:      #fff;
  box-shadow: 0 4px 14px rgba(139,92,246,.35);
}
.btn-ai:hover {
  transform:  translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,92,246,.45);
  color:      #fff;
}

.btn-outline {
  background:  transparent;
  color:       var(--text-2);
  border:      1px solid var(--border-2);
}
.btn-outline:hover {
  background: var(--bg-2);
  color:      var(--text);
}

/* ══════════════════════════════════════════════
   SECTION DIVIDERS
═══════════════════════════════════════════════ */
.section-header {
  display:        flex;
  align-items:    center;
  justify-content: space-between;
  margin-bottom:  28px;
  gap:            16px;
}

.section-title {
  display:     flex;
  align-items: center;
  gap:         10px;
  font-size:   22px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.section-icon {
  width:          40px; height: 40px;
  border-radius:  10px;
  display:        flex;
  align-items:    center;
  justify-content: center;
  font-size:      20px;
  flex-shrink:    0;
}
.icon-deals { background: var(--amber-light); }
.icon-ai    { background: rgba(139,92,246,.12); }

.section-link {
  font-size:   13px;
  font-weight: 500;
  color:       var(--text-3);
  display:     flex;
  align-items: center;
  gap:         4px;
  white-space: nowrap;
  transition:  color var(--t);
}
.section-link:hover { color: var(--teal); }

/* ══════════════════════════════════════════════
   ARTICLE CARDS
═══════════════════════════════════════════════ */
.card {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--r-lg);
  overflow:      hidden;
  transition:    all var(--t);
  display:       flex;
  flex-direction: column;
}
.card:hover {
  transform:  translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-2);
}

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

/* Category badge on image */
.card-cat {
  position:    absolute;
  top:         12px; left: 12px;
  font-size:   11px;
  font-weight: 600;
  padding:     3px 10px;
  border-radius: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cat-deals {
  background: rgba(245,158,11,.92);
  color:      #fff;
}
.cat-ai {
  background: rgba(139,92,246,.92);
  color:      #fff;
}
.cat-beginner     { background: rgba(16,185,129,.9); color:#fff; }
.cat-intermediate { background: rgba(245,158,11,.9);  color:#fff; }
.cat-advanced     { background: rgba(239,68,68,.9);   color:#fff; }

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

.card-meta {
  display:     flex;
  align-items: center;
  gap:         10px;
  margin-bottom: 10px;
}
.card-date {
  font-size:   12px;
  color:       var(--text-3);
  font-family: var(--font-mono);
}
.card-read-time {
  font-size:   12px;
  color:       var(--text-3);
}

.card-title {
  font-size:   17px;
  font-weight: 600;
  color:       var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -.01em;
  display:     -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:    hidden;
  transition:  color var(--t);
}
.card:hover .card-title { color: var(--teal); }

.card-excerpt {
  font-size:   14px;
  color:       var(--text-2);
  line-height: 1.55;
  margin-bottom: 16px;
  flex:        1;
  display:     -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:    hidden;
}

.card-footer {
  display:      flex;
  align-items:  center;
  justify-content: space-between;
  padding-top:  12px;
  border-top:   1px solid var(--border);
}

.card-tags {
  display: flex;
  gap:     6px;
  flex-wrap: wrap;
}
.tag {
  font-size:    11px;
  font-weight:  500;
  padding:      2px 8px;
  border-radius: 4px;
  background:   var(--bg-3);
  color:        var(--text-2);
  border:       1px solid var(--border);
}

.card-arrow {
  font-size:   18px;
  color:       var(--text-3);
  transition:  transform var(--t), color var(--t);
}
.card:hover .card-arrow {
  color:     var(--teal);
  transform: translateX(4px);
}

/* ── Card grid variants ───────────────────── */
.grid-3 {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   24px;
}
.grid-2 {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   24px;
}

/* Featured card (spans 2 cols) */
.card-featured {
  grid-column: span 2;
  flex-direction: row;
}
.card-featured .card-image {
  width:        45%;
  aspect-ratio: unset;
  flex-shrink:  0;
}
.card-featured .card-title { font-size: 22px; -webkit-line-clamp: 3; }

/* ══════════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════════ */
.main-container {
  max-width: var(--max-w);
  margin:    0 auto;
  padding:   60px 24px;
}

/* Deals section */
.section-deals {
  margin-bottom: 72px;
  padding:       48px;
  background:    var(--deals-bg);
  border-radius: 24px;
  border:        1px solid rgba(245,158,11,.15);
}

/* AI section */
.section-ai {
  margin-bottom: 72px;
  padding:       48px;
  background:    var(--ai-bg);
  border-radius: 24px;
  border:        1px solid rgba(139,92,246,.15);
}

/* Latest posts mixed */
.section-latest { margin-bottom: 72px; }

/* ══════════════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════════════ */
.stats-strip {
  background:    var(--bg-2);
  border-top:    1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding:       28px 24px;
}
.stats-inner {
  max-width: var(--max-w);
  margin:    0 auto;
  display:   grid;
  grid-template-columns: repeat(4, 1fr);
  gap:       24px;
}
.stat-item { text-align: center; }
.stat-number {
  font-size:   28px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-number.amber  { color: var(--amber); }
.stat-number.purple { color: var(--purple); }
.stat-number.teal   { color: var(--teal); }
.stat-number.green  { color: var(--green); }
.stat-label {
  font-size:  13px;
  color:      var(--text-3);
  font-weight: 500;
}

/* ══════════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════════ */
.post-container {
  max-width: var(--max-w-sm);
  margin:    0 auto;
  padding:   48px 24px 80px;
}

.post-header { margin-bottom: 40px; }

.post-cats {
  display:       flex;
  gap:           8px;
  margin-bottom: 16px;
  flex-wrap:     wrap;
}

.post-title {
  font-size:      clamp(26px, 4vw, 42px);
  font-weight:    700;
  letter-spacing: -.03em;
  line-height:    1.2;
  margin-bottom:  16px;
}

.post-meta {
  display:     flex;
  align-items: center;
  gap:         16px;
  color:       var(--text-3);
  font-size:   14px;
  flex-wrap:   wrap;
}
.post-meta span {
  display:     flex;
  align-items: center;
  gap:         4px;
}

.post-featured-image {
  margin-bottom: 40px;
  border-radius: var(--r-lg);
  overflow:      hidden;
  box-shadow:    var(--shadow-lg);
}
.post-featured-image img { width: 100%; }

/* Post content typography */
.entry-content {
  font-size:   17px;
  line-height: 1.75;
  color:       var(--text);
}
.entry-content h2 {
  font-size:   26px;
  font-weight: 700;
  margin:      2em 0 .75em;
  letter-spacing: -.02em;
  color:       var(--text);
}
.entry-content h3 {
  font-size:   20px;
  font-weight: 600;
  margin:      1.75em 0 .65em;
}
.entry-content p { margin-bottom: 1.4em; }
.entry-content ul, .entry-content ol {
  margin:       1em 0 1.4em 1.5em;
}
.entry-content li { margin-bottom: .5em; }
.entry-content a {
  color:           var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content strong { font-weight: 600; color: var(--text); }
.entry-content code {
  font-family:  var(--font-mono);
  font-size:    .9em;
  background:   var(--bg-3);
  border:       1px solid var(--border);
  border-radius: 4px;
  padding:      2px 6px;
  color:        var(--purple);
}
.entry-content pre {
  background:   var(--bg-2);
  border:       1px solid var(--border);
  border-radius: var(--r);
  padding:      20px;
  overflow-x:   auto;
  margin:       1.5em 0;
  font-family:  var(--font-mono);
  font-size:    14px;
  line-height:  1.6;
}
.entry-content blockquote {
  border-left:  3px solid var(--amber);
  padding:      12px 20px;
  margin:       1.5em 0;
  background:   var(--amber-light);
  border-radius: 0 var(--r) var(--r) 0;
  font-style:   italic;
  color:        var(--text-2);
}
.entry-content img {
  border-radius: var(--r);
  margin:       1.5em auto;
  box-shadow:   var(--shadow);
}

/* ── Affiliate link box ───────────────────── */
.affiliate-box {
  background:    linear-gradient(135deg, var(--amber-light), rgba(245,158,11,.05));
  border:        1px solid rgba(245,158,11,.3);
  border-radius: var(--r-lg);
  padding:       24px;
  margin:        2em 0;
  display:       flex;
  gap:           16px;
  align-items:   flex-start;
}
.affiliate-box .aff-icon {
  font-size:  28px;
  flex-shrink: 0;
}
.affiliate-box .aff-content { flex: 1; }
.affiliate-box .aff-title {
  font-size:   16px;
  font-weight: 600;
  margin-bottom: 6px;
  color:       var(--text);
}
.affiliate-box .aff-price {
  font-size:   24px;
  font-weight: 700;
  color:       var(--amber-dark);
  font-family: var(--font-mono);
}
.affiliate-box .btn-buy {
  display:      inline-flex;
  align-items:  center;
  gap:          6px;
  background:   linear-gradient(135deg, var(--amber), var(--deals-secondary));
  color:        #fff;
  padding:      10px 22px;
  border-radius: var(--r);
  font-weight:  600;
  font-size:    14px;
  margin-top:   12px;
  transition:   all var(--t);
}
.affiliate-box .btn-buy:hover {
  transform:  translateY(-2px);
  box-shadow: 0 6px 16px rgba(245,158,11,.4);
  color:      #fff;
}

/* ── AI article box ──────────────────────── */
.ai-info-box {
  background:    rgba(139,92,246,.06);
  border:        1px solid rgba(139,92,246,.2);
  border-radius: var(--r-lg);
  padding:       20px 24px;
  margin:        2em 0;
}
.ai-info-box .ai-badge {
  font-size:   11px;
  font-weight: 600;
  color:       var(--purple);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

/* ── Post navigation ─────────────────────── */
.post-nav {
  display:       grid;
  grid-template-columns: 1fr 1fr;
  gap:           16px;
  margin-top:    48px;
  padding-top:   32px;
  border-top:    1px solid var(--border);
}
.post-nav-item {
  background:    var(--bg-2);
  border:        1px solid var(--border);
  border-radius: var(--r-lg);
  padding:       20px;
  transition:    all var(--t);
}
.post-nav-item:hover {
  border-color: var(--teal);
  background:   var(--bg-3);
}
.post-nav-label {
  font-size:   11px;
  color:       var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.post-nav-title {
  font-size:   15px;
  font-weight: 600;
  color:       var(--text);
  line-height: 1.35;
  display:     -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:    hidden;
}

/* ══════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════ */
.content-sidebar {
  display:               grid;
  grid-template-columns: 1fr 300px;
  gap:                   40px;
  max-width:             var(--max-w);
  margin:                0 auto;
  padding:               48px 24px;
  align-items:           start;
}

.widget {
  background:    var(--bg-2);
  border:        1px solid var(--border);
  border-radius: var(--r-lg);
  padding:       24px;
  margin-bottom: 24px;
}
.widget-title {
  font-size:   15px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color:        var(--text);
}
.widget ul { list-style: none; }
.widget ul li {
  padding:     8px 0;
  border-bottom: 1px solid var(--border);
  font-size:   14px;
}
.widget ul li:last-child { border-bottom: none; }

/* ══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer {
  background:    var(--bg-2);
  border-top:    1px solid var(--border);
  padding:       60px 24px 32px;
  margin-top:    80px;
}

.footer-grid {
  max-width:             var(--max-w);
  margin:                0 auto;
  display:               grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap:                   48px;
  margin-bottom:         48px;
}

.footer-brand .site-logo { margin-bottom: 12px; }
.footer-desc {
  font-size:  14px;
  color:      var(--text-3);
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer-social {
  display: flex;
  gap:     10px;
}
.social-link {
  width:         36px; height: 36px;
  background:    var(--bg-3);
  border:        1px solid var(--border);
  border-radius: 8px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-size:     16px;
  color:         var(--text-2);
  transition:    all var(--t);
}
.social-link:hover {
  background:   var(--teal);
  border-color: var(--teal);
  color:        #fff;
}

.footer-col-title {
  font-size:   13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color:       var(--text-3);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 14px;
  color:     var(--text-2);
  transition: color var(--t);
}
.footer-col ul li a:hover { color: var(--teal); }

.footer-bottom {
  max-width:     var(--max-w);
  margin:        0 auto;
  padding-top:   24px;
  border-top:    1px solid var(--border);
  display:       flex;
  align-items:   center;
  justify-content: space-between;
  flex-wrap:     wrap;
  gap:           12px;
}
.footer-copy { font-size: 13px; color: var(--text-3); }
.footer-disclaimer {
  font-size: 12px;
  color:     var(--text-3);
  max-width: 500px;
  text-align: right;
}

/* ══════════════════════════════════════════════
   DARK MODE TOGGLE (floating button)
═══════════════════════════════════════════════ */
.theme-toggle {
  position:    fixed;
  bottom:      24px; right: 24px;
  width:       44px; height: 44px;
  background:  var(--surface);
  border:      1px solid var(--border);
  border-radius: 50%;
  display:     flex;
  align-items: center;
  justify-content: center;
  font-size:   18px;
  cursor:      pointer;
  box-shadow:  var(--shadow-lg);
  z-index:     200;
  transition:  all var(--t);
}
.theme-toggle:hover {
  transform:    scale(1.1);
  border-color: var(--teal);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-featured { grid-column: span 1; flex-direction: column; }
  .card-featured .card-image { width: 100%; aspect-ratio: 16/9; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .content-sidebar { grid-template-columns: 1fr; }
  .section-deals, .section-ai { padding: 32px 24px; }
}

@media (max-width: 640px) {
  .header-inner { height: 56px; padding: 0 16px; gap: 16px; }
  .search-input { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 48px 16px 56px; }
  .post-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-disclaimer { text-align: center; }
  .main-nav { gap: 2px; overflow-x: auto; }
  .main-nav a { padding: 5px 10px; font-size: 13px; }
}

/* ══════════════════════════════════════════════
   ANIMATIONS & UTILS
═══════════════════════════════════════════════ */
.fade-in {
  animation: fadeIn .5s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Staggered card animations */
.card:nth-child(1) { animation: fadeIn .4s ease .0s both; }
.card:nth-child(2) { animation: fadeIn .4s ease .1s both; }
.card:nth-child(3) { animation: fadeIn .4s ease .2s both; }
.card:nth-child(4) { animation: fadeIn .4s ease .3s both; }
.card:nth-child(5) { animation: fadeIn .4s ease .4s both; }
.card:nth-child(6) { animation: fadeIn .4s ease .5s both; }

/* Gradient text utility */
.text-gradient-deals {
  background:         linear-gradient(135deg, var(--amber), var(--deals-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip:    text;
}
.text-gradient-ai {
  background:         linear-gradient(135deg, var(--purple), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip:    text;
}


/* ══════════════════════════════════════════════
   GOOGLE ADSENSE BANNER — BOTTOM AUTO
═══════════════════════════════════════════════ */
.adsense-bottom {
  width: 100%;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.adsense-bottom ins:not([data-ad-status]) {
  min-height: 0;
}
@media (max-width: 640px) {
  .adsense-bottom { padding: 8px 0; min-height: 60px; }
}