/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   shared.css — Chai Choco shared base styles
   Included by: index.html, components.html, showcase.html
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── PALETTE ── */
:root {
  --void:    #1a0a00;
  --darkest: #2C1810;
  --dark:    #3D1F10;
  --rich:    #4A2515;
  --mid:     #7B4A2D;
  --milk:    #8B5E3C;
  --caramel: #C68642;
  --gold:    #D4924A;
  --cream:   #E8D5B7;
  --latte:   #F5E6D3;
  --light:   #FFF8F0;
  --muted:   #A0785A;
  --page-bg: #100500;
}

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

/* ── BASE ── */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; overflow-x: hidden; }
::selection { background: rgba(198,134,66,0.3); color: var(--light); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--mid); }

/* ── TOPBAR (shared between components.html & showcase.html) ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(16,5,0,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(198,134,66,0.1);
}
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--light);
  letter-spacing: -0.3px;
}
.topbar-logo-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, #4A2515, #C68642);
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.topbar-link:hover { color: var(--light); border-color: rgba(198,134,66,0.2); background: rgba(198,134,66,0.06); }
.topbar-link.active { color: var(--caramel); border-color: rgba(198,134,66,0.25); background: rgba(198,134,66,0.08); }
.topbar.scrolled { border-bottom-color: rgba(198,134,66,0.22); }

/* ── TOPBAR CTA ── */
.topbar-cta {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 8px;
  background: var(--caramel);
  color: var(--void);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.topbar-cta:hover { background: var(--gold); transform: translateY(-1px); }

/* ── TOPBAR MOBILE MENU (site-header.js pages only) ── */
.topbar-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  align-items: center;
}
.topbar-mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: rgba(16,5,0,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(198,134,66,0.15);
  padding: 16px 24px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 2px;
}
.topbar-mobile-menu.open { display: flex; }
.topbar-mobile-menu a {
  display: block;
  padding: 11px 0;
  color: var(--latte);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid rgba(198,134,66,0.08);
  transition: color 0.15s ease;
}
.topbar-mobile-menu a:last-child { border-bottom: none; }
.topbar-mobile-menu a:hover { color: var(--light); }

@media (max-width: 768px) {
  .topbar { padding: 0 16px; }
  #topbar-desktop-nav { display: none; }
  .topbar-mobile-btn { display: flex; }
}
@media (max-width: 480px) {
  .topbar-logo { font-size: 14px; gap: 8px; }
}

/* ── CONTAINER ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
