/* reiwa.bar - Brutalist Coastal Rebellion */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a2e;
    color: #f5f0e8;
    overflow-x: hidden;
    line-height: 1.6;
}

.handwritten {
    font-family: 'Caveat', cursive;
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Full-Bleed Layout */
.full-bleed {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

/* ==================== */
/* GLITCH TEXT EFFECT   */
/* ==================== */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.glitch-text::before {
    color: #4a90d9;
    z-index: -1;
    animation: glitch-before 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    color: #e8b84b;
    z-index: -2;
    animation: glitch-after 2s infinite linear alternate-reverse;
}

@keyframes glitch-before {
    0% { clip-path: inset(0 0 95% 0); transform: translate(-2px, -1px); }
    10% { clip-path: inset(40% 0 30% 0); transform: translate(2px, 1px); }
    20% { clip-path: inset(80% 0 5% 0); transform: translate(-1px, 2px); }
    30% { clip-path: inset(10% 0 60% 0); transform: translate(1px, -2px); }
    40% { clip-path: inset(50% 0 20% 0); transform: translate(-2px, 1px); }
    50% { clip-path: inset(20% 0 50% 0); transform: translate(2px, -1px); }
    60% { clip-path: inset(70% 0 10% 0); transform: translate(-1px, -2px); }
    70% { clip-path: inset(5% 0 80% 0); transform: translate(1px, 2px); }
    80% { clip-path: inset(30% 0 40% 0); transform: translate(-2px, -1px); }
    90% { clip-path: inset(60% 0 15% 0); transform: translate(2px, 1px); }
    100% { clip-path: inset(0 0 90% 0); transform: translate(-1px, 2px); }
}

@keyframes glitch-after {
    0% { clip-path: inset(90% 0 0 0); transform: translate(2px, 1px); }
    10% { clip-path: inset(15% 0 60% 0); transform: translate(-2px, -1px); }
    20% { clip-path: inset(50% 0 20% 0); transform: translate(1px, -2px); }
    30% { clip-path: inset(5% 0 70% 0); transform: translate(-1px, 2px); }
    40% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -1px); }
    50% { clip-path: inset(30% 0 40% 0); transform: translate(-2px, 1px); }
    60% { clip-path: inset(10% 0 70% 0); transform: translate(1px, 2px); }
    70% { clip-path: inset(80% 0 5% 0); transform: translate(-1px, -2px); }
    80% { clip-path: inset(25% 0 50% 0); transform: translate(2px, 1px); }
    90% { clip-path: inset(45% 0 30% 0); transform: translate(-2px, -1px); }
    100% { clip-path: inset(85% 0 0 0); transform: translate(1px, -2px); }
}

/* Glitch Hover Effect */
.glitch-hover {
    position: relative;
    transition: transform 0.1s;
}

.glitch-hover:hover {
    animation: glitch-shake 0.3s infinite;
}

