/* ============================================
   diplomatic.bar — Styles
   Maximalist neon diplomatic cocktail lounge
   Horizontal-scroll narrative
   ============================================ */

/* --- CSS Variables / Palette --- */
:root {
    --electric-fuchsia: #ff2ecc;
    --acid-lime: #b8f53a;
    --deep-indigo: #0d0221;
    --mahogany: #3a2010;
    --diplomatic-gold: #f5c542;
    --parchment: #faf3e0;
    --dark-wood: #1a0e08;
    --darker-wood: #2a1506;
    --vermillion: #ff6b4a;

    --font-display: 'Fraunces', serif;
    --font-body: 'Source Sans 3', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

html, body {
    height: 100%;
    overflow: hidden;
    background: var(--deep-indigo);
    color: var(--parchment);
    font-family: var(--font-body);
}

/* --- Horizontal Scroll Container --- */
#scroll-container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

#scroll-track {
    display: flex;
    width: calc(8 * 100vw);
    height: 100vh;
    will-change: transform;
}

.panel {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Progress Bar --- */
#progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.1);
    z-index: 100;
}

#progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--electric-fuchsia), var(--acid-lime), var(--diplomatic-gold));
    transition: width 0.1s ease-out;
}

/* --- Panel Indicators --- */
#panel-indicators {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(250, 243, 224, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--electric-fuchsia);
    box-shadow: 0 0 10px var(--electric-fuchsia), 0 0 20px var(--electric-fuchsia);
    transform: scale(1.4);
}

/* --- Ambient Glows --- */
.ambient-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    pointer-events: none;
}

.glow-fuchsia {
    background: var(--electric-fuchsia);
    bottom: -100px;
    right: -100px;
}

.glow-lime {
    background: var(--acid-lime);
    top: -100px;
    left: -50px;
}

.glow-gold {
    background: var(--diplomatic-gold);
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Section Headings --- */
.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-variation-settings: 'SOFT' 100, 'WONK' 1;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--parchment);
    margin-bottom: 2rem;
}

/* ============================================
   PANEL 1: THE WELCOME
   ============================================ */
.panel-welcome {
    background: linear-gradient(135deg, var(--deep-indigo) 0%, var(--dark-wood) 50%, var(--mahogany) 100%);
    flex-direction: column;
}

.neon-border-frame {
    position: absolute;
    inset: 20px;
    border: 2px solid var(--electric-fuchsia);
    box-shadow: inset 0 0 30px rgba(255, 46, 204, 0.15), 0 0 30px rgba(255, 46, 204, 0.15);
    pointer-events: none;
}

.welcome-content {
    text-align: center;
    z-index: 2;
}

.site-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 9rem);
    font-variation-settings: 'SOFT' 100, 'WONK' 1;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--parchment);
}

.title-dot {
    color: var(--electric-fuchsia);
    text-shadow: 0 0 20px var(--electric-fuchsia), 0 0 40px var(--electric-fuchsia);
}

.title-bar {
    color: var(--acid-lime);
    text-shadow: 0 0 20px var(--acid-lime), 0 0 40px rgba(184, 245, 58, 0.5);
}

.tagline {
    font-family: var(--font-mono);
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    color: var(--diplomatic-gold);
    margin-top: 1.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-indicator {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0.6;
    animation: pulseRight 2s ease-in-out infinite;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--electric-fuchsia);
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--parchment);
}

@keyframes pulseRight {
    0%, 100% { transform: translateX(0); opacity: 0.6; }
    50% { transform: translateX(10px); opacity: 1; }
}

/* Geometric Shaker */
.geo-shaker {
    position: absolute;
    bottom: 15%;
    right: 15%;
    z-index: 1;
}

.shaker-body {
    width: 60px;
    height: 140px;
    background: var(--diplomatic-gold);
    border-radius: 8px 8px 4px 4px;
    position: relative;
}

.shaker-cap {
    width: 40px;
    height: 40px;
    background: var(--electric-fuchsia);
    border-radius: 50%;
    position: relative;
    left: 10px;
    top: -10px;
    box-shadow: 0 0 20px var(--electric-fuchsia);
}

/* ============================================
   PANEL 2: THE MENU
   ============================================ */
