/* ═══════════════════════════════════════════════
   STUDIO SIGNAL — Main Stylesheet
   Dark theme: #0c0c0e bg, #e8ff47 accent
═══════════════════════════════════════════════ */

:root {
  --bg: #0c0c0e;
  --surface: #141416;
  --surface2: #1c1c20;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.14);
  --accent: #e8ff47;
  --accent2: #ff6b35;
  --text: #f0ede8;
  --muted: #8a8780;
  --muted2: #5a5856;
  --green: #4ade80;
  --blue: #60a5fa;
  --pink: #f472b6;
  --purple: #a78bfa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* ── NAVIGATION ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,12,14,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0;
  padding: 0 2rem;
  height: 52px;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 17px;
  color: var(--accent);
  letter-spacing: -0.5px;
  margin-right: 2rem;
  white-space: nowrap;
  text-decoration: none;
}
.nav-tabs { display: flex; gap: 0; flex: 1; }
.nav-tab {
  padding: 0 1.1rem;
  height: 52px;
  display: flex; align-items: center;
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s;
  text-decoration: none;
}
.nav-tab:hover { color: var(--text); }
.nav-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── HAMBURGER BUTTON ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ── */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    height: auto;
    min-height: 52px;
    padding: 0 1.2rem;
  }
  .nav-logo { line-height: 52px; }
  .nav-toggle { display: flex; }
  .nav-tabs {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0.5rem 0 0.8rem;
    border-top: 1px solid var(--border);
  }
  nav.open .nav-tabs { display: flex; }
  .nav-tab {
    height: 44px;
    padding: 0 0.4rem;
    font-size: 14px;
    border-bottom: none;
    border-left: 2px solid transparent;
  }
  .nav-tab.active {
    border-bottom-color: transparent;
    border-left-color: var(--accent);
  }
}

/* ── HERO ── */
.hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(232,255,71,0.03) 0%, transparent 100%);
}
.hero-inner {
  max-width: 900px; margin: 0 auto;
  padding: 4rem 2rem 3rem;
}
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 3rem;
  line-height: 1.05; margin-bottom: 0.5rem;
}
.hero-tagline {
  font-family: 'Space Mono', monospace;
  font-size: 14px; color: var(--accent);
  margin-bottom: 1rem;
}
.hero-sub {
  color: var(--muted); font-size: 16px;
  max-width: 600px; margin-bottom: 1.5rem; line-height: 1.7;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-pills a { text-decoration: none; }

/* ── SECTIONS ── */
.section { padding: 2.5rem 2rem; max-width: 900px; margin: 0 auto; }
.post-section { max-width: 760px; }
.section-intro { color: var(--muted); font-size: 15px; margin-top: 0.5rem; }

/* ── TYPOGRAPHY ── */
h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2.2rem; line-height: 1.1; }
h2 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.4rem; margin-bottom: 1rem; }
h3 { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1.1rem; margin-bottom: 0.6rem; }
.label {
  font-family: 'Space Mono', monospace;
  font-size: 11px; color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem;
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
}
.card-grid { display: grid; gap: 14px; }
.card-grid-2 { grid-template-columns: 1fr 1fr; }
.card-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
@media(max-width: 640px) { .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; } }

/* ── POST CARD ── */
.post-card { display: flex; flex-direction: column; gap: 0.5rem; transition: border-color 0.15s; }
.post-card:hover { border-color: var(--border2); }
.post-card h3 { margin-bottom: 0; font-size: 1rem; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card-desc { color: var(--muted); font-size: 13px; line-height: 1.6; flex: 1; }
.post-card-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: 0.5rem; }
.post-card-date { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted2); }
.post-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }

/* ── PILLS ── */
.pill {
  display: inline-block; font-size: 11px; font-weight: 500;
  padding: 3px 10px; border-radius: 100px;
  font-family: 'Space Mono', monospace;
}
.pill-accent { background: rgba(232,255,71,0.12); color: var(--accent); }
.pill-orange { background: rgba(255,107,53,0.12); color: var(--accent2); }
.pill-green { background: rgba(74,222,128,0.12); color: var(--green); }
.pill-blue { background: rgba(96,165,250,0.12); color: var(--blue); }
.pill-pink { background: rgba(244,114,182,0.12); color: var(--pink); }
.pill-purple { background: rgba(167,139,250,0.12); color: var(--purple); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--accent); color: #0c0c0e;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px;
  padding: 10px 20px; border-radius: 8px;
  text-decoration: none; transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.88; color: #0c0c0e; }
