/* ==============================================
   ClearCents — Main Stylesheet
   Dark luxury finance theme · 3D edition
   ============================================== */

/* ----- Custom Properties ----- */
:root {
  --bg-0: #050810;
  --bg-1: #090d18;
  --bg-2: #0f1523;
  --bg-3: #16202e;
  --bg-4: #1e2d3d;
  --glass: rgba(255,255,255,0.04);
  --glass-2: rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.08);
  --glass-border-2: rgba(255,255,255,0.14);
  --gold: #f5c518;
  --gold-light: #fde68a;
  --gold-mid: #e2a800;
  --gold-dark: #b8860b;
  --green: #00d084;
  --green-light: #6ee7b7;
  --green-dark: #008c58;
  --blue: #4d9de0;
  --text-1: #f0f6fc;
  --text-2: #c9d1d9;
  --text-3: #8b949e;
  --text-4: #484f58;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.7);
  --shadow-gold: 0 0 40px rgba(245,197,24,0.18);
  --shadow-green: 0 0 30px rgba(0,208,132,0.15);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Sora', 'Inter', -apple-system, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-w: 1200px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-2);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 80% 10%, rgba(245,197,24,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 10% 90%, rgba(0,208,132,0.04) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(77,157,224,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--gold-light); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: var(--text-1); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ----- Layout ----- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.section { padding: 5rem 0; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 68px;
  background: rgba(5,8,16,0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(5,8,16,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--gold) 0%, var(--gold-mid) 60%, var(--gold-dark) 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: #000; font-family: var(--font-heading);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4), var(--shadow-gold);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease);
  transform-style: preserve-3d;
}
.site-logo:hover .logo-mark {
  transform: perspective(200px) rotateY(20deg) rotateX(-5deg) scale(1.08);
  box-shadow: 6px 8px 0 rgba(0,0,0,0.5), 0 0 50px rgba(245,197,24,0.35);
}
.logo-name {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text-1);
}
.logo-name .cents { color: var(--gold); }

/* Desktop Nav */
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a {
  font-size: 0.875rem; font-weight: 500; color: var(--text-3);
  position: relative; padding-bottom: 3px;
  transition: color 0.2s var(--ease);
}
.site-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--gold);
  border-radius: 2px; transition: width 0.25s var(--ease);
}
.site-nav a:hover { color: var(--text-1); }
.site-nav a:hover::after { width: 100%; }

/* Mobile toggle */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--glass-border);
  border-radius: var(--radius-xs); padding: 6px 8px; cursor: pointer;
  color: var(--text-2); font-size: 1.1rem; transition: border-color 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(9,13,24,0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.25rem 1.5rem 1.75rem; z-index: 199;
  transform: translateY(-10px); opacity: 0;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.mobile-menu.open { display: block; opacity: 1; transform: translateY(0); }
.mobile-menu a {
  display: block; padding: 0.875rem 0;
  font-size: 1rem; font-weight: 500; color: var(--text-2);
  border-bottom: 1px solid var(--glass-border);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--gold); padding-left: 6px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 7rem 0 5rem; position: relative; overflow: hidden;
}

/* Grid lines */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 70%);
  pointer-events: none;
}

/* 3D Floating coins */
.coins-scene {
  position: absolute; inset: 0; pointer-events: none;
  perspective: 1200px; transform-style: preserve-3d;
}

.coin {
  position: absolute; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-heading);
  transform-style: preserve-3d;
  user-select: none;
}

.coin-face {
  position: absolute; inset: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backface-visibility: hidden;
}