.panel-menu {
    background: linear-gradient(180deg, var(--darker-wood) 0%, var(--deep-indigo) 100%);
}

.menu-board {
    text-align: center;
    z-index: 2;
    padding: 2rem;
}

.menu-grid {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 240px;
}

.drink-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--diplomatic-gold);
    font-variation-settings: 'SOFT' 100, 'WONK' 1;
}

.drink-desc {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(250, 243, 224, 0.6);
    letter-spacing: 0.05em;
}

/* Geometric Glasses */
.geo-glass {
    position: relative;
    width: 80px;
    height: 120px;
}

/* Martini glass */
.glass-martini .glass-bowl {
    width: 80px;
    height: 50px;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-top: 50px solid rgba(250, 243, 224, 0.15);
    position: absolute;
    top: 0;
}

.glass-martini .glass-liquid {
    width: 60px;
    height: 30px;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 30px solid var(--electric-fuchsia);
    position: absolute;
    top: 5px;
    left: 5px;
    opacity: 0.7;
}

.glass-martini .glass-stem {
    width: 3px;
    height: 40px;
    background: rgba(250, 243, 224, 0.3);
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.glass-martini .glass-base {
    width: 50px;
    height: 4px;
    background: rgba(250, 243, 224, 0.3);
    border-radius: 2px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Coupe glass */
.glass-coupe .glass-bowl {
    width: 70px;
    height: 45px;
    border-radius: 0 0 50% 50%;
    border: 2px solid rgba(250, 243, 224, 0.2);
    border-top: none;
    position: absolute;
    top: 10px;
    left: 5px;
}

.glass-coupe .glass-liquid {
    width: 60px;
    height: 30px;
    border-radius: 0 0 50% 50%;
    background: var(--acid-lime);
    opacity: 0.5;
    position: absolute;
    top: 25px;
    left: 10px;
}

.glass-coupe .glass-stem {
    width: 3px;
    height: 35px;
    background: rgba(250, 243, 224, 0.3);
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
}

.glass-coupe .glass-base {
    width: 45px;
    height: 4px;
    background: rgba(250, 243, 224, 0.3);
    border-radius: 2px;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Rocks glass */
.glass-rocks .glass-bowl {
    width: 70px;
    height: 65px;
    border: 2px solid rgba(250, 243, 224, 0.2);
    border-top: none;
    border-radius: 0 0 4px 4px;
    position: absolute;
    bottom: 25px;
    left: 5px;
}

.glass-rocks .glass-liquid {
    width: 66px;
    height: 40px;
    background: var(--diplomatic-gold);
    opacity: 0.5;
    border-radius: 0 0 2px 2px;
    position: absolute;
    bottom: 27px;
    left: 7px;
}

.glass-rocks .ice-cube {
    width: 18px;
    height: 18px;
    background: rgba(250, 243, 224, 0.2);
    border: 1px solid rgba(250, 243, 224, 0.3);
    border-radius: 3px;
    position: absolute;
    bottom: 50px;
    left: 30px;
    transform: rotate(15deg);
}

.liquid-empty {
    opacity: 0.15 !important;
}

/* ============================================
   PANEL 3: THE COUNTER
   ============================================ */
.panel-counter {
    background: linear-gradient(135deg, var(--mahogany) 0%, var(--dark-wood) 60%, var(--deep-indigo) 100%);
    flex-direction: column;
}

.counter-scene {
    text-align: center;
    z-index: 2;
    padding: 2rem;
}

.counter-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(250, 243, 224, 0.7);
    max-width: 500px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.bar-counter-visual {
    position: relative;
    width: 80%;
    max-width: 600px;
    height: 120px;
    margin: 0 auto;
}

.counter-surface {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, var(--mahogany), var(--diplomatic-gold), var(--mahogany));
    border-radius: 2px;
    box-shadow: 0 2px 20px rgba(245, 197, 66, 0.3);
}

.counter-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(180deg, var(--mahogany), var(--dark-wood));
    border-radius: 0 0 4px 4px;
}

.bar-stool {
    position: absolute;
    bottom: 62px;
    width: 24px;
    height: 40px;
    border-radius: 50% 50% 0 0;
    background: var(--vermillion);
    opacity: 0.7;
}

#stool-1 { left: 20%; }
#stool-2 { left: 50%; }
#stool-3 { left: 78%; }

/* Neon Signs */
.neon-sign {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.5rem 2rem;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--electric-fuchsia);
    text-shadow: 0 0 10px var(--electric-fuchsia), 0 0 20px var(--electric-fuchsia), 0 0 40px var(--electric-fuchsia), 0 0 80px var(--electric-fuchsia);
    border: 2px solid var(--electric-fuchsia);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--electric-fuchsia), inset 0 0 10px rgba(255, 46, 204, 0.1);
    animation: neonFlicker 3s ease-in-out infinite;
}

