/* ============================================
   miris.bar — Goblincore Bar Culture
   Hexagonal Honeycomb Layout
   Colors: #5a7c6b #3d6b4f #1e3328 #b8944a #0f1825 #c8d4c2 #7a8b72 #2a4a3a #0c1021 #141e30 #8b6914 #1a2a3a #7a6b4e
   Fonts: Josefin Sans, Work Sans, IBM Plex Mono
   ============================================ */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: #0c1021;
    color: #c8d4c2;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

/* === GRAIN OVERLAY === */
#grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.18;
    mix-blend-mode: overlay;
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="4" stitchTiles="stitch"/></filter><rect width="200" height="200" filter="url(%23n)" opacity="0.5"/></svg>');
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* === MYCELIUM CANVAS === */
#mycelium-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
    opacity: 0.3;
}

/* === ZONE INDICATOR === */
#zone-indicator {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 100;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

#zone-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: #b8944a;
    opacity: 0.6;
    transition: opacity 0.8s ease, color 0.8s ease;
}

/* === ZONES === */
.zone {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.zone-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 0;
    transition: background 1.5s ease;
    will-change: transform;
}

#canopy-bg {
    background: linear-gradient(
        170deg,
        #1e3328 0%,
        #2a4a3a 25%,
        #3d6b4f 50%,
        #1a2a3a 75%,
        #1e3328 100%
    );
}

#undergrowth-bg {
    background: linear-gradient(
        170deg,
        #1e3328 0%,
        #0f1825 35%,
        #141e30 65%,
        #0c1021 100%
    );
}

#bedrock-bg {
    background: linear-gradient(
        170deg,
        #0c1021 0%,
        #0f1825 25%,
        #141e30 50%,
        #1a2a3a 75%,
        #0c1021 100%
    );
}

.zone-content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* === HONEYCOMB GRID === */
.honeycomb {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    justify-items: center;
    align-items: center;
}

/* === HEX CELLS === */
.hex-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.6s ease,
                opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
}

.hex-cell.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1) !important;
}

.hex-cell:hover {
    transform: scale(1.05) !important;
}

.hex-large {
    width: 380px;
    height: 420px;
    grid-column: span 2;
}

.hex-medium {
    width: 260px;
    height: 290px;
}

.hex-small {
    width: 140px;
    height: 155px;
}

.hex-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 30px;
    width: 100%;
    height: 100%;
}

/* === HEX VARIANTS === */
.hex-hero {
    background: linear-gradient(160deg, rgba(42, 74, 58, 0.9), rgba(30, 51, 40, 0.95));
}

.hex-hero::before {
    content: '';
    position: absolute;
    inset: 2px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(160deg, rgba(184, 148, 74, 0.1), transparent);
    pointer-events: none;
}

.hex-glow {
    background: rgba(90, 124, 107, 0.15);
    backdrop-filter: blur(4px);
}

.hex-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: inset 0 0 1px rgba(184, 148, 74, 0.2);
    pointer-events: none;
}

.hex-accent {
    background: rgba(139, 105, 20, 0.1);
}

.hex-info {
    background: rgba(42, 74, 58, 0.2);
    backdrop-filter: blur(2px);
}