.coin-1 {
  width: 80px; height: 80px;
  top: 18%; right: 14%;
  animation: float3d-a 9s ease-in-out infinite;
}
.coin-1 .coin-face {
  background: linear-gradient(145deg, #ffe566 0%, var(--gold) 35%, var(--gold-dark) 70%, #f5c518 100%);
  box-shadow: inset -4px -4px 8px rgba(0,0,0,0.3), inset 2px 2px 6px rgba(255,255,255,0.4), 0 8px 0 var(--gold-dark), 0 10px 20px rgba(0,0,0,0.5), var(--shadow-gold);
  font-size: 1.8rem; color: rgba(0,0,0,0.6);
}

.coin-2 {
  width: 50px; height: 50px;
  top: 38%; right: 7%;
  animation: float3d-b 11s ease-in-out infinite 1.5s;
}
.coin-2 .coin-face {
  background: linear-gradient(145deg, #e8e8e8 0%, #c0c0c0 50%, #a8a8a8 100%);
  box-shadow: inset -3px -3px 6px rgba(0,0,0,0.3), inset 2px 2px 4px rgba(255,255,255,0.5), 0 5px 0 #888, 0 8px 16px rgba(0,0,0,0.4);
  font-size: 1rem; color: rgba(0,0,0,0.5);
}

.coin-3 {
  width: 64px; height: 64px;
  top: 65%; right: 18%;
  animation: float3d-c 10s ease-in-out infinite 3s;
}
.coin-3 .coin-face {
  background: linear-gradient(145deg, #3dffaa 0%, var(--green) 40%, var(--green-dark) 75%, #00c47a 100%);
  box-shadow: inset -3px -3px 7px rgba(0,0,0,0.3), inset 2px 2px 5px rgba(255,255,255,0.3), 0 6px 0 var(--green-dark), 0 8px 18px rgba(0,0,0,0.5), var(--shadow-green);
  font-size: 1.4rem; color: rgba(0,0,0,0.5);
}

.coin-4 {
  width: 38px; height: 38px;
  top: 12%; right: 28%;
  animation: float3d-a 7s ease-in-out infinite 2s;
  opacity: 0.7;
}
.coin-4 .coin-face {
  background: linear-gradient(145deg, #ffe566 0%, var(--gold) 60%, var(--gold-dark) 100%);
  box-shadow: inset -2px -2px 5px rgba(0,0,0,0.3), 0 4px 0 var(--gold-dark), 0 6px 14px rgba(0,0,0,0.4);
  font-size: 0.85rem; color: rgba(0,0,0,0.5);
}

.coin-5 {
  width: 28px; height: 28px;
  top: 52%; right: 30%;
  animation: float3d-b 8s ease-in-out infinite 4s;
  opacity: 0.5;
}
.coin-5 .coin-face {
  background: linear-gradient(145deg, var(--green) 0%, var(--green-dark) 100%);
  box-shadow: 0 3px 0 var(--green-dark), 0 5px 10px rgba(0,0,0,0.4);
  font-size: 0.65rem; color: rgba(0,0,0,0.5);
}

@keyframes float3d-a {
  0%,100% { transform: translateY(0) rotateX(0deg) rotateY(0deg) rotateZ(2deg); }
  20% { transform: translateY(-28px) rotateX(15deg) rotateY(25deg) rotateZ(-3deg); }
  50% { transform: translateY(-18px) rotateX(-8deg) rotateY(50deg) rotateZ(5deg); }
  80% { transform: translateY(-35px) rotateX(12deg) rotateY(70deg) rotateZ(-2deg); }
}
@keyframes float3d-b {
  0%,100% { transform: translateY(0) rotateX(5deg) rotateY(-10deg) rotateZ(0deg); }
  30% { transform: translateY(-20px) rotateX(-10deg) rotateY(30deg) rotateZ(8deg); }
  60% { transform: translateY(-30px) rotateX(8deg) rotateY(60deg) rotateZ(-5deg); }
}
@keyframes float3d-c {
  0%,100% { transform: translateY(0) rotateX(0deg) rotateY(20deg) rotateZ(-3deg); }
  40% { transform: translateY(-22px) rotateX(10deg) rotateY(-20deg) rotateZ(6deg); }
  70% { transform: translateY(-14px) rotateX(-6deg) rotateY(40deg) rotateZ(2deg); }
}

/* Glow orbs */
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(100px);
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,197,24,0.09) 0%, transparent 70%);
  top: -150px; right: -150px;
  animation: orb-pulse 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,208,132,0.07) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  animation: orb-pulse 10s ease-in-out infinite 2s;
}