@keyframes neonFlicker {
    0%, 100% { opacity: 1; }
    5% { opacity: 0.8; }
    10% { opacity: 1; }
    15% { opacity: 0.6; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    85% { opacity: 0.7; }
    90% { opacity: 1; }
}

/* ============================================
   PANEL 4: THE BACKROOM
   ============================================ */
.panel-backroom {
    background: linear-gradient(180deg, var(--deep-indigo) 0%, #0a0115 50%, var(--dark-wood) 100%);
    flex-direction: column;
}

.backroom-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
    position: relative;
}

.backroom-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(250, 243, 224, 0.6);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    font-style: italic;
}

.velvet-curtain {
    display: flex;
    justify-content: center;
    gap: 0;
    height: 200px;
    margin-top: 2rem;
}

.curtain-fold {
    width: 40px;
    height: 100%;
    background: linear-gradient(180deg,
        var(--electric-fuchsia) 0%,
        #8b1a6b 30%,
        #4a0e3a 60%,
        var(--deep-indigo) 100%
    );
    border-radius: 0 0 20px 20px;
    opacity: 0.7;
    animation: curtainSway 4s ease-in-out infinite;
}

.curtain-fold:nth-child(2) { animation-delay: 0.5s; opacity: 0.8; }
.curtain-fold:nth-child(3) { animation-delay: 1s; opacity: 0.9; }
.curtain-fold:nth-child(4) { animation-delay: 1.5s; opacity: 0.8; }
.curtain-fold:nth-child(5) { animation-delay: 2s; opacity: 0.7; }

@keyframes curtainSway {
    0%, 100% { transform: skewX(0deg); }
    50% { transform: skewX(2deg); }
}

.brass-fixture {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--diplomatic-gold);
    box-shadow: 0 0 20px var(--diplomatic-gold), 0 0 40px rgba(245, 197, 66, 0.3);
}

#fixture-1 { top: 20%; left: 20%; }
#fixture-2 { top: 25%; right: 20%; }

/* ============================================
   PANEL 5: THE INGREDIENTS / CRAFT
   ============================================ */
.panel-ingredients {
    background: linear-gradient(135deg, var(--dark-wood) 0%, var(--deep-indigo) 100%);
}

.ingredients-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
}

.ingredient-shelf {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 2rem;
    align-items: flex-end;
}

.bottle {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease;
}

.bottle:hover {
    transform: translateY(-10px);
}

.bottle-body {
    width: 40px;
    height: 80px;
    background: linear-gradient(135deg, rgba(250, 243, 224, 0.15), rgba(250, 243, 224, 0.05));
    border: 1px solid rgba(250, 243, 224, 0.2);
    border-radius: 4px 4px 8px 8px;
}

.bottle-neck {
    width: 16px;
    height: 25px;
    background: linear-gradient(135deg, rgba(250, 243, 224, 0.15), rgba(250, 243, 224, 0.05));
    border: 1px solid rgba(250, 243, 224, 0.2);
    border-bottom: none;
    border-radius: 2px 2px 0 0;
    order: -2;
}

.bottle-cap {
    width: 20px;
    height: 8px;
    background: var(--diplomatic-gold);
    border-radius: 2px 2px 0 0;
    order: -3;
}

.bottle-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--diplomatic-gold);
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

