/* =============================================
   JAKEMAKESAI — UNIFIED THEME SYSTEM
   5 themes, 1 stylesheet, 0 reloads.
   ============================================= */

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

/* ===== THEME VARIABLES ===== */

/* --- TECHY (Terminal/Hacker) --- */
.theme-techy {
  --bg: #0a0a0a;
  --bg-card: #0f0f0f;
  --border-color: #2a2a2a;
  --border-style: 1px solid var(--border-color);
  --border-hover: #3a3a3a;
  --radius: 8px;
  --radius-lg: 8px;
  --radius-pill: 6px;
  --text: #e0e0e0;
  --text-dim: #666;
  --text-muted: #444;
  --accent: #00ff41;
  --accent-dim: #00cc33;
  --accent-glow: rgba(0,255,65,0.15);
  --accent-2: #00e5ff;
  --accent-3: #ff3b3b;
  --accent-4: #ffcc00;
  --tag-bg: #00ff41;
  --tag-color: #0a0a0a;
  --tag2-bg: #00e5ff;
  --tag2-color: #0a0a0a;
  --tag3-bg: #ff3b3b;
  --tag3-color: #fff;
  --tag4-bg: #ffcc00;
  --tag4-color: #0a0a0a;
  --btn-bg: #111;
  --btn-color: #00ff41;
  --btn-border: 1px solid #00cc33;
  --btn-hover-bg: rgba(0,255,65,0.08);
  --btn2-bg: transparent;
  --btn2-color: #666;
  --btn2-border: 1px solid transparent;
  --font-display: 'JetBrains Mono', monospace;
  --font-body: 'JetBrains Mono', monospace;
  --hero-size: clamp(2.5rem, 5.5vw, 4rem);
  --hero-weight: 700;
  --hero-spacing: -0.02em;
  --hero-line: 1.15;
  --card-shadow: none;
  --card-hover-shadow: 0 0 15px var(--accent-glow);
  --card-hover-border: var(--accent-dim);
  --card-transform: translateY(-2px);
  --quote-font: 'JetBrains Mono', monospace;
  --quote-style: italic;
  --footer-bg: var(--bg);
  --transition: 0.2s ease;
  --grid-cols: repeat(auto-fill, minmax(280px, 1fr));
}

/* --- ELEGANT (Midnight Gold) --- */
.theme-elegant {
  --bg: #0C0A0E;
  --bg-card: #161318;
  --border-color: rgba(212,168,83,0.08);
  --border-style: 1px solid var(--border-color);
  --border-hover: rgba(212,168,83,0.2);
  --radius: 12px;
  --radius-lg: 12px;
  --radius-pill: 100px;
  --text: #EDE8E0;
  --text-dim: #B5AFA5;
  --text-muted: #6B6470;
  --accent: #D4A853;
  --accent-dim: #B8923F;
  --accent-glow: rgba(212,168,83,0.12);
  --accent-2: #C4707A;
  --accent-3: #8B7EC8;
  --accent-4: #E06B8A;
  --tag-bg: rgba(212,168,83,0.12);
  --tag-color: #D4A853;
  --tag2-bg: rgba(196,112,122,0.15);
  --tag2-color: #C4707A;
  --tag3-bg: rgba(139,126,200,0.12);
  --tag3-color: #8B7EC8;
  --tag4-bg: rgba(224,107,138,0.12);
  --tag4-color: #E06B8A;
  --btn-bg: #D4A853;
  --btn-color: #0C0A0E;
  --btn-border: none;
  --btn-hover-bg: #E0B85E;
  --btn2-bg: transparent;
  --btn2-color: #B5AFA5;
  --btn2-border: 1px solid var(--border-color);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --hero-size: clamp(2.8rem, 6vw, 5rem);
  --hero-weight: 400;
  --hero-spacing: -0.01em;
  --hero-line: 1.15;
  --card-shadow: none;
  --card-hover-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(212,168,83,0.04);
  --card-hover-border: var(--border-hover);
  --card-transform: translateY(-3px);
  --quote-font: 'Cormorant Garamond', serif;
  --quote-style: italic;
  --footer-bg: var(--bg);
  --transition: 0.4s ease;
  --grid-cols: repeat(auto-fill, minmax(300px, 1fr));
}

