/* ==========================================
   1. Basisinstellingen & Reset
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;

    /* Piratenthema Basis-Achtergrond met gestapelde lagen */
    background-color: #0c0d12;
    background-image: 
        /* LAAG 1: Het Twentse Ros links */
        url('https://upload.wikimedia.org/wikipedia/commons/4/4c/Saksenros.svg'),
        /* LAAG 2: Het Twentse Ros rechts */
        url('https://upload.wikimedia.org/wikipedia/commons/4/4c/Saksenros.svg'),
        
        /* LAAG 3 & 4: Het raster (kruisende lijnen) */
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        
        /* LAAG 5: Warme oranje gloed linksboven */
        radial-gradient(circle at 10% 20%, rgba(242, 108, 33, 0.08) 0%, transparent 50%),
        /* LAAG 6: Mystieke ether-gloed rechtsonder */
        radial-gradient(circle at 90% 80%, rgba(218, 37, 29, 0.08) 0%, rgba(30, 71, 146, 0.05) 40%, transparent 70%),
        /* LAAG 7 (Onderop): Jouw eigen SVG-afbeelding */
        url('background.svg');
    
    background-position: 
        left 2% center, 
        right 2% center, 
        left top, 
        left top, 
        left top, 
        left top, 
        center center;

    background-size: 
        180px auto, 
        180px auto, 
        40px 40px, 
        40px 40px, 
        100% 100%, 
        100% 100%, 
        cover;

    background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat, no-repeat, no-repeat;
    background-attachment: fixed;
}

/* ==========================================
   2. Geanimeerde Frequentiegolf (Achtergrond)
   ========================================== */
.wave-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    padding: 0 5%;
}

.bar {
    width: 8px;
    height: 10px;
    background: linear-gradient(to top, #ff9f43, #da251d);
    border-radius: 4px 4px 0 0;
    animation: bounce 1.2s ease-in-out infinite alternate;
}

.bar:nth-child(2n) { animation-duration: 0.8s; background: linear-gradient(to top, #ff9f43, #1e4792); }
.bar:nth-child(3n) { animation-duration: 1.5s; }
.bar:nth-child(4n) { animation-duration: 1.1s; background: linear-gradient(to top, #da251d, #ff9f43); }
.bar:nth-child(5n) { animation-duration: 1.3s; }

@keyframes bounce {
    0% { height: 5px; }
    100% { height: 90px; }
}

/* ==========================================
   3. Header & Navigatie (Desktop Standaard)
   ========================================== */
header {
    background-color: rgba(20, 21, 26, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid #ff9f43;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    gap: 10px;
    position: relative;
}

nav .logo {
    color: #ff9f43;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(242, 108, 33, 0.5);
}

/* Speler in de balk */
.menu-player {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 12px;
    border-radius: 30px;
    border: 1px solid rgba(255, 159, 67, 0.3);
}

.player-label {
    font-size: 0.85rem;
    font-weight: bold;
    color: #ff9f43;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-player audio {
    height: 30px;
    width: 200px;
    outline: none;
}

/* Hamburger knop (standaard verborgen) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

/* Desktop navigatielinks */
#nav-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
    align-items: center;
}

#nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s, text-shadow 0.2s;
}

#nav-menu li a:hover {
    color: #ff9f43;
    background: rgba(255, 159, 67, 0.15);
    text-shadow: 0 0 8px rgba(242, 108, 33, 0.5);
}

/* ==========================================
   4. Hoofdindeling (Container, Main & Aside)
   ========================================== */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

main {
    flex: 3;
    min-width: 300px;
    background: rgba(20, 22, 28, 0.456);
    backdrop-filter: blur(8px);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

main h1 {
    margin-bottom: 20px;
    color: #ff9f43;
    text-shadow: 0 0 15px rgba(242, 108, 33, 0.4);
    font-size: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

main p {
    margin-bottom: 20px;
    color: #e0e0e0;
    font-size: 1.05rem;
}

aside {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.widget {
    background: rgba(20, 22, 28, 0.456);
    backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border: 1px solid rgba(242, 108, 33, 0.15);
    border-left: 4px solid #ff9f43;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.widget:hover {
    transform: translateY(-3px);
    border-color: rgba(242, 108, 33, 0.4);
    box-shadow: 0 0 15px rgba(242, 108, 33, 0.2), 0 10px 30px rgba(0,0,0,0.6);
}

.widget h3 {
    margin-bottom: 12px;
    color: #ff9f43;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    text-shadow: 0 0 10px rgba(242, 108, 33, 0.4);
}

.widget p {
    font-size: 0.95rem;
    color: #cccccc;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #da251d;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px #da251d;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 4px #da251d; }
    100% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 12px #da251d; }
}

.NuLive {
    border: 0;
    width: 100%;
}

.verzoek-iframe {
    width: 100%;
    height: 80vh; 
    min-height: 600px;
    border: none;
    border-radius: 1rem;
    box-sizing: border-box;
}

/* ==========================================
   5. Responsiviteit (Media Queries)
   ========================================== */

/* A. Grote schermen: Paarden weglaten bij < 1400px */
@media (max-width: 1400px) {
    body {
        background-image: 
            linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
            radial-gradient(circle at 10% 20%, rgba(242, 108, 33, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 90% 80%, rgba(218, 37, 29, 0.08) 0%, rgba(30, 71, 146, 0.05) 40%, transparent 70%),
            url('background.svg');
        background-position: left top, left top, left top, left top, center center;
        background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%, cover;
        background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
    }
    .wave-container {
        opacity: 0.08;
    }
}

/* B. Middelgrote Desktops / Laptops (769px tot 1100px): Menu zakt onder speler */
@media screen and (max-width: 1100px) and (min-width: 769px) {
    #nav-menu {
        flex: 0 0 100%;
        justify-content: center;
        gap: 15px;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* ==========================================
   Responsiviteit voor Mobiel (<= 768px)
   ========================================== */
@media screen and (max-width: 768px) {
    /* 1. Voorkom te allen tijde horizontale scroll / swipe */
    html, body {
        overflow-x: hidden !important;
        width: 100%;
    }

    header {
        width: 100%;
        overflow-x: clip;
    }
    

    /* 2. Header layout: Alles strak verdelen zonder uit te steken */
    nav {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        padding: 6px 8px;
        gap: 6px;
        width: 100%;
    }

    /* 3. Logo schaalt mee en breekt niet lelijk af */
    nav .logo {
        font-size: 0.85rem;
        flex-shrink: 1;           /* Mag iets krimpen indien nodig */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;  /* Voorkomt dat te lange tekst buiten beeld duwt */
        max-width: 130px;
    }

    /* 4. Player compacter maken */
    .player-label,
    .status-dot {
        display: none !important; /* Ruimtevreters weglaten op mobiel */
    }



    /* 4. Player container: compacter en dunner */
    .menu-player {
        flex: 0 1 auto;             /* Neemt alleen de benodigde ruimte in */
        min-width: 0;
        padding: 1px 6px;           /* Zeer dunne padding aan boven- en onderkant */
        height: 26px;               /* Dunne totale hoogte */
        border-radius: 20px;
        background: rgba(0, 0, 0, 0.35);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;           /* Houdt alles strak binnen de rand */
    }

    /* 4b. De audiospeler zelf: smaller en proportioneel geschaald */
    .menu-player audio {
        width: 105px;               /* Extra smalle breedte */
        max-width: 105px;
        height: 24px;
        /* Schaal de native speler omlaag zodat de play/volume knoppen dunner worden */
        transform: scale(0.82);
        transform-origin: center center;
    }

    /* 5. Hamburger knop aan de rechterkant */
    .menu-toggle {
        display: block;
        font-size: 1.6rem;
        padding: 0 4px;
        flex-shrink: 0;           /* Knop mag NOOIT weggedrukt worden */
    }

    /* 6. Het uitgeklapte dropdown menu */
    #nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(18, 19, 24, 0.98);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
        padding: 5px 0;
        z-index: 1000;
        border-top: 1px solid rgba(255, 159, 67, 0.3);
    }

    #nav-menu.is-open {
        display: flex;
    }

    #nav-menu li {
        width: 100%;
        text-align: center;
    }

    #nav-menu li a {
        display: block;
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* 7. Containers op mobiel netjes binnen scherm houden */
    .container {
        padding: 0 10px;
        margin: 15px auto;
        width: 100%;
    }
}