@keyframes orb-pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

/* Hero split layout */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
}

.hero-inner {
  position: relative; z-index: 2;
}

.hero-video-wrap {
  position: relative; z-index: 2;
  border-radius: 1.5rem;
  overflow: hidden;
  height: 520px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(245,197,24,0.12);
}

.hero-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-glow {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(5,8,16,0.35) 0%, transparent 40%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,197,24,0.08);
  border: 1px solid rgba(245,197,24,0.18);
  border-radius: 999px; padding: 6px 16px;
  font-size: 0.78rem; font-weight: 600; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  animation: fade-up 0.6s var(--ease) 0.1s both;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.12; margin-bottom: 1.25rem; font-weight: 700;
  animation: fade-up 0.6s var(--ease) 0.2s both;
}
.hero-title .line-2 {
  display: block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--green) 60%, var(--gold-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%;
  animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-3);
  max-width: 520px; margin-bottom: 2rem; line-height: 1.75;
  animation: fade-up 0.6s var(--ease) 0.3s both;
}

.hero-cta {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
  animation: fade-up 0.6s var(--ease) 0.4s both;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.8rem 1.6rem; border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 600; font-family: var(--font-body);
  border: none; cursor: pointer;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-mid) 100%);
  color: #000; box-shadow: 0 4px 24px rgba(245,197,24,0.35), 0 2px 4px rgba(0,0,0,0.3);
}
.btn-gold:hover { color: #000; transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 32px rgba(245,197,24,0.45), 0 4px 8px rgba(0,0,0,0.4); }
.btn-outline {
  background: var(--glass-2); color: var(--text-2);
  border: 1px solid var(--glass-border-2);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: var(--text-1); transform: translateY(-2px); border-color: rgba(255,255,255,0.2); }

.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3.5rem; flex-wrap: wrap;
  animation: fade-up 0.6s var(--ease) 0.5s both;
}
.hero-stat { display: flex; flex-direction: column; }
.stat-val {
  font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700;
  color: var(--text-1); line-height: 1;
}
.stat-val .accent { color: var(--gold); }
.stat-key { font-size: 0.75rem; color: var(--text-4); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 4px; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.progress-bar {
  position: fixed; top: 68px; left: 0; z-index: 199;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--green) 100%);
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(245,197,24,0.5);
}

/* ============================================
   POST CARDS
   ============================================ */
.section-header { margin-bottom: 2.5rem; }
.section-eyebrow {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold); display: block; margin-bottom: 0.5rem;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 0.5rem; }
.section-sub { color: var(--text-3); font-size: 0.925rem; max-width: 480px; }

/* Category pills */
.cats-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-3);
  background: var(--glass); border: 1px solid var(--glass-border);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease-spring);
}
.cat-pill:hover, .cat-pill.active {
  background: rgba(245,197,24,0.1); border-color: rgba(245,197,24,0.3);
  color: var(--gold); transform: translateY(-2px);
}

/* ============================================
   FEATURED POST — magazine hero style
   ============================================ */
.post-featured {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden; margin-bottom: 2.5rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  transform-style: preserve-3d;
  min-height: 380px;
}
.post-featured:hover {
  transform: perspective(1200px) rotateY(-1.5deg) rotateX(0.8deg) translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  border-color: rgba(245,197,24,0.14);
}

.feat-img {
  position: relative; overflow: hidden;
  background: var(--bg-3);
}
/* Bottom-to-top gradient overlay for readability */
.feat-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(5,8,16,0.35) 0%, transparent 60%),
              linear-gradient(to top, rgba(5,8,16,0.6) 0%, transparent 50%);
  z-index: 1; pointer-events: none;
}
.feat-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.3s var(--ease);
  opacity: 0.88; display: block;
}
.post-featured:hover .feat-img img { transform: scale(1.05); opacity: 1; }