/* --- CUTESY (Cute-alism) --- */
.theme-cutesy {
  --bg: #FFFEF5;
  --bg-card: #FFFFFF;
  --border-color: #1A1A1A;
  --border-style: 4px solid var(--border-color);
  --border-hover: #1A1A1A;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;
  --text: #1A1A1A;
  --text-dim: #888;
  --text-muted: #AAA;
  --accent: #FF6B9D;
  --accent-dim: #E84A7F;
  --accent-glow: none;
  --accent-2: #7FEFBD;
  --accent-3: #C8A2FF;
  --accent-4: #FFE566;
  --tag-bg: #FF6B9D;
  --tag-color: #FFF;
  --tag2-bg: #7FEFBD;
  --tag2-color: #1A1A1A;
  --tag3-bg: #C8A2FF;
  --tag3-color: #FFF;
  --tag4-bg: #FFE566;
  --tag4-color: #1A1A1A;
  --btn-bg: #FF6B9D;
  --btn-color: #FFF;
  --btn-border: 4px solid #1A1A1A;
  --btn-hover-bg: #FF6B9D;
  --btn2-bg: #FFE566;
  --btn2-color: #1A1A1A;
  --btn2-border: 4px solid #1A1A1A;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --hero-size: clamp(2.5rem, 6vw, 4.2rem);
  --hero-weight: 900;
  --hero-spacing: -0.02em;
  --hero-line: 1.1;
  --card-shadow: 6px 6px 0 #1A1A1A;
  --card-hover-shadow: 9px 9px 0 #1A1A1A;
  --card-hover-border: #1A1A1A;
  --card-transform: translate(-3px, -3px);
  --quote-font: 'Outfit', sans-serif;
  --quote-style: normal;
  --footer-bg: #FFF8E8;
  --transition: 0.15s ease;
  --grid-cols: repeat(auto-fill, minmax(240px, 1fr));
}

/* --- BOLD (Brutalism) --- */
.theme-bold {
  --bg: #FFFFFF;
  --bg-card: #FFFFFF;
  --border-color: #000000;
  --border-style: 3px solid #000;
  --border-hover: #000;
  --radius: 0px;
  --radius-lg: 0px;
  --radius-pill: 0px;
  --text: #000000;
  --text-dim: #999;
  --text-muted: #CCC;
  --accent: #FF0000;
  --accent-dim: #CC0000;
  --accent-glow: none;
  --accent-2: #0000FF;
  --accent-3: #FF0000;
  --accent-4: #FFFF00;
  --tag-bg: #000;
  --tag-color: #FFF;
  --tag2-bg: #0000FF;
  --tag2-color: #FFF;
  --tag3-bg: #FF0000;
  --tag3-color: #FFF;
  --tag4-bg: #FFFF00;
  --tag4-color: #000;
  --btn-bg: #000;
  --btn-color: #FFF;
  --btn-border: 3px solid #000;
  --btn-hover-bg: #FF0000;
  --btn2-bg: #FFF;
  --btn2-color: #000;
  --btn2-border: 3px solid #000;
  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --hero-size: clamp(3.5rem, 10vw, 7rem);
  --hero-weight: 900;
  --hero-spacing: -0.04em;
  --hero-line: 0.92;
  --card-shadow: none;
  --card-hover-shadow: none;
  --card-hover-border: #000;
  --card-transform: none;
  --quote-font: 'Inter', sans-serif;
  --quote-style: normal;
  --footer-bg: #000;
  --transition: 0.1s ease;
  --grid-cols: 1fr;
}