.hex-decor {
    background: linear-gradient(135deg, rgba(90, 124, 107, 0.08), #7a6b4e0d);
}

.hex-menu-feature {
    background: linear-gradient(160deg, rgba(15, 24, 37, 0.9), rgba(12, 16, 33, 0.95));
}

.hex-menu-feature::before {
    content: '';
    position: absolute;
    inset: 2px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(160deg, rgba(184, 148, 74, 0.08), transparent);
    pointer-events: none;
}

.hex-drink {
    background: rgba(30, 51, 40, 0.3);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.hex-drink:hover {
    background: rgba(42, 74, 58, 0.5);
}

.hex-drink::after {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: inset 0 0 1px rgba(184, 148, 74, 0.15);
    pointer-events: none;
    transition: box-shadow 0.4s ease;
}

.hex-drink:hover::after {
    box-shadow: inset 0 0 2px rgba(184, 148, 74, 0.5);
}

.hex-philosophy {
    background: linear-gradient(160deg, rgba(12, 16, 33, 0.95), rgba(20, 30, 48, 0.9));
}

.hex-philosophy::before {
    content: '';
    position: absolute;
    inset: 2px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(160deg, #1a2a3a33, transparent);
    pointer-events: none;
}

.hex-about,
.hex-hours,
.hex-location {
    background: rgba(15, 24, 37, 0.4);
    backdrop-filter: blur(2px);
}

.hex-about::after,
.hex-hours::after,
.hex-location::after {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: inset 0 0 1px rgba(90, 124, 107, 0.15);
    pointer-events: none;
}

.hex-final {
    background: linear-gradient(135deg, rgba(30, 51, 40, 0.15), #7a6b4e0d);
}

/* === TYPOGRAPHY === */
.site-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 6vw, 88px);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c8d4c2;
    line-height: 1;
    margin-bottom: 16px;
}

.title-accent {
    color: #b8944a;
    display: block;
    font-size: 1.2em;
}

.tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.25em;
    color: #7a8b72;
    text-transform: lowercase;
}

.section-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 4vw, 56px);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b8944a;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hex-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #8b6914;
    opacity: 0.7;
    margin-bottom: 8px;
    display: block;
}

.hex-text {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.7;
    color: #c8d4c2;
    opacity: 0.85;
}

.mono-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.drink-name {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c8d4c2;
    margin: 8px 0;
}

.drink-desc {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 1.6;
    color: #7a6b4e;
    margin-bottom: 8px;
}

.drink-price {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 18px;
    font-weight: 400;
    color: #b8944a;
    opacity: 0.8;
}

.closing-text {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 16px;
    font-style: italic;
    color: #7a8b72;
    margin-bottom: 12px;
}

/* === SCROLL CUE === */
.scroll-cue {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    animation: scrollBounce 2s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(10px); opacity: 1; }
}

/* === BIOLUMINESCENT PULSE === */
.hex-pulse {
    animation: bioGlow 4s ease-in-out infinite;
}

@keyframes bioGlow {
    0%, 100% {
        box-shadow: inset 0 0 20px rgba(90, 124, 107, 0.1),
                    0 0 15px rgba(90, 124, 107, 0.05);
    }
    50% {
        box-shadow: inset 0 0 30px rgba(90, 124, 107, 0.25),
                    0 0 30px rgba(90, 124, 107, 0.15);
    }
}

/* === HEX ICON === */
.hex-icon {
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.hex-cell:hover .hex-icon {
    opacity: 1;
}

/* === ZONE DIMENSIONS === */
#zone-canopy {
    min-height: 100vh;
}

#zone-undergrowth {
    min-height: 120vh;
}

#zone-bedrock {
    min-height: 100vh;
}

/* === COPPER PIPE DIVIDERS === */
.zone::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #7a6b4e4d 20%,
        #b8944a80 50%,
        #7a6b4e4d 80%,
        transparent 100%
    );
    z-index: 10;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .honeycomb {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .hex-large {
        width: 280px;
        height: 310px;
        grid-column: span 2;
    }

    .hex-medium {
        width: 200px;
        height: 220px;
    }

    .hex-small {
        width: 110px;
        height: 122px;
    }

    .hex-inner {
        padding: 24px 16px;
    }

    .zone-content {
        padding: 60px 20px;
    }

    #zone-indicator {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 600px) {
    .honeycomb {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .hex-large {
        width: 100%;
        height: 280px;
        grid-column: span 2;
    }

    .hex-medium {
        width: 100%;
        height: 220px;
    }

    .hex-small {
        width: 100px;
        height: 110px;
    }

    .site-title {
        font-size: clamp(28px, 10vw, 56px);
    }

    .section-title {
        font-size: clamp(20px, 6vw, 40px);
    }
}