@keyframes glitch-shake {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* ==================== */
/* SKELETON LOADING     */
/* ==================== */
.skeleton-block {
    background: linear-gradient(90deg, #1a1a2e 25%, #2a2a4e 50%, #1a1a2e 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border: 1px solid #6c757d;
}

.skeleton-sm {
    width: 120px;
    height: 12px;
    margin-bottom: 16px;
}

.skeleton-md {
    width: 200px;
    height: 16px;
    margin-top: 24px;
}

.skeleton-lg {
    width: 100%;
    height: 200px;
    margin-bottom: 32px;
}

.skeleton-xs {
    width: 80px;
    height: 8px;
    margin-bottom: 8px;
}

.skeleton-img {
    width: 100%;
    height: 220px;
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==================== */
/* HERO SECTION         */
/* ==================== */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #1a1a2e;
    border-bottom: 4px solid #f5f0e8;
    position: relative;
    z-index: 2;
}

.hero-inner {
    padding: 0 20px;
}

#hero h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(4rem, 15vw, 12rem);
    letter-spacing: -0.04em;
    line-height: 0.9;
    text-transform: lowercase;
    color: #f5f0e8;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: #e8b84b;
    margin-bottom: 8px;
}

.hero-tagline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.tag-brutal {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: #4a90d9;
    border: 2px solid #4a90d9;
    padding: 8px 16px;
}

.tag-divider {
    color: #6c757d;
    font-size: 1.2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: #6c757d;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ==================== */
/* MANIFESTO SECTION    */
/* ==================== */
#manifesto {
    background-color: #f5f0e8;
    color: #1a1a2e;
    padding: 0;
    border-bottom: 4px solid #1a1a2e;
    z-index: 2;
    position: relative;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

.manifesto-col {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.manifesto-left {
    background-color: #1a1a2e;
    color: #f5f0e8;
    border-right: 4px solid #e8b84b;
}

.manifesto-left h2 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    color: #e8b84b;
}

.manifesto-left .skeleton-block {
    border-color: #4a90d9;
}

.manifesto-right {
    padding: 60px 40px;
}

.manifesto-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 500px;
}

.manifesto-right .skeleton-block {
    background: linear-gradient(90deg, #f5f0e8 25%, #e0dbd0 50%, #f5f0e8 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-color: #1a1a2e;
}

/* ==================== */
/* DRINKS SECTION       */
/* ==================== */
#drinks {
    background-color: #1a1a2e;
    padding: 80px 0;
    border-bottom: 4px solid #4a90d9;
    position: relative;
    z-index: 2;
}

.section-header {
    padding: 0 40px;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(3rem, 10vw, 8rem);
    color: #e8b84b;
    line-height: 1;
    margin-bottom: 16px;
}

.brutal-line {
    height: 4px;
    background-color: #4a90d9;
    width: 100%;
}

.drinks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.drink-card {
    border-right: 2px solid #6c757d;
    border-bottom: 2px solid #6c757d;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.2s;
}

.drink-card:last-child {
    border-right: none;
}

.drink-card:hover {
    background-color: #4a90d9;
}

.drink-card:hover .drink-name {
    color: #1a1a2e;
}

.drink-card:hover .skeleton-block {
    border-color: #e8b84b;
}

.drink-image {
    border-bottom: 2px solid #6c757d;
}

.drink-info {
    padding: 24px 20px;
}

.drink-name {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: #f5f0e8;
    transition: color 0.2s;
}

.drink-desc {
    font-size: 1.3rem;
    color: #6c757d;
    margin-bottom: 12px;
}

.drink-card:hover .drink-desc {
    color: #1a1a2e;
}

.drink-price {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #e8b84b;
    letter-spacing: 0.05em;
}

.drink-price::before {
    content: '\00A5';
}

/* ==================== */
/* ABOUT SECTION        */
/* ==================== */
#about {
    background-color: #f5f0e8;
    color: #1a1a2e;
    border-bottom: 4px solid #1a1a2e;
    position: relative;
    z-index: 2;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

.about-poster {
    background-color: #e8b84b;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.poster-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.poster-kanji {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(8rem, 20vw, 16rem);
    line-height: 0.85;
    color: #1a1a2e;
    mix-blend-mode: multiply;
}

.about-content {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content h2 {
    font-size: clamp(3rem, 8vw, 6rem);
    color: #4a90d9;
    line-height: 1;
    margin-bottom: 16px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
}

.about-content .skeleton-block {
    background: linear-gradient(90deg, #f5f0e8 25%, #e0dbd0 50%, #f5f0e8 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-color: #1a1a2e;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 16px;
    border-bottom: 2px solid #1a1a2e;
}

.detail-label {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: #6c757d;
}

.detail-value {
    font-size: 1.5rem;
    color: #1a1a2e;
}

/* ==================== */
/* EVENTS SECTION       */
/* ==================== */
#events {
    background-color: #1a1a2e;
    padding: 80px 0;
    border-bottom: 4px solid #e8b84b;
    position: relative;
    z-index: 2;
}

.events-list {
    padding: 0;
}

.event-row {
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    align-items: center;
    padding: 32px 40px;
    border-bottom: 2px solid #6c757d;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.event-row:first-child {
    border-top: 2px solid #6c757d;
}

.event-row:hover {
    background-color: #4a90d9;
}

.event-date {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: #e8b84b;
    letter-spacing: 0.05em;
}

.event-row:hover .event-date {
    color: #1a1a2e;
}

.event-name {
    font-size: 2rem;
    color: #f5f0e8;
}

.event-row:hover .event-name {
    color: #1a1a2e;
}

.event-tag {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #1a1a2e;
    background-color: #e8b84b;
    padding: 6px 12px;
    text-align: center;
}

.event-row:hover .event-tag {
    background-color: #1a1a2e;
    color: #e8b84b;
}

/* ==================== */
/* FOOTER               */
/* ==================== */
#footer {
    background-color: #1a1a2e;
    border-top: 4px solid #f5f0e8;
    padding: 60px 40px 30px;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: #f5f0e8;
    display: block;
    margin-bottom: 8px;
}

.footer-brand .handwritten {
    font-size: 1.3rem;
    color: #6c757d;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: #f5f0e8;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-link:hover {
    color: #4a90d9;
}

.social-label {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: #6c757d;
    display: block;
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 48px;
    height: 48px;
    border: 2px solid #f5f0e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #f5f0e8;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.social-icon:hover {
    background-color: #4a90d9;
    border-color: #4a90d9;
    color: #1a1a2e;
}

.footer-bottom {
    border-top: 2px solid #6c757d;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-bottom span {
    font-size: 0.8rem;
    color: #6c757d;
    letter-spacing: 0.1em;
}

/* ==================== */
/* SCROLL REVEAL        */
/* ==================== */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== */
/* RESPONSIVE           */
/* ==================== */
@media (max-width: 900px) {
    .manifesto-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .manifesto-left {
        border-right: none;
        border-bottom: 4px solid #e8b84b;
        min-height: 40vh;
    }

    .drinks-grid {
        grid-template-columns: 1fr 1fr;
    }

    .drink-card {
        border-right: none;
    }

    .drink-card:nth-child(odd) {
        border-right: 2px solid #6c757d;
    }

    .event-row {
        grid-template-columns: 80px 1fr 80px;
        padding: 24px 20px;
    }

    .event-name {
        font-size: 1.4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-poster {
        min-height: 40vh;
    }
}

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

    .drink-card {
        border-right: none;
    }

    .drink-card:nth-child(odd) {
        border-right: none;
    }

    .hero-tagline {
        flex-direction: column;
        gap: 8px;
    }

    .tag-divider {
        display: none;
    }

    .event-row {
        grid-template-columns: 60px 1fr auto;
        gap: 12px;
    }

    .event-tag {
        font-size: 0.6rem;
        padding: 4px 8px;
    }

    .manifesto-col {
        padding: 40px 20px;
    }

    .about-content {
        padding: 40px 20px;
    }

    .section-header {
        padding: 0 20px;
    }
}