/* --- GLASS (Bento + Glassmorphism) --- */
.theme-glass {
  --bg: #0B0B14;
  --bg-card: rgba(255,255,255,0.04);
  --border-color: rgba(255,255,255,0.08);
  --border-style: 1px solid var(--border-color);
  --border-hover: rgba(255,255,255,0.15);
  --radius: 20px;
  --radius-lg: 24px;
  --radius-pill: 100px;
  --text: #EEEEF0;
  --text-dim: #8B8B9E;
  --text-muted: #55556A;
  --accent: #A78BFA;
  --accent-dim: #8B6FE0;
  --accent-glow: rgba(167,139,250,0.12);
  --accent-2: #60A5FA;
  --accent-3: #F472B6;
  --accent-4: #34D399;
  --tag-bg: rgba(167,139,250,0.12);
  --tag-color: #A78BFA;
  --tag2-bg: rgba(96,165,250,0.12);
  --tag2-color: #60A5FA;
  --tag3-bg: rgba(244,114,182,0.12);
  --tag3-color: #F472B6;
  --tag4-bg: rgba(52,211,153,0.12);
  --tag4-color: #34D399;
  --btn-bg: linear-gradient(135deg, #A78BFA, #60A5FA, #F472B6);
  --btn-color: #0B0B14;
  --btn-border: none;
  --btn-hover-bg: linear-gradient(135deg, #A78BFA, #60A5FA, #F472B6);
  --btn2-bg: rgba(255,255,255,0.04);
  --btn2-color: #8B8B9E;
  --btn2-border: 1px solid rgba(255,255,255,0.08);
  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --hero-size: clamp(2.5rem, 5.5vw, 4.5rem);
  --hero-weight: 800;
  --hero-spacing: -0.03em;
  --hero-line: 1.1;
  --card-shadow: none;
  --card-hover-shadow: 0 20px 50px rgba(0,0,0,0.3);
  --card-hover-border: var(--border-hover);
  --card-transform: translateY(-2px);
  --quote-font: 'Inter', sans-serif;
  --quote-style: italic;
  --footer-bg: var(--bg);
  --transition: 0.3s ease;
  --grid-cols: repeat(auto-fill, minmax(280px, 1fr));
}

.theme-retro {
  --bg: #1A0A2E;
  --bg-card: rgba(255,255,255,0.04);
  --border-color: rgba(0,240,255,0.12);
  --border-style: 1px solid var(--border-color);
  --border-hover: rgba(255,45,149,0.3);
  --radius: 4px;
  --radius-lg: 8px;
  --radius-pill: 100px;
  --text: #F0E6F6;
  --text-dim: #9B8AB8;
  --text-muted: #5E4A7A;
  --accent: #FF2D95;
  --accent-dim: #CC2477;
  --accent-glow: rgba(255,45,149,0.15);
  --accent-2: #00F0FF;
  --accent-3: #FFD700;
  --accent-4: #A855F7;
  --tag-bg: rgba(255,45,149,0.15);
  --tag-color: #FF2D95;
  --tag2-bg: rgba(0,240,255,0.12);
  --tag2-color: #00F0FF;
  --tag3-bg: rgba(255,215,0,0.12);
  --tag3-color: #FFD700;
  --tag4-bg: rgba(168,85,247,0.12);
  --tag4-color: #A855F7;
  --btn-bg: linear-gradient(135deg, #FF2D95, #A855F7);
  --btn-color: #FFFFFF;
  --btn-border: none;
  --btn-hover-bg: linear-gradient(135deg, #FF2D95, #A855F7);
  --btn2-bg: rgba(0,240,255,0.08);
  --btn2-color: #00F0FF;
  --btn2-border: 1px solid rgba(0,240,255,0.2);
  --font-display: 'Russo One', sans-serif;
  --font-body: 'Inter', sans-serif;
  --hero-size: clamp(2.5rem, 5.5vw, 4.5rem);
  --hero-weight: 700;
  --hero-spacing: -0.02em;
  --hero-line: 1.1;
  --card-shadow: 0 0 20px rgba(255,45,149,0.06);
  --card-hover-shadow: 0 0 30px rgba(255,45,149,0.15), 0 0 60px rgba(0,240,255,0.08);
  --card-hover-border: rgba(255,45,149,0.3);
  --card-transform: translateY(-2px);
  --quote-font: 'Russo One', sans-serif;
  --quote-style: normal;
  --footer-bg: #120822;
  --transition: 0.3s ease;
  --grid-cols: repeat(auto-fill, minmax(280px, 1fr));
}

/* ===== BASE STYLES ===== */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s, color 0.4s;
}

a { color: var(--text); text-decoration: none; transition: all var(--transition); }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }

/* ===== BG LAYER ===== */
.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s;
}

.theme-techy .bg-layer {
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
}

.theme-elegant .bg-layer {
  background: radial-gradient(ellipse at 50% 0%, rgba(212,168,83,0.04) 0%, transparent 60%);
}

.theme-cutesy .bg-layer {
  background: radial-gradient(circle, rgba(26,26,26,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.theme-bold .bg-layer { background: none; }

.theme-glass .bg-layer {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(167,139,250,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(96,165,250,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(244,114,182,0.05) 0%, transparent 50%);
}

.theme-retro .bg-layer {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(0,240,255,0.04) 59px, rgba(0,240,255,0.04) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,45,149,0.04) 59px, rgba(255,45,149,0.04) 60px),
    radial-gradient(ellipse at 50% 110%, rgba(255,45,149,0.12) 0%, transparent 50%);
}

/* ===== NAV ===== */
.nav {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  transition: border var(--transition);
}

.theme-bold .nav,
.theme-cutesy .nav {
  border-bottom: var(--border-style);
  max-width: 100%;
  padding: 1rem 2rem;
}

.theme-techy .nav { border-bottom: 1px solid #1a1a1a; }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.theme-bold .nav-logo { font-family: 'Space Mono', monospace; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.theme-techy .nav-logo { font-family: 'JetBrains Mono', monospace; }
.theme-techy .nav-logo::before { content: '$ '; color: #00ff41; }
.theme-techy .nav-logo::after { content: '_'; color: #00ff41; animation: cursor-blink 1s step-end infinite; }
.theme-retro .nav-logo { font-family: 'Russo One', sans-serif; text-shadow: 0 0 10px rgba(0,240,255,0.4); }
.theme-elegant .nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
}

.nav-link:hover {
  color: var(--accent);
}

.theme-bold .nav-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0;
  padding: 0.6rem 1.25rem;
  border-left: var(--border-style);
}
.theme-bold .nav-link:hover { background: #000; color: #FFF; }

.theme-cutesy .nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border: 3px solid transparent;
  border-radius: var(--radius-pill);
}
.theme-cutesy .nav-link:hover {
  border-color: #1A1A1A;
  background: #FFE566;
  color: #1A1A1A;
  box-shadow: 3px 3px 0 #1A1A1A;
}

.theme-elegant .nav-link {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

/* ===== THEME SWITCHER ===== */
.theme-switcher {
  position: relative;
}

.theme-btn {
  cursor: pointer;
}

.theme-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: var(--border-style);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 160px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.theme-cutesy .theme-dropdown { box-shadow: 6px 6px 0 #1A1A1A; background: #FFF; }
.theme-bold .theme-dropdown { border-radius: 0; }

.theme-dropdown.open { display: block; }

.theme-option {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}

.theme-option:last-child { border-bottom: none; }
.theme-option:hover { background: var(--accent-glow, rgba(255,255,255,0.05)); color: var(--text); }
.theme-option.active { color: var(--accent); font-weight: 600; }
.theme-cutesy .theme-option:hover { background: #FFE566; color: #1A1A1A; }
.theme-bold .theme-option:hover { background: #000; color: #FFF; }

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  text-align: center;
}

.theme-bold .hero { text-align: left; max-width: 100%; padding: 4rem 2rem 3rem; border-bottom: 5px solid #000; }
.theme-cutesy .hero { max-width: 800px; padding: 5rem 2rem 4rem; }

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
}

.theme-glass .hero-tag { background: var(--accent-glow); border: 1px solid rgba(167,139,250,0.15); }
.theme-cutesy .hero-tag { background: #FFD4E5; border: 3px solid #1A1A1A; box-shadow: 3px 3px 0 #1A1A1A; color: #1A1A1A; font-family: 'Outfit', sans-serif; font-weight: 700; }
.theme-bold .hero-tag { font-family: 'Space Mono', monospace; font-size: 0.65rem; color: var(--text-dim); padding: 0; background: none; }
.theme-techy .hero-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; background: none; padding: 0; }
.theme-elegant .hero-tag { letter-spacing: 0.2em; font-size: 0.7rem; }

.hero-title {
  font-family: var(--font-display);
  font-size: var(--hero-size);
  font-weight: var(--hero-weight);
  line-height: var(--hero-line);
  letter-spacing: var(--hero-spacing);
  margin-bottom: 1.25rem;
  transition: font-size 0.3s, font-weight 0.3s;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.theme-bold .hero-title { text-transform: uppercase; font-size: clamp(3.5rem, 10vw, 8rem) !important; }
.theme-bold .hero-title em { font-style: normal; }
.theme-cutesy .hero-title em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 50%, #FFE566 50%);
  padding: 0 0.2rem;
  color: var(--text);
}
.theme-glass .hero-title em {
  background: linear-gradient(135deg, #A78BFA, #60A5FA, #F472B6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.theme-bold .hero-sub { max-width: 400px; margin-left: 0; font-size: 0.9rem; }

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.theme-bold .hero-cta { justify-content: flex-start; gap: 0; }

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-color);
  border: var(--btn-border);
}

.btn-primary:hover {
  transform: translateY(-1px);
  color: var(--btn-color);
  filter: brightness(1.1);
}

.theme-cutesy .btn-primary { box-shadow: 6px 6px 0 #1A1A1A; }
.theme-cutesy .btn-primary:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 #1A1A1A; color: #FFF; }
.theme-bold .btn-primary {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  border-radius: 0;
  padding: 1rem 2rem;
}
.theme-bold .btn-primary:hover { background: var(--accent); transform: none; }
.theme-glass .btn-primary:hover { box-shadow: 0 4px 25px rgba(167,139,250,0.35); }
.theme-elegant .btn-primary:hover { box-shadow: 0 4px 30px rgba(212,168,83,0.3); }

.btn-secondary {
  background: var(--btn2-bg);
  color: var(--btn2-color);
  border: var(--btn2-border);
}

.btn-secondary:hover { color: var(--accent); border-color: var(--border-hover); }
.theme-cutesy .btn-secondary { box-shadow: 6px 6px 0 #1A1A1A; }
.theme-cutesy .btn-secondary:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 #1A1A1A; color: #1A1A1A; }
.theme-bold .btn-secondary {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  border-radius: 0;
  padding: 1rem 2rem;
  border-left: none;
}

/* ===== THEME-SPECIFIC VISIBILITY ===== */

/* --- Scanlines: techy only --- */
.scanlines { display: none; }
.theme-techy .scanlines {
  display: block;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
}

/* --- Logo emoji: cutesy only --- */
.logo-emoji { display: none; }
.theme-cutesy .logo-emoji { display: inline; }

/* --- Hero visibility --- */
.hero-techy, .hero-cutesy { display: none; }
.hero-default { display: block; }

.theme-techy .hero-default { display: none; }
.theme-techy .hero-techy { display: block; }

.theme-cutesy .hero-default { display: none; }
.theme-cutesy .hero-cutesy { display: block; }

/* --- Posts visibility --- */
.posts-techy, .posts-glass { display: none; }
.posts-default { display: block; }

.theme-techy .posts-default { display: none; }
.theme-techy .posts-techy { display: block; }

.theme-glass .posts-default { display: none; }
.theme-glass .posts-glass { display: block; }

/* --- Stats strip: glass only --- */
.stats-strip { display: none; }
.theme-glass .stats-strip {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  flex: 1;
  max-width: 180px;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Quote emoji: cutesy only --- */
.quote-emoji { display: none; }
.theme-cutesy .quote-emoji {
  display: block;
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: -0.5rem;
}

/* --- About visibility --- */
.about-techy, .about-cutesy { display: none; }
.about-default { display: block; }

.theme-techy .about-default { display: none; }
.theme-techy .about-techy { display: block; }

.theme-cutesy .about-default { display: none; }
.theme-cutesy .about-cutesy { display: block; }

/* --- Elegant glow orb --- */
.hero-glow-orb { display: none; }
.theme-elegant .hero-glow-orb {
  display: block;
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,83,0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

/* ======================================================= */
/* TECHY: Terminal styles                                  */
/* ======================================================= */
.hero-terminal {
  max-width: 700px;
  margin: 0 auto 2rem;
  border: 1px solid #1a3a1a;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0a0a;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid #1a3a1a;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: #555;
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.7;
}

.terminal-line {
  margin-bottom: 0.5rem;
}

.t-prompt { color: #00ff41; }
.t-cmd { color: #eee; }
.t-comment { color: #6a9955; }
.t-white { color: #ccc; }
.t-accent { color: #00ff41; }
.t-cursor { color: #00ff41; }
.t-cursor.blink { animation: cursor-blink 1s step-end infinite; }

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.btn-terminal {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid #00ff41;
  color: #00ff41;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-terminal:hover {
  background: rgba(0,255,65,0.1);
  box-shadow: 0 0 15px rgba(0,255,65,0.15);
  color: #00ff41;
}

.theme-techy .btn-ghost {
  color: #666;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.theme-techy .btn-ghost:hover { color: #00ff41; }

.theme-techy .post-read {
  display: block;
  margin-top: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #00ff41;
  opacity: 0.6;
}

.theme-techy .post-read:hover { opacity: 1; }

.about-terminal {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 600px;
}

.inline-link {
  color: #00ff41;
  text-decoration: underline;
}

/* ======================================================= */
/* CUTESY: Stickers, badge, highlight                      */
/* ======================================================= */
.hero-cutesy {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
}

.hero-badge-cute {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5em 1.2em;
  border: 3px solid #1A1A1A;
  border-radius: 100px;
  background: #FFE135;
  margin-bottom: 1.5rem;
  box-shadow: 4px 4px 0 #1A1A1A;
}

.hero-highlight {
  color: #FF6B5B;
  position: relative;
}

.sticker {
  display: none;
  position: absolute;
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
  pointer-events: none;
}

.theme-cutesy .sticker { display: block; }

.sticker-1 { top: 10%; right: 5%; animation-delay: 0s; }
.sticker-2 { bottom: 20%; left: 3%; animation-delay: 1s; }
.sticker-3 { top: 30%; left: 8%; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

/* ======================================================= */
/* GLASS: Bento grid                                       */
/* ======================================================= */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 1rem;
}

.bento-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text);
}

.bento-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.bento-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.75rem 0 0.5rem;
  line-height: 1.3;
}

.bento-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.bento-card h3 a:hover { color: var(--accent); }

.bento-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.bento-featured {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-featured h3 { font-size: 1.4rem; }

.bento-sm h3 { font-size: 1rem; }

.bento-wide {
  grid-column: 1 / -1;
}

/* ===== MARQUEE (bold theme only) ===== */
.marquee {
  display: none;
}

.theme-bold .marquee {
  display: block;
  overflow: hidden;
  border-bottom: 5px solid #000;
  background: #000;
  color: #FFF;
  padding: 0.75rem 0;
  position: relative;
  z-index: 1;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 20s linear infinite;
}

.marquee-track span {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding-right: 2rem;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.33%); }
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.theme-bold .section { max-width: 100%; border-bottom: 5px solid #000; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.theme-bold .section-title { font-weight: 900; }
.theme-cutesy .section-title { font-weight: 800; }

.section-link {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.section-link:hover { color: var(--accent); }

/* ===== POST CARDS ===== */
.posts-grid {
  display: grid;
  grid-template-columns: var(--grid-cols);
  gap: 1.25rem;
}

.post-card {
  background: var(--bg-card);
  border: var(--border-style);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(15px);
}

.post-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition), border-color var(--transition);
}

.post-card:hover {
  box-shadow: var(--card-hover-shadow);
  border-color: var(--card-hover-border);
  transform: var(--card-transform);
}

.theme-glass .post-card { backdrop-filter: blur(10px); }
.theme-bold .post-card { border-bottom: var(--border-style); border-radius: 0; padding: 1.25rem 0; background: none; border-left: none; border-right: none; border-top: none; }
.theme-bold .post-card:hover { background: #F2F2F2; padding-left: 1rem; }

/* Cutesy colored card backgrounds */
.theme-cutesy .post-card[data-category="hack"] { background: #FFF0F5; }
.theme-cutesy .post-card[data-category="auto"] { background: #E8FFF3; }
.theme-cutesy .post-card[data-category="take"] { background: #F3EAFF; }
.theme-cutesy .post-card[data-category="tiktok"] { background: #FFFDE0; }

.post-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.8rem;
  background: var(--tag-bg);
  color: var(--tag-color);
}

.post-tag.tag-2 { background: var(--tag2-bg); color: var(--tag2-color); }
.post-tag.tag-3 { background: var(--tag3-bg); color: var(--tag3-color); }
.post-tag.tag-4 { background: var(--tag4-bg); color: var(--tag4-color); }

.theme-cutesy .post-tag { border: 3px solid #1A1A1A; border-radius: var(--radius-pill); font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 0.55rem; }
.theme-bold .post-tag { border-radius: 0; font-family: 'Space Mono', monospace; font-size: 0.55rem; letter-spacing: 0.1em; }
.theme-glass .post-tag { border-radius: 8px; }

.post-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.theme-elegant .post-title { font-size: 1.25rem; font-weight: 500; }
.theme-bold .post-title { font-family: 'Inter', sans-serif; }

.post-title a { color: var(--text); }
.post-title a:hover { color: var(--accent); }
.theme-bold .post-title a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; color: var(--text); }

.post-excerpt {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.theme-bold .post-meta { font-family: 'Space Mono', monospace; }
.theme-techy .post-meta { font-family: 'JetBrains Mono', monospace; }

/* ===== QUOTE ===== */
.quote-section {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.theme-bold .quote-section { max-width: 100%; text-align: center; padding: 4rem 2rem; border-bottom: 5px solid #000; }

.quote-block {
  text-align: center;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

.theme-glass .quote-block { background: var(--bg-card); border: var(--border-style); backdrop-filter: blur(20px); }
.theme-cutesy .quote-block { background: #FFE566; border: 4px solid #1A1A1A; box-shadow: 10px 10px 0 #1A1A1A; }
.theme-elegant .quote-block { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); border-radius: 0; padding: 3rem 0; }
.theme-bold .quote-block { padding: 0; }

.quote-block p {
  font-family: var(--quote-font);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 500;
  font-style: var(--quote-style);
  line-height: 1.5;
  color: var(--text-dim);
}

.theme-bold .quote-block p { font-weight: 900; font-size: clamp(1.5rem, 3.5vw, 2.5rem); color: var(--text); letter-spacing: -0.02em; }
.theme-cutesy .quote-block p { color: #1A1A1A; font-weight: 600; }

.quote-block em {
  color: var(--accent);
  font-style: inherit;
}

.theme-bold .quote-block em { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 4px; }
.theme-glass .quote-block em {
  background: linear-gradient(135deg, #A78BFA, #60A5FA, #F472B6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.theme-cutesy .quote-block em {
  background: linear-gradient(180deg, transparent 50%, #FFD4E5 50%);
  -webkit-text-fill-color: initial;
  padding: 0 0.15rem;
}

/* ===== ABOUT STRIP ===== */
.about-strip {
  border-top: var(--border-style);
}

.theme-bold .about-strip { border-top: 5px solid #000; border-bottom: 5px solid #000; }

.about-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  max-width: 700px;
}

.theme-cutesy .about-card {
  background: #FFF;
  border: 4px solid #1A1A1A;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 2rem;
  max-width: 100%;
}

.theme-glass .about-card {
  background: var(--bg-card);
  border: var(--border-style);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
  max-width: 100%;
}

.about-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  flex-shrink: 0;
  background: var(--accent);
  color: var(--bg);
}

.theme-cutesy .about-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #1A1A1A;
  background: #FFD4E5;
  box-shadow: 4px 4px 0 #1A1A1A;
  font-size: 2rem;
}

.theme-glass .about-avatar {
  border-radius: 16px;
  background: linear-gradient(135deg, #A78BFA, #60A5FA, #F472B6);
}

.theme-bold .about-avatar { display: none; }

.about-content h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.theme-bold .about-content h2 { font-size: 3rem; font-weight: 900; letter-spacing: -0.04em; }

.about-content p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-link {
  font-size: 0.85rem;
  color: var(--accent);
}
.about-link.btn-primary {
  color: var(--btn-color);
}

.theme-bold .about-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  color: var(--text);
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  border-top: var(--border-style);
  padding: 2rem;
  background: var(--footer-bg);
  transition: background 0.4s;
}

.theme-bold .footer { border-top: none; }
.theme-bold .footer a { color: #999; }
.theme-bold .footer a:hover { color: #FFF; }
.theme-bold .footer .footer-logo,
.theme-bold .footer .footer-copy { color: #999; }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dim);
}

.theme-bold .footer-logo { font-family: 'Space Mono', monospace; text-transform: uppercase; letter-spacing: 0.05em; color: #FFF; }

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 0.25rem; }
  .nav-link { font-size: 0.75rem; padding: 0.4rem 0.6rem; }
  .hero { padding: 4rem 1.25rem 3rem; }
  .hero-title { font-size: 2.2rem !important; }
  .hero-sub { font-size: 0.9rem; }
  .hero-sub br { display: none; }
  .hero-cta { flex-direction: column; align-items: center; }
  .theme-bold .hero-cta { align-items: flex-start; }
  .section { padding: 2rem 1.25rem; }
  .posts-grid { grid-template-columns: 1fr !important; }
  .quote-section { padding: 2rem 1.25rem; }
  .about-card { flex-direction: column; text-align: center; }
  .theme-bold .about-card { text-align: left; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ===== RETRO OVERRIDES ===== */
.theme-retro .hero-title {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0,240,255,0.4), 0 0 40px rgba(0,240,255,0.15), 0 0 80px rgba(255,45,149,0.1);
}

.theme-retro .hero-tag {
  background: rgba(0,240,255,0.1);
  border: 1px solid rgba(0,240,255,0.2);
  color: #00F0FF;
}

.theme-retro .hero-title em {
  background: linear-gradient(135deg, #FF2D95, #A855F7, #00F0FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-retro .btn-primary:hover {
  box-shadow: 0 0 25px rgba(255,45,149,0.4), 0 0 50px rgba(255,45,149,0.15);
}

.theme-retro .post-card {
  border: 1px solid rgba(0,240,255,0.1);
  box-shadow: 0 0 15px rgba(255,45,149,0.05);
}

.theme-retro .post-card:hover {
  border-color: rgba(255,45,149,0.3);
  box-shadow: 0 0 30px rgba(255,45,149,0.12), 0 0 60px rgba(0,240,255,0.06);
}

.theme-retro .quote-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,240,255,0.1);
}

.theme-retro .quote-block em {
  background: linear-gradient(135deg, #FF2D95, #00F0FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-retro .about-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,240,255,0.1);
}

.theme-retro .footer {
  background: #120822;
  border-top: 1px solid rgba(0,240,255,0.08);
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem !important; }
  .hero-title br { display: none; }
  .theme-bold .hero-title { font-size: 2.5rem !important; }
}
