/* ========================================
   monopole.bar Stylesheet
   ======================================== */

/* CSS Variables - Color Palette */
:root {
    --color-dark-navy: #0A0A14;
    --color-navy: #14141E;
    --color-slate-dark: #4A6AA0;
    --color-slate-mid: #687888;
    --color-slate-light: #8890A0;
    --color-cream: #E8E0D4;
    --color-coral: #FF6B4A;
    --color-gold: #F0C846;

    --font-display: 'Archivo Black', sans-serif;
    --font-body: 'Instrument Serif', serif;
    --font-mono: 'Overpass Mono', monospace;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--color-dark-navy);
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* ========================================
   SPREAD LAYOUT SYSTEM
   ======================================== */

.spread {
    width: 100vw;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3rem 2rem;
}

/* Spread 1: The Sign */
#spread-1 {
    background-color: var(--color-dark-navy);
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

#spread-1 .triangle-svg {
    position: absolute;
    width: clamp(20rem, 40vw, 50rem);
    height: auto;
    top: 30%;
    left: 10%;
    animation: triangle-draw 1.2s ease-out 0.4s both;
}

#spread-1 .hero-text-svg {
    position: relative;
    z-index: 10;
    width: clamp(16rem, 90vw, 1000px);
    height: auto;
    animation: hero-fade 1s ease-out 0.6s both;
}

#spread-1 .hero-text-path {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    fill: var(--color-cream);
    opacity: 0;
    animation: text-fill 0.8s ease-out 0.6s forwards;
}

@keyframes triangle-draw {
    from {
        stroke-dasharray: 1200;
        stroke-dashoffset: 1200;
        opacity: 0;
    }
    to {
        stroke-dasharray: 1200;
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes hero-fade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes text-fill {
    from {
        fill: transparent;
        stroke: var(--color-coral);
        stroke-width: 1;
        opacity: 1;
    }
    to {
        fill: var(--color-cream);
        stroke: none;
        opacity: 1;
    }
}

/* Spread 2: The Concept */
#spread-2 {
    background-color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 6rem;
    gap: 4rem;
    flex-direction: row;
}

.spread-2-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.spread-2-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coaster {
    width: clamp(12rem, 25vw, 18rem);
    aspect-ratio: 1;
    border: 2px solid var(--color-coral);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(circle, rgba(74, 106, 160, 0.1) 0%, transparent 70%);
    transform: rotate(-8deg);
    animation: coaster-appear 0.8s ease-out forwards;
}

.coaster:nth-child(1) {
    animation-delay: 0.8s;
}

.coaster:nth-child(2) {
    animation-delay: 1s;
    transform: rotate(4deg);
}

.coaster:nth-child(3) {
    animation-delay: 1.2s;
    transform: rotate(-6deg);
}

.coaster p {
    text-align: center;
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    color: var(--color-cream);
    line-height: 1.5;
    font-style: italic;
}

@keyframes coaster-appear {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-8deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(-8deg);
    }
}

.concept-statement {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--color-gold);
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-align: left;
    max-width: 600px;
    animation: concept-fade 1s ease-out 0.8s both;
}

