/* ═══════════════════════════════════════════════════════
   TRANS INFO HUB – Main Stylesheet
   Aesthetic: Editorial / Warm · Dark Mode · Refined
   ═══════════════════════════════════════════════════════ */

:root {
  --bg:           #0c0c10;
  --bg2:          #111118;
  --surface:      #16161f;
  --surface2:     #1d1d28;
  --border:       #252535;
  --border2:      #2e2e42;

  --text:         #e8e4f0;
  --text-muted:   #7c7a90;
  --text-dim:     #4a4860;

  --accent-rose:  #e879a0;
  --accent-lav:   #a78bfa;
  --accent-sky:   #7dd3fc;
  --accent-mint:  #6ee7b7;
  --accent-amber: #fbbf24;

  --glow-rose:    rgba(232,121,160,0.15);
  --glow-lav:     rgba(167,139,250,0.12);

  --sidebar-w:    260px;
  --font-serif:   'Fraunces', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  --radius:       14px;
  --radius-sm:    8px;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--accent-lav); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-rose); }

/* ═══════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════ */

.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 32px 0;
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.logo-symbol {
  font-size: 28px;
  color: var(--accent-rose);
  line-height: 1;
  text-shadow: 0 0 20px var(--glow-rose);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

.nav-links {
  list-style: none;
  flex: 1;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  transition: all 0.2s;
  letter-spacing: 0.2px;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-link.active {
  color: var(--accent-rose);
  background: rgba(232,121,160,0.08);
  font-weight: 500;
}

.nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  opacity: 0.6;
}

.nav-link.active .nav-icon { opacity: 1; }

.sidebar-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════ */

.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════
   PAGE HERO
   ═══════════════════════════════════════════════════════ */

.page-hero {
  position: relative;
  padding: 80px 64px 60px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--glow-rose) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 30%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--glow-lav) 0%, transparent 65%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent-rose);
  font-weight: 600;
  margin-bottom: 18px;
  position: relative; z-index: 1;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 20px;
  position: relative; z-index: 1;
  max-width: 700px;
}

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

.hero-lead {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  position: relative; z-index: 1;
}

/* ═══════════════════════════════════════════════════════
   CONTENT AREA
   ═══════════════════════════════════════════════════════ */

.content-area {
  padding: 56px 64px;
  max-width: 900px;
}

/* ═══════════════════════════════════════════════════════
   SECTIONS & CARDS
   ═══════════════════════════════════════════════════════ */

.section {
  margin-bottom: 64px;
}

.section-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-lav);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--accent-lav);
  opacity: 0.4;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}

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

.prose {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.prose strong {
  color: var(--text);
  font-weight: 500;
}

/* Info card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 18px;
  transition: border-color 0.3s;
}

.card:hover { border-color: var(--border2); }

.card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title .card-icon {
  font-size: 22px;
  line-height: 1;
}

.card-body {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
}

.card-body strong { color: var(--text); font-weight: 500; }

/* Accent cards */
.card-rose  { border-left: 3px solid var(--accent-rose); }
.card-lav   { border-left: 3px solid var(--accent-lav); }
.card-sky   { border-left: 3px solid var(--accent-sky); }
.card-mint  { border-left: 3px solid var(--accent-mint); }
.card-amber { border-left: 3px solid var(--accent-amber); }

/* Warning / info boxes */
.info-box {
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.65;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-box-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }

.info-box p { color: var(--text-muted); }
.info-box strong { color: var(--text); }

.info-box.note    { background: rgba(167,139,250,0.07); border: 1px solid rgba(167,139,250,0.2); }
.info-box.warning { background: rgba(251,191,36,0.07);  border: 1px solid rgba(251,191,36,0.25); }
.info-box.tip     { background: rgba(110,231,183,0.07); border: 1px solid rgba(110,231,183,0.2); }
.info-box.alert   { background: rgba(232,121,160,0.07); border: 1px solid rgba(232,121,160,0.25); }

/* Step list */
.step-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }

.step-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-number {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-rose);
  flex-shrink: 0;
  font-family: var(--font-serif);
}

.step-content { flex: 1; }

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Two-col grid */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.compare-table th {
  background: var(--surface2);
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 300;
  vertical-align: top;
  line-height: 1.6;
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(255,255,255,0.015); }

.compare-table td strong { color: var(--text); font-weight: 500; }

/* Tag pills */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 20px;
  margin: 3px 3px 3px 0;
  letter-spacing: 0.2px;
}

.tag-rose  { background: rgba(232,121,160,0.12); color: var(--accent-rose); border: 1px solid rgba(232,121,160,0.25); }
.tag-lav   { background: rgba(167,139,250,0.12); color: var(--accent-lav); border: 1px solid rgba(167,139,250,0.25); }
.tag-sky   { background: rgba(125,211,252,0.12); color: var(--accent-sky); border: 1px solid rgba(125,211,252,0.25); }
.tag-mint  { background: rgba(110,231,183,0.12); color: var(--accent-mint); border: 1px solid rgba(110,231,183,0.25); }
.tag-amber { background: rgba(251,191,36,0.12);  color: var(--accent-amber); border: 1px solid rgba(251,191,36,0.3); }

/* Resource link card */
.resource-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: all 0.2s;
  text-decoration: none;
}

.resource-card:hover {
  border-color: var(--accent-lav);
  background: var(--surface2);
  color: var(--text);
}

.resource-card-icon {
  font-size: 24px;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.resource-card-content { flex: 1; }

.resource-card-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}

.resource-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
}

.resource-card-arrow {
  color: var(--text-dim);
  font-size: 18px;
  transition: transform 0.2s, color 0.2s;
}

.resource-card:hover .resource-card-arrow {
  transform: translateX(4px);
  color: var(--accent-lav);
}

/* Horizontal divider */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 48px 0;
}

/* TOC */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
}

.toc-title {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-list a {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.toc-list a::before {
  content: '→';
  color: var(--text-dim);
  font-size: 12px;
}

.toc-list a:hover { color: var(--accent-lav); }

/* ═══════════════════════════════════════════════════════
   HOME PAGE SPECIAL
   ═══════════════════════════════════════════════════════ */

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  padding: 56px 64px;
}

.home-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.home-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--card-accent, var(--accent-rose));
  opacity: 0;
  transition: opacity 0.25s;
}

.home-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.home-card:hover::before { opacity: 1; }

.home-card-icon { font-size: 32px; line-height: 1; }

.home-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.home-card-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.home-card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  transition: color 0.2s;
}

.home-card:hover .home-card-link { color: var(--accent-lav); }

/* Home hero special */
.home-hero {
  padding: 80px 64px 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,121,160,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.home-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(167,139,250,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.home-flag {
  display: flex;
  gap: 0;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  width: 80px;
  margin-bottom: 28px;
  position: relative; z-index: 1;
}

.flag-stripe { flex: 1; }
.fs-1 { background: #55CDFC; }
.fs-2 { background: #F7A8B8; }
.fs-3 { background: #FFFFFF; }
.fs-4 { background: #F7A8B8; }
.fs-5 { background: #55CDFC; }

/* ═══════════════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════════════ */

.mobile-toggle {
  display: none;
  position: fixed;
  top: 16px; left: 16px;
  z-index: 300;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 20px;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 150;
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 30px rgba(0,0,0,0.5);
  }
  .mobile-toggle {
    display: flex;
  }
  .mobile-overlay.show {
    display: block;
  }
  .main-content {
    margin-left: 0;
  }
  .page-hero, .content-area, .home-hero {
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 72px;
  }
  .home-grid {
    padding: 24px;
    grid-template-columns: 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .compare-table {
    font-size: 13px;
  }
  .compare-table th, .compare-table td {
    padding: 10px 12px;
  }
}

/* ═══════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════ */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