/* Category-specific placeholder gradients */
.feat-img-placeholder {
  width: 100%; height: 100%; min-height: 380px;
  position: relative; overflow: hidden;
}
.feat-img-placeholder[data-cat="budgeting"],
.feat-img-placeholder[data-cat="Budgeting"] {
  background: linear-gradient(135deg, #071828 0%, #0d2d4a 40%, #1a3d5c 100%);
}
.feat-img-placeholder[data-cat="save-money"],
.feat-img-placeholder[data-cat="Save Money"] {
  background: linear-gradient(135deg, #071a0d 0%, #0d3a1a 40%, #1a5228 100%);
}
.feat-img-placeholder[data-cat="side-hustles"],
.feat-img-placeholder[data-cat="Side Hustles"] {
  background: linear-gradient(135deg, #1a1000 0%, #3d2800 40%, #5a3c00 100%);
}
.feat-img-placeholder[data-cat="debt-free"],
.feat-img-placeholder[data-cat="Debt Free"] {
  background: linear-gradient(135deg, #1a0707 0%, #3d1010 40%, #5a1818 100%);
}
.feat-img-placeholder[data-cat="investing"],
.feat-img-placeholder[data-cat="Investing"] {
  background: linear-gradient(135deg, #0d0718 0%, #1a0d38 40%, #2d1a5c 100%);
}
.feat-img-placeholder {
  background: linear-gradient(135deg, #0d1117 0%, #1a2235 100%);
}
/* Decorative pattern on placeholder */
.feat-img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 60%, rgba(245,197,24,0.08) 0%, transparent 55%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 100%, 40px 40px, 40px 40px;
}
/* Large watermark symbol */
.feat-img-placeholder::after {
  content: '¢';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 9rem; font-weight: 700;
  color: rgba(245,197,24,0.07);
  pointer-events: none;
}

/* Category badge on featured image */
.feat-cat-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: #000; background: var(--gold);
  padding: 4px 12px; border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* Reading time badge on featured image */
.feat-time-badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  font-size: 0.7rem; font-weight: 500; color: rgba(255,255,255,0.85);
  background: rgba(5,8,16,0.65); backdrop-filter: blur(8px);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
}

.feat-body {
  padding: 2.25rem 2rem; display: flex; flex-direction: column;
  justify-content: center; gap: 0.8rem;
}
.feat-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold); opacity: 0.8;
}
.feat-body h2 { font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.25; }
.feat-body h2 a { color: var(--text-1); }
.feat-body h2 a:hover { color: var(--gold); }
.post-excerpt { color: var(--text-3); font-size: 0.875rem; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; align-items: center; gap: 0.875rem; font-size: 0.78rem; color: var(--text-4); flex-wrap: wrap; }
.post-meta .sep { color: var(--bg-4); }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--gold); transition: gap 0.2s var(--ease), color 0.2s var(--ease); }
.read-more:hover { gap: 12px; color: var(--gold-light); }
.post-cat {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--gold); background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.2); padding: 3px 12px;
  border-radius: 999px; width: fit-content;
}

/* ============================================
   POST CARD GRID — magazine tiles
   ============================================ */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

.post-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.post-card:hover {
  transform: perspective(800px) rotateY(-2.5deg) rotateX(1.5deg) translateY(-8px);
  box-shadow: var(--shadow-lg); border-color: rgba(245,197,24,0.14);
}

/* Card image — magazine proportion */
.card-img {
  aspect-ratio: 3/2; overflow: hidden;
  position: relative;
  background: var(--bg-3);
}
/* Bottom gradient overlay — text badge legibility */
.card-img::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 55%; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(5,8,16,0.85) 0%, transparent 100%);
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.3s var(--ease);
  opacity: 0.88;
}
.post-card:hover .card-img img { transform: scale(1.08); opacity: 1; }

/* Category badge ON the image — bottom-left */
.card-cat-overlay {
  position: absolute; bottom: 12px; left: 12px; z-index: 2;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  color: #000; background: var(--gold);
  padding: 3px 10px; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Reading time — bottom-right on image */
.card-time-overlay {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  font-size: 0.65rem; font-weight: 500; color: rgba(255,255,255,0.8);
  background: rgba(5,8,16,0.6); backdrop-filter: blur(6px);
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Placeholder — themed gradient instead of emoji */
.card-img-ph {
  width: 100%; height: 100%; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0d1117 0%, #1a2235 100%);
}
.card-img-ph[data-cat="Budgeting"]      { background: linear-gradient(145deg, #071828 0%, #112d4a 100%); }
.card-img-ph[data-cat="Save Money"]     { background: linear-gradient(145deg, #071a0d 0%, #103d1a 100%); }
.card-img-ph[data-cat="Side Hustles"]   { background: linear-gradient(145deg, #1a1000 0%, #4a2e00 100%); }
.card-img-ph[data-cat="Debt Free"]      { background: linear-gradient(145deg, #1a0707 0%, #4a1212 100%); }
.card-img-ph[data-cat="Investing"]      { background: linear-gradient(145deg, #0d0718 0%, #251040 100%); }
/* Subtle grid pattern on placeholder */
.card-img-ph::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 25% 60%, rgba(245,197,24,0.07) 0%, transparent 50%),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 100%, 28px 28px, 28px 28px;
}
/* Faint watermark ¢ symbol */
.card-img-ph::after {
  content: '¢';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 5rem; font-weight: 700;
  color: rgba(245,197,24,0.08); pointer-events: none;
}

/* Card body — tighter since cat is on image */
.card-body { padding: 1.1rem 1.25rem 1.25rem; }
.card-title { font-size: 0.97rem; font-weight: 600; margin-bottom: 0.45rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--text-1); }
.card-title a:hover { color: var(--gold); }
.card-excerpt { font-size: 0.82rem; color: var(--text-3); line-height: 1.6; margin-bottom: 0.875rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.7rem; border-top: 1px solid var(--glass-border);
  font-size: 0.76rem; color: var(--text-4);
}
.card-read { font-weight: 600; color: var(--gold); font-size: 0.78rem; }

/* ============================================
   BLOG LAYOUT (posts + sidebar)
   ============================================ */
.blog-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 1.5rem; }

.widget {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.widget-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold);
  padding-bottom: 0.875rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; gap: 8px;
}

/* Newsletter widget */
.newsletter-widget {
  background: linear-gradient(135deg, rgba(245,197,24,0.07) 0%, rgba(0,208,132,0.05) 100%);
  border: 1px solid rgba(245,197,24,0.15);
  border-radius: var(--radius-lg); padding: 1.75rem; text-align: center;
}
.nl-icon { display: flex; justify-content: center; margin-bottom: 0.75rem; }
.nl-icon svg { width: 2.4rem; height: 2.4rem; color: var(--gold); }
.nl-title { font-size: 1rem; font-weight: 700; color: var(--text-1); margin-bottom: 0.5rem; }
.nl-desc { font-size: 0.82rem; color: var(--text-3); margin-bottom: 1.25rem; line-height: 1.55; }
.nl-form { display: flex; flex-direction: column; gap: 8px; }
.nl-input {
  width: 100%; padding: 0.65rem 1rem;
  background: var(--bg-2); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); color: var(--text-1);
  font-size: 0.85rem; font-family: var(--font-body);
  transition: border-color 0.2s var(--ease);
}
.nl-input:focus { outline: none; border-color: var(--gold); }
.nl-input::placeholder { color: var(--text-4); }
.nl-btn {
  width: 100%; padding: 0.7rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-mid) 100%);
  color: #000; font-weight: 700; font-size: 0.875rem;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease);
}
.nl-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,197,24,0.35); }
.nl-success { font-size: 0.9rem; font-weight: 600; color: var(--green); text-align: center; padding: 0.5rem 0; }

/* Page hero (About, Privacy, Category pages) */
.page-hero {
  padding: 8rem 0 3.5rem;
  position: relative;
  border-bottom: 1px solid var(--glass-border);
}
.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; line-height: 1.15;
  margin: 0.5rem 0 0.75rem;
}
.page-hero-sub {
  font-size: 1.05rem; color: var(--text-3);
  max-width: 600px; line-height: 1.7;
  margin: 0;
}
.cat-count-line {
  font-size: 0.85rem; color: var(--text-4);
  margin-bottom: 2rem; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.empty-cat {
  text-align: center; padding: 4rem 0;
  color: var(--text-3);
}
.empty-cat p { margin-bottom: 1.5rem; font-size: 1.05rem; }

/* Prose pages (About, Privacy) */
.prose-page { max-width: 740px; margin: 0 auto; padding: 3.5rem 0 5rem; }
.prose-page h2 {
  font-size: 1.4rem; font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  color: var(--text-1);
}
.prose-page h3 { font-size: 1.1rem; font-weight: 600; margin: 1.75rem 0 0.5rem; color: var(--text-2); }
.prose-page p { color: var(--text-3); line-height: 1.8; margin-bottom: 1rem; }
.prose-page ul { color: var(--text-3); line-height: 1.8; margin: 0.5rem 0 1rem 1.25rem; }
.prose-page li { margin-bottom: 0.4rem; }
.prose-page a { color: var(--gold); text-decoration: underline; }
.prose-page .prose-last-updated { font-size: 0.82rem; color: var(--text-4); margin-bottom: 2.5rem; }

/* Popular posts */
.popular-item { display: flex; gap: 10px; padding: 0.75rem 0; border-bottom: 1px solid var(--glass-border); }
.popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.pop-num { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: rgba(245,197,24,0.2); flex-shrink: 0; width: 26px; line-height: 1; padding-top: 2px; }
.pop-title { font-size: 0.85rem; font-weight: 500; color: var(--text-2); line-height: 1.4; }
.pop-title a { color: var(--text-2); }
.pop-title a:hover { color: var(--gold); }

/* Categories widget */
.cat-item { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--glass-border); }
.cat-item:last-child { border-bottom: none; }
.cat-item a { font-size: 0.875rem; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.cat-item a:hover { color: var(--gold); }
.cat-count { font-size: 0.72rem; background: var(--bg-3); color: var(--text-3); padding: 2px 9px; border-radius: 999px; }

/* AdSense */
.ad-slot { border-radius: var(--radius-md); overflow: hidden; min-height: 250px; }
.ad-slot-banner { border-radius: var(--radius-md); overflow: hidden; min-height: 90px; margin: 2rem 0; }

/* ============================================
   SINGLE POST
   ============================================ */
.post-hero {
  padding: 6.5rem 0 3rem; position: relative;
  text-align: center;
}
.post-hero .post-cat { margin: 0 auto 1rem; }
.post-hero h1 { max-width: 820px; margin: 0 auto 1rem; }
.post-hero-meta {
  display: flex; align-items: center; justify-content: center;
  gap: 1.25rem; flex-wrap: wrap; font-size: 0.83rem; color: var(--text-3);
  margin-bottom: 2rem;
}
.post-hero-meta .divider { width: 4px; height: 4px; border-radius: 50%; background: var(--text-4); }

.post-cover {
  width: 100%; max-height: 520px; object-fit: cover;
  border-radius: var(--radius-xl); margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
}

.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }

/* Post content */
.post-content {
  font-size: 1.05rem; line-height: 1.85; color: var(--text-2); min-width: 0;
}
.post-content h2 { font-size: clamp(1.4rem, 2.5vw, 1.7rem); margin: 3rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--glass-border); color: var(--text-1); }
.post-content h3 { font-size: clamp(1.1rem, 2vw, 1.25rem); margin: 2.5rem 0 0.75rem; color: var(--text-1); }
.post-content p { margin-bottom: 1.4rem; }
.post-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(245,197,24,0.4); }
.post-content a:hover { color: var(--gold-light); text-decoration-color: var(--gold-light); }
.post-content ul, .post-content ol { margin-bottom: 1.4rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content blockquote {
  border-left: 3px solid var(--gold); padding: 1.1rem 1.6rem;
  margin: 2rem 0; background: rgba(245,197,24,0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-2); font-style: italic; font-size: 1.05rem;
}
.post-content code { font-family: 'Courier New', monospace; font-size: 0.875em; background: var(--bg-3); padding: 2px 7px; border-radius: 4px; color: var(--green); }
.post-content pre { background: var(--bg-2); border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: 1.4rem; overflow-x: auto; margin-bottom: 1.4rem; }
.post-content img { border-radius: var(--radius-md); margin: 1.5rem auto; box-shadow: var(--shadow-md); }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.9rem; }
.post-content th { background: var(--bg-3); padding: 0.75rem 1rem; text-align: left; font-weight: 600; color: var(--text-1); border-bottom: 1px solid var(--glass-border); }
.post-content td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--glass-border); }
.post-content tr:hover td { background: rgba(255,255,255,0.02); }

/* Post tags */
.post-tags { margin-top: 2rem; display: flex; gap: 8px; flex-wrap: wrap; }
.ptag { font-size: 0.78rem; padding: 4px 12px; background: var(--bg-3); border: 1px solid var(--glass-border); border-radius: 999px; color: var(--text-3); transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.ptag:hover { border-color: var(--gold); color: var(--gold); }

/* Share box */
.share-box { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 1.5rem; margin: 2.5rem 0; }
.share-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-4); margin-bottom: 0.875rem; }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 500; border: 1px solid var(--glass-border);
  background: var(--glass); color: var(--text-2); cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease-spring);
}
.share-btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.2); color: var(--text-1); transform: translateY(-2px); }

/* Related posts */
.related-posts { margin-top: 3rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 2.5rem 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600;
  border: 1px solid var(--glass-border); background: var(--glass); color: var(--text-2);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.pagination a:hover { background: rgba(255,255,255,0.09); border-color: var(--gold); color: var(--gold); }
.pagination .current { background: linear-gradient(135deg, var(--gold), var(--gold-mid)); border-color: var(--gold); color: #000; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem; margin-top: 5rem;
  position: relative; z-index: 1;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem;
}
.footer-brand .site-logo { margin-bottom: 1rem; }
.footer-desc { font-size: 0.875rem; color: var(--text-3); line-height: 1.65; max-width: 280px; margin-bottom: 1.25rem; }
.footer-socials { display: flex; gap: 8px; }
.social-ico {
  width: 36px; height: 36px; border-radius: var(--radius-xs);
  background: var(--glass); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--text-3);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease-spring);
}
.social-ico:hover { background: rgba(245,197,24,0.1); border-color: rgba(245,197,24,0.3); color: var(--gold); transform: translateY(-2px); }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-3); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.875rem; color: var(--text-4); transition: color 0.2s var(--ease), padding-left 0.2s var(--ease); }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
  padding-top: 1.75rem; border-top: 1px solid var(--glass-border);
  font-size: 0.8rem; color: var(--text-4);
}
.footer-bottom a { color: var(--text-4); }
.footer-bottom a:hover { color: var(--gold); }
.footer-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--text-4); font-size: 0.78rem; }
.footer-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed; bottom: 2rem; right: 1.5rem; z-index: 150;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--gold), var(--gold-mid));
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #000; font-family: var(--font-body);
  box-shadow: 0 4px 20px rgba(245,197,24,0.35), 0 2px 6px rgba(0,0,0,0.4);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease-spring), box-shadow 0.2s var(--ease);
}
.scroll-top.show { opacity: 1; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(245,197,24,0.5); }

/* ============================================
   UTILITIES & ANIMATIONS
   ============================================ */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.divider { width: 100%; height: 1px; background: var(--glass-border); margin: 2rem 0; }

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .blog-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .post-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 2rem; }
  .hero-video-wrap { height: 300px; order: -1; }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 6rem 0 4rem; min-height: auto; text-align: center; }
  .hero-inner { margin: 0 auto; }
  .hero-eyebrow, .hero-cta { justify-content: center; }
  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-stats { justify-content: center; }
  .hero-video-wrap { height: 240px; }
  .post-featured { grid-template-columns: 1fr; }
  .feat-img { min-height: 200px; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 3.5rem 0; }
  .hero-stats { gap: 1.5rem; }
  .hero-cta { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
  .related-grid { grid-template-columns: 1fr; }
}
