/* Wat kost een stad? - Stylesheet */

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

body {
    font-family: 'Scala Sans', sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    overflow: hidden;
}

/* ========== NAVIGATIE ========== */
.horizontal-nav {
    position: fixed;
    top: 0;
    left: 0;
    padding: 1.5rem 2rem;
    z-index: 300;
}

.horizontal-nav .back-link {
    font-family: 'Scala Sans', sans-serif;
    font-size: 0.9rem;
    color: #ffffff;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.horizontal-nav .back-link:hover {
    opacity: 1;
}

/* ========== INTRO GORDIJN ========== */
.intro-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200;
    display: flex;
    pointer-events: none;
}

.intro-curtain.open {
    pointer-events: none;
}

.curtain-left,
.curtain-right {
    width: 50vw;
    height: 100vh;
    background: #c8102e;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.curtain-left {
    transform-origin: left center;
}

.curtain-right {
    transform-origin: right center;
}

/* Amsterdamse Andreaskruisen - splitsen bij openen */
.amsterdam-kruisen {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    position: relative;
    width: 100%;
    overflow: visible;
}

.kruisen-left,
.kruisen-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    opacity: 0.3;
    transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.kruisen-left {
    clip-path: inset(0 50% 0 0);
}

.kruisen-right {
    clip-path: inset(0 0 0 50%);
}

.intro-curtain.open .kruisen-left {
    transform: translateX(calc(-50% - 50vw));
}

.intro-curtain.open .kruisen-right {
    transform: translateX(calc(-50% + 50vw));
}

.kruis {
    font-family: 'Limelight', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #ffffff;
    line-height: 0.7;
}

.intro-curtain.open .curtain-left {
    transform: translateX(-100%);
}

.intro-curtain.open .curtain-right {
    transform: translateX(100%);
}

/* Titel op gordijn */
.curtain-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.intro-curtain.open .curtain-title {
    opacity: 0;
}

.curtain-title h1 {
    font-family: 'Limelight', cursive;
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 1rem;
}

.curtain-title p {
    font-family: 'Scala Sans', sans-serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.8);
}

.scroll-hint {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s infinite;
}

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

.intro-curtain.open .scroll-hint {
    opacity: 0;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    padding-left: 10vw;
}

/* ========== GRONDSTOF SLIDE ========== */
.grondstof-slide {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 1200px;
}

.grondstof-vraag {
    font-family: 'Limelight', cursive;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.grondstof-content {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.grondstof-foto {
    width: auto;
    height: 80vh;
    aspect-ratio: 3 / 2;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
}

.grondstof-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grondstof-antwoord {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.antwoord-getal {
    font-family: 'Limelight', cursive;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 400;
    color: #c8102e;
    line-height: 1;
    display: block;
    text-align: left;
}

.antwoord-eenheid {
    font-family: 'Scala Sans', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-transform: lowercase;
}

/* Berekening link */
.berekening-link {
    font-family: 'Scala Sans', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    margin-top: 1.5rem;
    transition: color 0.3s ease;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.berekening-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Berekening panel */
.berekening-panel {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid #c8102e;
    max-width: 400px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}

.berekening-panel.visible {
    opacity: 1;
    max-height: 500px;
}

.berekening-panel p {
    font-family: 'Scala Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.berekening-panel p:last-child {
    margin-bottom: 0;
}

.berekening-bronnen {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.berekening-bronnen a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
}

.berekening-bronnen a:hover {
    color: #c8102e;
}

/* ========== ICON NAVIGATIE ========== */
.icon-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 2rem;
    z-index: 100;
}

.icon-item {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.icon-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.icon-item.active {
    background: #c8102e;
    border-color: #c8102e;
    color: #ffffff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .grondstof-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .grondstof-foto {
        width: 90vw;
    }

    .icon-nav {
        gap: 0.3rem;
        padding: 0 1rem;
    }

    .icon-item {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 767px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .main-content {
        padding: 6rem 1.5rem 100px 1.5rem;
        height: auto;
        min-height: 100vh;
    }

    .icon-nav {
        height: 70px;
    }

    .icon-item {
        width: 28px;
        height: 28px;
        font-size: 0.6rem;
    }
}