#bottle-1 .bottle-body { background: linear-gradient(135deg, rgba(255, 107, 74, 0.3), rgba(255, 107, 74, 0.1)); }
#bottle-2 .bottle-body { background: linear-gradient(135deg, rgba(184, 245, 58, 0.3), rgba(184, 245, 58, 0.1)); }
#bottle-3 .bottle-body { background: linear-gradient(135deg, rgba(255, 46, 204, 0.3), rgba(255, 46, 204, 0.1)); }
#bottle-4 .bottle-body { background: linear-gradient(135deg, rgba(245, 197, 66, 0.3), rgba(245, 197, 66, 0.1)); }

/* ============================================
   PANEL 6: THE RITUAL
   ============================================ */
.panel-ritual {
    background: linear-gradient(180deg, var(--deep-indigo) 0%, var(--mahogany) 100%);
    flex-direction: column;
}

.ritual-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
    position: relative;
}

.ritual-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: center;
}

.ritual-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    opacity: 0.3;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.ritual-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--electric-fuchsia);
    font-weight: 700;
    text-shadow: 0 0 10px var(--electric-fuchsia);
    min-width: 60px;
    text-align: right;
}

.step-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--parchment);
    font-variation-settings: 'SOFT' 100;
}

.shaker-animated {
    position: absolute;
    right: 10%;
    bottom: 20%;
}

.shaker-animated .shaker-body {
    animation: shakerShake 0.5s ease-in-out infinite paused;
}

.shaker-animated.shaking .shaker-body {
    animation-play-state: running;
}

@keyframes shakerShake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(8px) rotate(3deg); }
    75% { transform: translateX(-8px) rotate(-3deg); }
}

/* ============================================
   PANEL 7: THE ATMOSPHERE
   ============================================ */
.panel-atmosphere {
    background: radial-gradient(ellipse at center, var(--mahogany) 0%, var(--deep-indigo) 70%, #000 100%);
    flex-direction: column;
}

.atmosphere-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
    position: relative;
}

.smoke-layers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.smoke-layer {
    position: absolute;
    width: 200%;
    height: 60px;
    background: linear-gradient(90deg, transparent 0%, rgba(250, 243, 224, 0.03) 30%, rgba(250, 243, 224, 0.06) 50%, rgba(250, 243, 224, 0.03) 70%, transparent 100%);
    border-radius: 50%;
    animation: smokeDrift 12s ease-in-out infinite;
}

#smoke-1 { top: 30%; animation-delay: 0s; }
#smoke-2 { top: 50%; animation-delay: 4s; opacity: 0.7; }
#smoke-3 { top: 70%; animation-delay: 8s; opacity: 0.5; }

@keyframes smokeDrift {
    0% { transform: translateX(-50%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.jazz-notes {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}

.note {
    font-size: 2rem;
    color: var(--diplomatic-gold);
    opacity: 0.4;
    animation: noteFloat 3s ease-in-out infinite;
}

.note:nth-child(2) { animation-delay: 0.6s; color: var(--electric-fuchsia); }
.note:nth-child(3) { animation-delay: 1.2s; }
.note:nth-child(4) { animation-delay: 1.8s; color: var(--acid-lime); }
.note:nth-child(5) { animation-delay: 2.4s; }

@keyframes noteFloat {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-15px); opacity: 0.8; }
}

.atmosphere-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(250, 243, 224, 0.5);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
    font-style: italic;
}

/* ============================================
   PANEL 8: THE EXIT / LAST CALL
   ============================================ */
.panel-exit {
    background: radial-gradient(ellipse at center, var(--deep-indigo) 0%, #000 100%);
    flex-direction: column;
}

.exit-content {
    text-align: center;
    z-index: 2;
}

.exit-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-variation-settings: 'SOFT' 100, 'WONK' 1;
    color: var(--diplomatic-gold);
    text-shadow: 0 0 30px rgba(245, 197, 66, 0.5);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.exit-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(250, 243, 224, 0.5);
    max-width: 450px;
    margin: 1.5rem auto;
    line-height: 1.6;
}

.neon-sign-exit {
    margin-top: 2rem;
    font-size: 1.5rem;
    color: var(--acid-lime);
    text-shadow: 0 0 10px var(--acid-lime), 0 0 20px var(--acid-lime), 0 0 40px var(--acid-lime);
    border-color: var(--acid-lime);
    box-shadow: 0 0 10px var(--acid-lime), inset 0 0 10px rgba(184, 245, 58, 0.1);
}

.closing-glass {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    opacity: 0.5;
}