@keyframes concept-fade {
    from {
        opacity: 0;
        transform: translateX(-2rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Spread 3: The Menu */
#spread-3 {
    background-color: var(--color-dark-navy);
    padding: 4rem 2rem;
}

.menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.menu-item {
    padding: 2rem;
    border-left: 3px solid var(--color-coral);
    background: linear-gradient(135deg, rgba(74, 106, 160, 0.1) 0%, transparent 100%);
    animation: menu-item-rise 0.6s ease-out forwards;
    opacity: 0;
}

.menu-item:nth-child(1) { animation-delay: 1s; }
.menu-item:nth-child(2) { animation-delay: 1.1s; }
.menu-item:nth-child(3) { animation-delay: 1.2s; }
.menu-item:nth-child(4) { animation-delay: 1.3s; }
.menu-item:nth-child(5) { animation-delay: 1.4s; }
.menu-item:nth-child(6) { animation-delay: 1.5s; }

@keyframes menu-item-rise {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-title {
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 2.5vw, 1.75rem);
    font-weight: 400;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.menu-ingredients {
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--color-slate-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.menu-price {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--color-coral);
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.zigzag {
    width: 100%;
    height: 20px;
    margin-top: 1rem;
    display: block;
    animation: zigzag-draw 1s ease-out forwards;
    opacity: 0;
}

.menu-item:nth-child(1) .zigzag { animation-delay: 1.2s; }
.menu-item:nth-child(2) .zigzag { animation-delay: 1.3s; }
.menu-item:nth-child(3) .zigzag { animation-delay: 1.4s; }
.menu-item:nth-child(4) .zigzag { animation-delay: 1.5s; }
.menu-item:nth-child(5) .zigzag { animation-delay: 1.6s; }

@keyframes zigzag-draw {
    from {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
        opacity: 0;
    }
    to {
        stroke-dasharray: 1000;
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* Spread 4: The Atmosphere */
#spread-4 {
    background-color: var(--color-navy);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4rem;
    padding: 6rem 2rem;
    min-height: 150vh;
}

.atmosphere-shapes {
    position: relative;
    width: 100%;
    height: 60vh;
    max-width: 1200px;
    margin: 0 auto;
}

.shape-svg {
    position: absolute;
    opacity: 0.3;
    animation: shape-rotate 20s linear infinite;
}

#shape-1 {
    width: clamp(15rem, 30vw, 35rem);
    height: clamp(15rem, 30vw, 35rem);
    top: 10%;
    left: 10%;
    animation-duration: 25s;
}

#shape-2 {
    width: clamp(12rem, 25vw, 28rem);
    height: clamp(12rem, 25vw, 28rem);
    top: 20%;
    right: 5%;
    animation-duration: 30s;
    animation-direction: reverse;
}

#shape-3 {
    width: clamp(16rem, 32vw, 38rem);
    height: clamp(10rem, 20vw, 24rem);
    bottom: 15%;
    left: 15%;
    animation-duration: 35s;
}

#shape-4 {
    width: clamp(14rem, 28vw, 32rem);
    height: clamp(14rem, 28vw, 32rem);
    bottom: 20%;
    right: 10%;
    animation-duration: 22s;
    animation-direction: reverse;
}

#shape-5 {
    width: clamp(13rem, 26vw, 30rem);
    height: clamp(13rem, 26vw, 30rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 28s;
}

#shape-6 {
    width: clamp(20rem, 35vw, 42rem);
    height: clamp(12rem, 18vw, 20rem);
    bottom: 10%;
    right: 20%;
    animation-duration: 32s;
    animation-direction: reverse;
}

@keyframes shape-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.atmosphere-text {
    position: relative;
    z-index: 5;
    max-width: 800px;
    text-align: center;
    padding: 2rem;
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid var(--color-slate-mid);
    border-radius: 4px;
}

.atmosphere-text p {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-cream);
    line-height: 1.8;
    letter-spacing: 0.01em;
    animation: atmosphere-fade 1s ease-out 1.8s both;
}

@keyframes atmosphere-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Spread 5: Last Call */
#spread-5 {
    background-color: var(--color-dark-navy);
    padding: 4rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.last-call-content {
    text-align: center;
    max-width: 600px;
    animation: last-call-appear 1s ease-out 2s both;
}

.last-call-content h3 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.last-call-content p {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-cream);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.last-call-content a {
    color: var(--color-coral);
    text-decoration: none;
    border-bottom: 2px solid var(--color-coral);
    padding-bottom: 0.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.last-call-content a:hover {
    background-color: rgba(255, 107, 74, 0.1);
    padding: 0.25rem 0.5rem;
}

@keyframes last-call-appear {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.line-svg {
    width: 80%;
    height: 2px;
    margin-top: 2rem;
    display: block;
    animation: line-draw 0.8s ease-out 2.3s both;
}

@keyframes line-draw {
    from {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dasharray: 1000;
        stroke-dashoffset: 0;
    }
}

/* ========================================
   CURSOR FIELD VISUALIZATION
   ======================================== */

.cursor-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.field-line {
    stroke: var(--color-slate-dark);
    stroke-width: 1;
    opacity: 0.15;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 1024px) {
    .spread {
        padding: 2rem 1.5rem;
    }

    #spread-2 {
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 2rem;
    }

    .spread-2-left,
    .spread-2-right {
        width: 100%;
    }

    .menu {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 2rem;
        padding: 0 1rem;
    }

    #spread-4 {
        min-height: auto;
        gap: 2rem;
    }

    .atmosphere-shapes {
        height: 50vh;
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    .spread {
        padding: 1.5rem 1rem;
    }

    .menu {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #spread-1 .triangle-svg {
        width: clamp(15rem, 60vw, 25rem);
        top: 20%;
        left: 5%;
    }

    .concept-statement {
        text-align: center;
    }

    .coaster {
        width: clamp(10rem, 50vw, 14rem);
    }
}

@media (max-width: 480px) {
    #spread-2 {
        padding: 2rem 1rem;
    }

    .coaster {
        width: clamp(8rem, 70vw, 12rem);
    }

    .atmosphere-shapes {
        height: 40vh;
    }

    #shape-1,
    #shape-2,
    #shape-3,
    #shape-4,
    #shape-5,
    #shape-6 {
        opacity: 0.2;
    }
}

/* ========================================
   PRINT STYLES (OPTIONAL)
   ======================================== */

@media print {
    .spread {
        break-inside: avoid;
        page-break-after: always;
    }

    .cursor-field {
        display: none;
    }
}