.btn-secondary {
  display: inline-block;
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text); font-size: 14px; font-weight: 500;
  padding: 10px 20px; border-radius: 8px;
  text-decoration: none; transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ── START HERE CARD ── */
.start-here { margin-bottom: 0; }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 1.8rem 0; }

/* ── POST SINGLE ── */
.post-header {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}
.post-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.post-date { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--muted); }
.post-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.8rem; line-height: 1.2; margin-bottom: 0.8rem; }
.post-intro { color: var(--muted); font-size: 15px; line-height: 1.7; }

.post-body { font-size: 15px; line-height: 1.8; color: #ccc9c4; }
.post-body h2 { color: var(--text); margin: 2rem 0 0.8rem; font-size: 1.25rem; }
.post-body h3 { color: var(--text); margin: 1.5rem 0 0.5rem; font-size: 1.05rem; }
.post-body p { margin-bottom: 1rem; }
.post-body ul, .post-body ol { margin: 0.8rem 0 1rem 1.5rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body strong { color: var(--text); }
.post-body em { color: var(--text); }

.post-body .highlight {
  background: var(--surface2); border-left: 3px solid var(--accent);
  padding: 1rem 1.2rem; border-radius: 0 8px 8px 0;
  margin: 1.2rem 0; font-style: italic; color: var(--text);
}
.post-body .product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 1rem 1.2rem; margin: 1rem 0;
}
.post-body .product-card--img {
  display: flex; align-items: flex-start; gap: 1rem;
}
.post-body .product-thumb {
  width: 96px; height: 96px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--surface2);
  flex-shrink: 0;
}
.post-body .product-card-body { flex: 1; min-width: 0; }
.post-body .product-name { font-weight: 600; color: var(--text); font-size: 15px; }
.post-body .product-price { color: var(--accent); font-family: 'Space Mono', monospace; font-size: 13px; margin-top: 4px; }
.post-body .product-note { color: var(--muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 480px) {
  .post-body .product-card--img { flex-direction: column; }
  .post-body .product-thumb { width: 100%; height: 160px; }
}

/* ── POST HERO IMAGE ── */
.post-hero-image {
  width: 100%; max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: block;
}

/* ── POST CARD IMAGE ── */
.post-card-image {
  width: 100%; height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.6rem;
}

.affiliate-note {
  background: rgba(232,255,71,0.05); border: 1px solid rgba(232,255,71,0.15);
  border-radius: 8px; padding: 0.8rem 1rem;
  font-size: 12px; color: var(--muted); margin: 1.5rem 0;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 900px; margin: 0 auto; text-align: center;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 16px; color: var(--accent);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-family: 'Space Mono', monospace;
  font-size: 12px; color: var(--muted); margin-bottom: 1rem;
}
.footer-links {
  font-size: 13px; color: var(--muted); margin-bottom: 1rem;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-note {
  font-size: 11px; color: var(--muted2); max-width: 560px; margin: 0 auto;
  line-height: 1.6;
}

/* ── COOKIE CONSENT ── */
#cookie-banner {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 999; width: calc(100% - 3rem); max-width: 680px;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 12px; padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.cookie-inner {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; width: 100%;
}
.cookie-text {
  flex: 1; font-size: 13px; color: var(--muted); min-width: 200px;
}
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-btn {
  padding: 7px 16px; border-radius: 7px; border: none;
  font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'Inter', sans-serif;
}
.cookie-accept {
  background: var(--accent); color: #0c0c0e;
}
.cookie-decline {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border2);
}
.cookie-decline:hover { color: var(--text); }
.footer-legal {
  font-size: 12px; color: var(--muted2); margin-top: 0.8rem;
}
.footer-legal a { color: var(--muted2); text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }
