/* Nacht van de Jeugdbeweging – Instagram style */
/* Kleuren volgens de flyer */
:root {
    --blauw: #0B0583;
    --blauw-diep: #00004a;
    --oranje: #FF9F2F;
    --wit: #ffffff;
    --glas: rgba(255, 255, 255, 0.06);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, 'Montserrat', Arial, sans-serif;
    background: var(--blauw);
    color: var(--wit);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--oranje);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1100px, 92%);
    margin-inline: auto;
}

.small {
    font-size: .95rem;
}

.muted {
    opacity: .8;
}

/* Topbar CTA */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: block;
    text-align: center;
    padding: .65rem 1rem;
    background: linear-gradient(90deg, var(--oranje), #ffd28d, var(--oranje));
    color: var(--blauw);
    font-weight: 800;
}

/* HERO met sterren en maan */
.hero {
    position: relative;
    min-height: 84vh;
    display: grid;
    place-items: center;
    text-align: center;
    border-bottom: 4px solid var(--oranje);
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 5rem 1rem;
}

.logo {
    font-size: clamp(2.4rem, 5vw + 1rem, 5rem);
    font-weight: 900;
    letter-spacing: .5px;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--wit);
    text-shadow: 2px 2px 0 #000, -2px -2px 0 #000;
}

.logo span {
    color: var(--oranje);
}

.hero-sub {
    margin-top: .75rem;
    font-size: 1.1rem;
    opacity: .95;
}

.cta-row {
    margin-top: 1.25rem;
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Starfield (3 lagen) + maan */
.starfield {
    position: absolute;
    inset: 0;
}

.stars {
    position: absolute;
    inset: -100px;
    background-repeat: repeat;
    opacity: .8;
}

.layer1 {
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 3px 3px;
    animation: drift 140s linear infinite;
}

.layer2 {
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 2px 2px;
    opacity: .6;
    animation: drift 220s linear infinite reverse;
}

.layer3 {
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 1px 1px;
    opacity: .4;
    animation: drift 320s linear infinite;
}

@keyframes drift {
    from {
        transform: translate3d(0, 0, 0)
    }

    to {
        transform: translate3d(-300px, -200px, 0)
    }
}

/* Crescent moon met CSS */
.moon {
    position: absolute;
    left: clamp(10px, 6vw, 60px);
    top: clamp(10px, 6vw, 60px);
    width: clamp(70px, 12vw, 160px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--wit);
    box-shadow: inset -12px -12px 0 8px var(--blauw);
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, .25));
}

/* Secties */
.section {
    padding: 64px 0;
}

.section.alt {
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.04));
}

.section.highlight {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border-block: 3px solid var(--oranje);
}

h2 {
    margin: 0 0 16px 0;
    text-align: center;
    font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
    color: var(--oranje);
    text-shadow: 1px 1px 0 #000;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .8rem 1.2rem;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: .2px;
    border: 2px solid transparent;
    transition: transform .06s ease, background .2s ease, color .2s ease;
}

.btn:active {
    transform: translateY(2px);
}

.btn-primary {
    background: var(--oranje);
    color: var(--blauw);
}

.btn-primary:hover {
    background: #ffd08a;
    color: #1a145a;
    text-decoration: none;
}

.btn-ghost {
    background: transparent;
    color: var(--wit);
    border-color: var(--wit);
}

.btn-ghost:hover {
    background: var(--wit);
    color: var(--blauw);
    text-decoration: none;
}

.btn-disabled {
    background: #999;
    color: #222;
    pointer-events: none;
}

/* Line-up */
.lineup {
    list-style: none;
    padding: 0;
    margin: 8px auto 0;
    max-width: 720px;
}

.lineup li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: var(--glas);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 16px;
    border-radius: 14px;
    margin: 10px 0;
    backdrop-filter: blur(8px);
}

.lineup .tag {
    font-size: .85rem;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: rgba(255, 159, 47, .15);
    color: #ffd9ac;
    border: 1px solid rgba(255, 159, 47, .35);
}

/* Tickets */
.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.ticket {
    background: var(--glas);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.ticket h3 {
    margin: .2rem 0 .3rem;
}

.price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--oranje);
    margin: .25rem 0 .5rem;
}

.small {
    font-size: .9rem;
    opacity: .9;
    margin-bottom: 1rem;
}

