/* ============================================================
   cocktail-shared.css — Speakeasy Bar shared styles
   Used by: cocktail-academy.html, cocktail-recipes.html
   ============================================================ */

/* ------------------------------------------------------------
   CSS Variables
   ------------------------------------------------------------ */
:root {
  --bg-deep:        #131118;
  --bg-surface:     #1c1820;
  --bg-surface2:    #242029;
  --bg-surface3:    #2e2a35;

  --text-primary:   #e8e0d4;
  --text-secondary: #a89e90;
  --text-muted:     #6e6560;

  --gold:           #c9a96e;
  --gold-dim:       rgba(201, 169, 110, 0.15);
  --gold-glow:      rgba(201, 169, 110, 0.06);

  --copper:         #8b4d3b;
  --copper-light:   #b06a52;
  --verdigris:      #5a8a7a;
  --ruby:           #943838;
  --smoke:          #7a7a8a;

  --rule:           #2a2520;
  --rule-gold:      rgba(201, 169, 110, 0.12);
}

/* ------------------------------------------------------------
   1. Reset
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ------------------------------------------------------------
   2. Base styles
   ------------------------------------------------------------ */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------------------------------------
   9. Ambient texture (placed early so z-index stacking is clear)
   ------------------------------------------------------------ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 169, 110, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ------------------------------------------------------------
   3. Typography classes
   ------------------------------------------------------------ */
.serif {
  font-family: 'Cormorant Garamond', serif;
}

.heading-xl {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 8vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.heading-lg {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
}

.heading-md {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
}

.overline {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

.subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--text-secondary);
}

/* ------------------------------------------------------------
   4. Page layout
   ------------------------------------------------------------ */
.page-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(40px, 5vw, 72px) 0;
  border-bottom: 1px solid var(--rule);
}

/* ------------------------------------------------------------
   5. Lecture note callout
   ------------------------------------------------------------ */
.lecture-note {
  border-left: 3px solid var(--copper);
  padding: 14px 0 14px 20px;
  margin: 24px 0;
}

.lecture-note p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-style: italic;
  color: var(--text-secondary);
}

/* ------------------------------------------------------------
   6. Pill buttons
   ------------------------------------------------------------ */
.pill {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
}

.pill:hover {
  border-color: var(--text-muted);
  color: var(--text-secondary);
}

.pill.active {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
  font-weight: 600;
}

.pill-sm {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
}

.pill-sm:hover {
  border-color: var(--text-muted);
  color: var(--text-secondary);
}

.pill-sm.active {
  color: var(--text-secondary);
  border-color: var(--rule);
}

/* ------------------------------------------------------------
   7. Navigation link
   ------------------------------------------------------------ */
.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ------------------------------------------------------------
   8. Footer
   ------------------------------------------------------------ */
.page-footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   10. Scrollbar styling (webkit)
   ------------------------------------------------------------ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 3px;
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ------------------------------------------------------------
   11. Animation — fadeUp
   ------------------------------------------------------------ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.5s cubic-bezier(0.2, 0, 0.2, 1) both;
}

/* ------------------------------------------------------------
   12. Responsive base
   ------------------------------------------------------------ */
@media (max-width: 640px) {
  .page-wrap {
    padding: 0 16px;
  }

  /* Touch-friendly minimum interactive targets */
  .pill,
  .pill-sm,
  .nav-link,
  button,
  [role="button"],
  a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
