/* opensource.bar - Dive Bar for Open Source */

:root {
    --brick: #2A2018;
    --wood: #3A2A1A;
    --neon-pink: #FF3388;
    --neon-green: #88FF33;
    --neon-blue: #33AAFF;
    --poster-white: #F0E8D8;
    --chalk: #E8E0D0;
    --tag-yellow: #FFD833;
    --sticker-orange: #FF8833;
    --shadow: #1A1410;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.6vw, 1.1rem);
    line-height: 1.65;
    color: var(--poster-white);
    background-color: var(--brick);
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 23px,
            #1A1410 23px,
            #1A1410 24px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 47px,
            rgba(26, 20, 16, 0.3) 47px,
            rgba(26, 20, 16, 0.3) 48px
        );
    overflow-x: hidden;
}

/* Ambient overlay for deeper sections */
#ambient-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    z-index: 50;
    transition: background 0.5s ease;
}

/* --- THE ENTRANCE --- */
#entrance {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.neon-sign {
    margin-bottom: 2rem;
}

.neon-text {
    font-family: 'Permanent Marker', cursive;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.neon-pink {
    color: var(--neon-pink);
    text-shadow:
        0 0 10px var(--neon-pink),
        0 0 30px rgba(255, 51, 136, 0.6),
        0 0 60px rgba(255, 51, 136, 0.3);
    animation: neon-pulse 3s ease-in-out infinite, neon-flicker 8s step-end infinite;
}

.neon-green {
    color: var(--neon-green);
    text-shadow:
        0 0 10px var(--neon-green),
        0 0 30px rgba(136, 255, 51, 0.6),
        0 0 60px rgba(136, 255, 51, 0.3);
    animation: neon-pulse 3s ease-in-out infinite 0.5s;
}

@keyframes neon-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

@keyframes neon-flicker {
    0%, 44% { opacity: 1; }
    45% { opacity: 0.3; }
    45.5% { opacity: 1; }
    46% { opacity: 0.4; }
    46.5%, 100% { opacity: 1; }
}

.tagline {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--chalk);
    margin-bottom: 3rem;
    opacity: 0.8;
}

.arrow-down {
    font-size: 2rem;
    color: var(--neon-pink);
    opacity: 0.6;
    animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
}

/* --- THE WALL --- */
#the-wall {
    min-height: 300vh;
    padding: 4rem 4vw;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    align-content: start;
    position: relative;
}

.wall-block {
    position: relative;
}

/* License Posters */
.poster {
    background: var(--poster-white);
    color: var(--shadow);
    padding: 1.5rem;
    clip-path: polygon(2% 0%, 98% 1%, 100% 3%, 99% 97%, 97% 100%, 3% 99%, 0% 96%, 1% 4%);
    grid-row-end: span 2;
}

.poster.community {
    grid-row-end: span 2;
}

.poster-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.3rem;
    color: var(--shadow);
    margin-bottom: 0.5em;
    border-bottom: 2px dashed rgba(26, 20, 16, 0.3);
    padding-bottom: 0.3em;
}

.poster-body {
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #3A2A1A;
}

.poster-price {
    display: block;
    margin-top: 0.8em;
    font-family: 'Lilita One', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: var(--neon-pink);
}

/* Graffiti */
.graffiti {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 80px;
}

.spray-text {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    text-transform: uppercase;
}

.neon-pink-text {
    color: var(--neon-pink);
    text-shadow: 0 0 12px rgba(255, 51, 136, 0.5), 0 0 8px rgba(255, 51, 136, 0.3);
}

.neon-green-text {
    color: var(--neon-green);
    text-shadow: 0 0 12px rgba(136, 255, 51, 0.5), 0 0 8px rgba(136, 255, 51, 0.3);
}

.neon-blue-text {
    color: var(--neon-blue);
    text-shadow: 0 0 12px rgba(51, 170, 255, 0.5), 0 0 8px rgba(51, 170, 255, 0.3);
}

.yellow-text {
    color: var(--tag-yellow);
    text-shadow: 0 0 12px rgba(255, 216, 51, 0.5), 0 0 8px rgba(255, 216, 51, 0.3);
}

/* Stickers */
.sticker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6em 1em;
    border-radius: 4px;
    box-shadow: 2px 2px 0 var(--shadow);
    min-width: 80px;
    max-width: 150px;
    justify-self: center;
}

.sticker-label {
    font-family: 'Lilita One', sans-serif;
    font-size: clamp(0.8rem, 1.4vw, 1.2rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--shadow);
}

.sticker-pink { background: var(--neon-pink); }
.sticker-green { background: var(--neon-green); }
.sticker-blue { background: var(--neon-blue); }
.sticker-orange { background: var(--sticker-orange); }
.sticker-yellow { background: var(--tag-yellow); }

/* Drip lines */
.drip {
    position: absolute;
    width: 2px;
    height: 80px;
    pointer-events: none;
    z-index: 1;
}

/* --- THE COUNTER --- */
#the-counter {
    min-height: 100vh;
    background: var(--wood);
    background-image: linear-gradient(
        0deg,
        rgba(26, 20, 16, 0.3) 0%,
        transparent 2%,
        transparent 98%,
        rgba(26, 20, 16, 0.3) 100%
    );
    padding: 6rem 6vw;
}

.chalk-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--chalk);
    text-align: center;
    margin-bottom: 2em;
}

.counter-menu {
    max-width: 600px;
    margin: 0 auto;
}

.tap-item {
    padding: 1.2em 0;
    border-bottom: 1px dashed rgba(232, 224, 208, 0.2);
}

.tap-name {
    display: block;
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--tag-yellow);
    margin-bottom: 0.3em;
}

.tap-desc {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--chalk);
    opacity: 0.8;
}

/* --- BATHROOM WALL --- */
#bathroom-wall {
    min-height: 100vh;
    background: #1A1410;
    padding: 4rem 3vw;
    position: relative;
}

.bathroom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}

.bw-tag {
    font-family: 'Permanent Marker', cursive;
    color: var(--poster-white);
    padding: 0.5em;
    display: block;
}

.bw-tag:nth-child(odd) {
    color: var(--neon-pink);
    text-shadow: 0 0 6px rgba(255, 51, 136, 0.3);
}

.bw-tag:nth-child(3n) {
    color: var(--neon-green);
    text-shadow: 0 0 6px rgba(136, 255, 51, 0.3);
}

.bw-tag:nth-child(4n) {
    color: var(--tag-yellow);
}

.bw-tag:nth-child(5n) {
    color: var(--neon-blue);
    text-shadow: 0 0 6px rgba(51, 170, 255, 0.3);
}

.bw-tag:nth-child(6n) {
    mix-blend-mode: screen;
}

/* --- LAST CALL --- */
#last-call {
    min-height: 50vh;
    background: #0A0804;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.exit-sign {
    margin-bottom: 2rem;
}

.exit-neon {
    font-size: clamp(2.5rem, 6vw, 5rem);
    animation: neon-pulse 3s ease-in-out infinite, neon-flicker 6s step-end infinite;
}

.final-message {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--chalk);
    opacity: 0.7;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    #the-wall {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        padding: 2rem 3vw;
    }

    .bathroom-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}