.details {
    margin-top: 18px;
    padding-left: 1rem;
    max-width: 720px;
    margin-inline: auto;
}

.details li {
    margin: 6px 0;
}

/* Locatie / Map */
.map-wrap {
    margin-top: 12px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.map-wrap iframe {
    width: 100%;
    height: 360px;
    border: 0;
}

/* Instagram grid (handmatig) */
.ig {
    font-weight: 800;
}

.ig-grid {
    margin-top: 16px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.ig-grid img {
    width: 100%;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    transition: transform .2s ease;
}

.ig-grid a:hover img {
    transform: scale(1.02);
}

/* FAQ */
details {
    background: var(--glas);
    border: 1px solid rgba(255, 255, 255, .12);
    padding: .9rem 1rem;
    border-radius: 14px;
    margin: .6rem 0;
}

summary {
    cursor: pointer;
    font-weight: 700;
    color: #ffd9ac;
}

/* Footer */
.footer {
    padding: 34px 0;
    background: var(--blauw-diep);
    border-top: 4px solid var(--oranje);
    text-align: center;
}

/* Responsiveness */
@media (max-width: 480px) {
    .hero {
        min-height: 78v
    }
}

/* AFTERMOVIE STYLING — UPGRADED FRAME */
.video-frame {
    position: relative;
    max-width: 960px;
    margin: 2rem auto;

    /* nieuwe extra frame-lagen */
    padding: 14px;
    /* ruimte voor de outer border */
    border-radius: 34px;

    /* buitenste frame */
    background: linear-gradient(135deg, #ff9f2f, #ffd08a);
    box-shadow:
        0 0 30px rgba(255, 159, 47, 0.35),
        0 0 70px rgba(11, 5, 131, 0.4);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-frame::before {
    /* binnenste frame */
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--blauw-diep), var(--blauw));
    z-index: 1;
}

.video-frame:hover {
    transform: scale(1.02);
    box-shadow:
        0 0 40px rgba(255, 159, 47, 0.45),
        0 0 80px rgba(11, 5, 131, 0.6);
}

/* Glow overlay */
.video-glow {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at 50% 100%, rgba(255, 159, 47, 0.25), transparent 60%);
    pointer-events: none;
}

/* De video zelf */
.video-frame video {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
    object-fit: cover;
    cursor: pointer;
}

/* Hover hint */
.hover-hint {
    position: absolute;
    bottom: 14px;
    right: 20px;
    background: rgba(11, 5, 131, 0.85);
    color: var(--oranje);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
    box-shadow: 0 0 14px rgba(255, 159, 47, 0.35);
}

.video-frame:hover .hover-hint {
    opacity: 1;
}


/* ========================================
   FULLSCREEN POPUP VIDEO
   ======================================== */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    z-index: 9999;
}

.video-modal.show {
    opacity: 1;
    pointer-events: all;
}

.video-modal video {
    width: 90vw;
    max-width: 1300px;
    border-radius: 18px;
    box-shadow: 0 0 40px rgba(255, 159, 47, 0.4),
        0 0 80px rgba(11, 5, 131, 0.6);
    animation: modalIn .45s ease forwards;
}

