/* SipLab — luxe bar aesthetic
   Palette:
     bg          #1A1A2E   dark charcoal navy
     surface     #20203A   slightly lighter card
     surface-2   #2B2B4A   nested
     gold        #D4A574   amber gold accent
     gold-2      #E8C089   highlight gold
     cream       #FFF8F0   warm cream text
     muted       #9B9BB0   secondary text
     line        #38385E   subtle divider
     ember       #C57A4A   warm orange-red for alerts/CTA hover
*/

:root {
  --bg: #1a1a2e;
  --surface: #20203a;
  --surface-2: #2b2b4a;
  --gold: #d4a574;
  --gold-2: #e8c089;
  --cream: #fff8f0;
  --muted: #9b9bb0;
  --line: #38385e;
  --ember: #c57a4a;
  --danger: #c5564a;
  --success: #79b87a;
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-sans);
  line-height: 1.55;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at top, rgba(212, 165, 116, 0.07), transparent 55%);
  z-index: 0;
}

main, header, footer, .container {
  position: relative;
  z-index: 1;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--gold-2);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.01em;
  margin: 0 0 0.6em 0;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }

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

@media (max-width: 600px) {
  .container {
    padding: 20px 16px;
  }
}

.navbar {
  background: rgba(20, 20, 38, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-auth {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 38px;
  padding: 0;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--gold);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 820px) {
  .navbar-inner {
    padding: 12px 16px;
    gap: 12px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(20, 20, 38, 0.98);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    padding: 6px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  }
  .nav-links.open {
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-links a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav-links a:last-of-type {
    border-bottom: none;
  }
  .nav-auth {
    padding: 14px 20px;
    margin-left: 0;
    border-top: 1px solid var(--line);
    justify-content: flex-start;
  }
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.02em;
}

.btn:hover {
  background: var(--gold);
  color: var(--bg);
}

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

.btn-primary:hover {
  background: var(--gold-2);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-danger {
  border-color: var(--danger);
  color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger);
  color: var(--cream);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.input,
.select,
.textarea {
  width: 100%;
  background: var(--surface);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.15s;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field {
  margin-bottom: 18px;
}

/* ── Cards / grid ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

@media (max-width: 600px) {
  .card {
    padding: 18px 18px;
  }
}

.card.hover-lift {
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.card.hover-lift:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

.cocktail-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cocktail-card h3 {
  margin: 0;
  color: var(--gold);
}

.cocktail-card .meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
}

.badge-gold {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 165, 116, 0.08);
}

.badge-mocktail {
  border-color: var(--success);
  color: var(--success);
  background: rgba(121, 184, 122, 0.08);
}

.badge-easy { color: var(--success); border-color: var(--success); }
.badge-medium { color: var(--gold); border-color: var(--gold); }
.badge-hard { color: var(--ember); border-color: var(--ember); }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
}

.hero h1 {
  font-size: 3.4rem;
  background: linear-gradient(120deg, var(--cream) 0%, var(--gold-2) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.3em;
}

.hero .tagline {
  color: var(--muted);
  font-size: 1.15rem;
  font-family: var(--font-serif);
  font-style: italic;
  max-width: 640px;
  margin: 0 auto 28px;
}

.search-bar {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 12px;
}

@media (max-width: 600px) {
  .hero { padding: 50px 16px 30px; }
  .hero h1 { font-size: 2.4rem; }
}

/* ── Sections ─────────────────────────────────────────────────────── */
.section {
  padding: 40px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
}

.section-head .sub {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Detail page ──────────────────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
}

@media (max-width: 800px) {
  .detail-grid { grid-template-columns: 1fr; }
}

.glass-hero {
  background: radial-gradient(circle at 50% 30%, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.glass-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(212, 165, 116, 0.12), transparent 55%);
  pointer-events: none;
}

.glass-symbol {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.95;
  text-align: center;
  text-shadow: 0 0 40px rgba(212, 165, 116, 0.35);
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.glass-symbol .glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(212, 165, 116, 0.22), rgba(212, 165, 116, 0.04) 65%);
  border: 1px solid rgba(212, 165, 116, 0.35);
  font-size: 4rem;
  color: var(--gold-2);
  box-shadow: inset 0 0 24px rgba(212, 165, 116, 0.15);
}

.glass-symbol .label {
  display: block;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 500;
}

@media (max-width: 600px) {
  .glass-hero {
    min-height: 200px;
    padding: 24px 18px;
  }
  .glass-symbol {
    font-size: 3.5rem;
    gap: 10px;
  }
  .glass-symbol .glyph {
    width: 92px;
    height: 92px;
    font-size: 2.8rem;
  }
}

.ingredient-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
}

.ingredient-row:last-child { border-bottom: none; }

.ingredient-row .ing-name {
  color: var(--cream);
  font-weight: 500;
}

.ingredient-row .ing-amount {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  white-space: nowrap;
}

.ingredient-row .ing-note {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 2px;
}

.instructions-list {
  background: var(--surface-2);
  border-left: 3px solid var(--gold);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  white-space: pre-wrap;
  font-family: var(--font-serif);
  line-height: 1.75;
  color: var(--cream);
  font-size: 1.05rem;
}

/* ── Forms & lists ────────────────────────────────────────────────── */
.match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
}

.match-row .name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold);
}

.match-row .missing {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
}

.notice {
  background: var(--surface-2);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 12px 0;
  color: var(--cream);
}

.notice.error {
  border-left-color: var(--danger);
  color: var(--cream);
}

.notice.success {
  border-left-color: var(--success);
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

footer {
  margin-top: 60px;
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer .brand-mark {
  vertical-align: middle;
  margin: 0 8px;
}

.actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.kbd {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--gold);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 28px 0;
}

/* tiny utility helpers */
.text-muted { color: var(--muted); }
.text-gold  { color: var(--gold); }
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 8px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }
.flex  { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 16px; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