@keyframes modalIn {
    from {
        transform: scale(.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Close-knop */
.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    color: var(--oranje);
    text-shadow: 0 0 12px rgba(255, 159, 47, 0.7);
    transition: transform .25s;
}

.close-modal:hover {
    transform: scale(1.15);
}

/* ============================================================
   🌟 UPGRADED FUNKY FRAME MET NEON + PARALLAX + 3D
   ============================================================ */

.hero-frame {
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(850px, 85%);
    height: min(850px, 85%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.75;
    transform-style: preserve-3d;
    transition: transform 0.4s ease-out;
    animation: heroFloat 14s ease-in-out infinite alternate;
}

/* Diepe float */
@keyframes heroFloat {
    0% {
        transform: rotate(-4deg) translateY(-14px);
    }

    100% {
        transform: rotate(4deg) translateY(14px);
    }
}

/* --- Frame lagen (retro festivalposter look) --- */
.hero-frame .layer {
    position: absolute;
    inset: 0;
    border-radius: 38px;
    display: grid;
    place-items: center;
    transition: transform 0.25s ease-out;
}

/* LAAGKLEUREN */
.hero-frame .l1 {
    background: #FF9F2F;
    transform: scale(1) translateZ(20px);
}

.hero-frame .l2 {
    background: #FFF3D9;
    transform: scale(.87) translateZ(30px);
}

.hero-frame .l3 {
    background: #FF9F2F;
    transform: scale(.74) translateZ(40px);
}

.hero-frame .l4 {
    background: #0a0a52;
    /* iets helderder dan #00004a */
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.55),
        0 0 0 3px rgba(255, 255, 255, 0.06) inset;
}

/* --- Neon randjes --- */
.hero-frame .layer::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    z-index: -1;
    background: radial-gradient(circle,
            rgba(0, 212, 255, 0.20),
            rgba(255, 159, 47, 0.25),
            transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-frame:hover .layer::after {
    opacity: 0.7;
}

/* --- Schuine lichtvlek (reflectie) --- */
.hero-frame::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -20%;
    width: 160%;
    height: 160%;
    background: conic-gradient(from 10deg,
            rgba(255, 255, 255, 0.15),
            rgba(255, 255, 255, 0) 80%);
    mix-blend-mode: soft-light;
    pointer-events: none;
    animation: lightSweep 18s linear infinite;
}

@keyframes lightSweep {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Parallax (beweeg mee met de muis) --- */

.hero-frame.parallax {
    transition: transform 0.15s ease-out;
}

@media (max-width: 600px) {
    .hero-frame {
        width: 92%;
        height: 92%;
        opacity: 0.55;
    }
}



/* ===========================================================
   🌌 DARK NIGHT FRAME — minder sterren, meer diepte
   =========================================================== */

/* 1) Donkere aura rondom de frame (veel minder licht) */
.hero-frame::before {
    content: "";
    position: absolute;
    inset: -70px;
    z-index: -2;
    background: radial-gradient(circle at 50% 40%,
            rgba(30, 20, 120, 0.35),
            rgba(5, 3, 40, 0.55) 60%,
            transparent 95%);
    filter: blur(55px);
    opacity: 0.55;
    /* véél subtieler */
    pointer-events: none;
}

/* 2) Mini-sterren — veel minder fel en half zo veel */
.hero-frame .night-stars {
    position: absolute;
    inset: -40px;

    /* kleinere patronen + donkere tint */
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px),
        radial-gradient(rgba(0, 200, 255, 0.18) 1px, transparent 1px),
        radial-gradient(rgba(255, 159, 47, 0.12) 1px, transparent 1px);

    background-size: 180px 180px, 260px 260px, 340px 340px;
    opacity: 0.28;
    /* <— drastisch minder licht */
    animation: nightTwinkle 22s linear infinite;
    mix-blend-mode: screen;
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
}

@keyframes nightTwinkle {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-70px, -40px, 0);
    }
}

/* 3) Nebula — veel subtieler */
.hero-frame::after {
    content: "";
    position: absolute;
    inset: -40px;
    background:
        radial-gradient(circle at 70% 90%, rgba(255, 159, 47, 0.10), transparent 70%),
        radial-gradient(circle at 15% 20%, rgba(0, 212, 255, 0.10), transparent 60%);
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
    /* minder zichtbaar */
}

/* 4) Lagen donkerder houden */
.hero-frame .layer {
    filter: drop-shadow(0 0 4px rgba(0, 0, 20, 0.4));
}

/* 5) Maanreflectie — zachter en minder licht */
.hero-frame .l4::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 40% 10%, rgba(255, 255, 255, 0.12), transparent 80%);
    mix-blend-mode: overlay;
    animation: moonAura 7s ease-in-out infinite alternate;
    opacity: 0.35;
    /* veel zachter */
}

.hero-frame .l4::after {
    content: "";
    position: absolute;
    inset: -20px;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 50%,
            rgba(0, 80, 255, 0.12),
            rgba(255, 120, 40, 0.10),
            transparent 70%);
    filter: blur(40px);
    opacity: 0.45;
    /* popt maar niet te licht */
    z-index: -1;
    pointer-events: none;
}

.hero-frame::backdrop,
.hero-frame::before {
    opacity: 0.65;
    /* was 0.55 */
}

.hero-frame .layer {
    filter: drop-shadow(0 0 6px rgba(20, 10, 70, 0.55));
}


@keyframes moonAura {
    0% {
        opacity: 0.12;
        transform: translateY(0px);
    }

    100% {
        opacity: 0.28;
        transform: translateY(10px);
    }
}