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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: url("/assets/img/background.jpg") no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    line-height: 1.6;
}

/* Utility */
.accent {
    color: #ffcc00;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* =========================== Header =========================== */
.site-header {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 20px;
    border-bottom: 3px solid #ffcc00;
    position: relative;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ---- LOGO GROOTTE (desktop) ---- */
.logo img {
    height: 250px;
    /* ← gewenste hoogte desktop */
    width: auto;
    display: block;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

.site-title {
    color: #ffcc00;
    font-size: 2.3rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.dj-display {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.dj-display iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* =========================== Navigatie =========================== */
.main-nav {
    margin-top: 15px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.main-nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    background: rgba(255, 204, 0, 0.15);
    transition: 0.3s;
    font-weight: bold;
}

.main-nav ul li a:hover,
.main-nav ul li a:focus {
    background: #ffcc00;
    color: #000;
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    flex-direction: column;
    gap: 5px;
    z-index: 1100;
}

.nav-toggle-bar {
    width: 25px;
    height: 3px;
    background: #ffcc00;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================== Persistent player =========================== */
.persistent-player {
    width: 100%;
    margin-top: 15px;
}

.persistent-player iframe {
    width: 100%;
    height: 75px;
    border: none;
    border-radius: 8px;
}

/* =========================== Container & Layout =========================== */
.container {
    display: flex;
    gap: 20px;
    margin: 20px;
    align-items: flex-start;
}

.content {
    flex: 1 1 70%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.sidebar {
    flex: 0 0 30%;
    min-width: 280px;
    max-width: 360px;
}

/* =========================== Widgets =========================== */
.widget {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 5px solid #ffcc00;
}

.widget h3 {
    color: #ffcc00;
    font-size: 1.3rem;
    margin-bottom: 12px;
    text-align: center;
}

/* WhatsApp / Verzoekjes */
.whatsapp-widget,
.app-download {
    text-align: center;
}

.whatsapp-widget img,
.app-download img,
.form-popup-logo img {
    display: block;
    margin: 10px auto;
    max-width: 200px;
    height: auto;
}

.form-popup-logo img {
    max-width: 180px;
    transition: transform .3s;
}

.form-popup-logo img:hover {
    transform: scale(1.05);
}

.whatsapp-widget p {
    font-size: .95rem;
    color: #e5d3ba;
    margin: 8px 0;
}

/* =========================== Buttons =========================== */
.btn {
    display: inline-block;
    background: #ffcc00;
    color: #000;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: .3s;
}

.btn:hover,
.btn:focus {
    background: #fff;
    color: #000;
}

/* =========================== Now Playing =========================== */
.nowplaying-box {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.nowplaying-box marquee {
    color: #ffcc00;
    font-weight: bold;
    font-size: 1.1rem;
}

.np-row {
    margin: 5px 0;
}

/* =========================== Programma =========================== */
.program-today-box,
.program-day {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 5px solid #ffcc00;
    text-shadow: 1px 1px 3px #000;
}

.program-today-box h3,
.program-day h3 {
    color: #ffcc00;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.program-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.program-item:last-child {
    border-bottom: none;
}

.tijd {
    font-weight: bold;
    color: #fff;
    min-width: 100px;
}

.dj {
    flex: 1;
    color: #e5d3ba;
}

/* Badges */
.live-badge {
    background: #e60000;
    color: #fff;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .85rem;
    animation: blink 1s infinite;
    box-shadow: 0 0 6px rgba(230, 0, 0, .7);
}

.nonstop-badge {
    background: linear-gradient(145deg, #ffcc00, #e6b800);
    color: #000;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .85rem;
    box-shadow: 0 0 6px rgba(255, 204, 0, .6);
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}

/* =========================== Piraten Nieuws =========================== */
.piraten-news {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    margin: 30px 0;
    border-radius: 10px;
    border-left: 5px solid #ffcc00;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.piraten-news h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.piraten-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.piraten-news-card {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid #ffcc00;
    transition: transform .3s, box-shadow .3s;
}

.piraten-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .5);
}

.piraten-news-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.piraten-news-card h3 a {
    color: #ffcc00;
    text-decoration: none;
}

.piraten-news-card h3 a:hover {
    text-decoration: underline;
}

.piraten-news-card p {
    font-size: .9rem;
    color: #e5d3ba;
}

/* =========================== Nieuws =========================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.news-card {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #ffcc00;
    transition: transform .3s, box-shadow .3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, .6);
}

/* =========================== Chat =========================== */
.chat-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-iframe {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 10px;
    background: #000;
}

/* =========================== Listen Menu =========================== */
.listen-menu {
    text-align: center;
}

.listen-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 5px 10px;
    padding: 8px 12px;
    background: rgba(255, 204, 0, 0.15);
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: .3s;
}

.listen-links a img {
    height: 24px;
}

.listen-links a:hover,
.listen-links a:focus {
    background: #ffcc00;
    color: #000;
}

/* =========================== Partners =========================== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.partner-item {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform .3s, box-shadow .3s;
}

.partner-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.partner-name {
    color: #ffcc00;
    font-weight: bold;
}

/* =========================== Team =========================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    transition: transform .3s, box-shadow .3s;
    width: 180px;
}

.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 2px solid #ffcc00;
}

.team-member h4 {
    color: #ffcc00;
    font-weight: bold;
    margin: 0;
    text-shadow: 1px 1px 3px #000;
    font-size: 1.1rem;
}

.team-member .functie {
    font-size: .9rem;
    color: #e5d3ba;
    margin-top: 3px;
}

/* =========================== Fade-in =========================== */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .6s, transform .6s;
}

.fade-in.hidden {
    opacity: 0;
    transform: translateY(20px);
}

/* =========================== Visitor Counter =========================== */
.visitor-counter ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.visitor-counter li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.visitor-counter li:last-child {
    border-bottom: none;
}

/* =========================== Footer =========================== */
footer {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.85);
    border-top: 3px solid #ffcc00;
    margin-top: 20px;
}

/* =========================== Error Pages =========================== */
.error-page {
    text-align: center;
    padding: 60px 20px;
}

.error-page h1 {
    font-size: 2rem;
    color: #ffcc00;
    margin-bottom: 20px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.error-page p {
    font-size: 1rem;
    color: #e5d3ba;
    margin: 10px 0;
}

.error-page .btn {
    margin-top: 15px;
}

/* =========================== 
   Babbelcafé Chatbox 
=========================== */
.chatbox-widget {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 5px solid #ffcc00;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
    transition: transform .3s, box-shadow .3s;
}

.chatbox-widget h3 {
    font-size: 1.4rem;
    color: #ffcc00;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 4px #000;
}

.chatbox-widget p {
    font-size: .95rem;
    color: #e5d3ba;
    margin: 8px 0;
}

.chatbox-widget img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    border: 2px solid #ffcc00;
    transition: transform .3s, box-shadow .3s;
}

/* override: geen gele rand/animatie wanneer gewenst */
.chatbox-widget img {
    border: none;
    transition: none;
}

/* =========================== Responsive =========================== */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .content,
    .sidebar {
        width: 100%;
        max-width: 100%;
    }

    .sidebar {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {

    /* Mobiel: bovenste headerblok netjes centreren */
    .header-top {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px;
        width: 100%;
    }

    .logo-title {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }

    .site-title {
        font-size: 2rem;
        text-align: center;
    }

    /* Live badge wrapper centreren */
    #pkLiveWrap {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .pk-live-badge {
        margin: 0 auto;
    }

    /* Mobiel logohoogte */
    .logo img {
        height: 175px;
    }

    /* ← aanpassen als je groter wilt */

    .dj-display {
        width: 90%;
        max-width: 280px;
        height: auto;
    }

    .dj-display iframe {
        height: 150px;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        width: 100%;
        margin-top: 10px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .4s ease, opacity .3s ease;
    }

    .main-nav.open {
        max-height: 600px;
        opacity: 1;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
    }

    .piraten-news-grid,
    .news-grid,
    .partners-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* === DJ Avatars (publieke site) ===================================== */
/* Standaard: klein voor programmalijsten (naast tijd) */
.dj-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #cfd8e3;
    background: #0b1b2a;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 6px 14px rgba(0, 0, 0, .28);
    flex: 0 0 auto;
}

/* Grotere variant voor bv. header/“nu live” */
.dj-avatar.lg {
    width: 110px;
    height: 110px;
    border-width: 3px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .06) inset, 0 10px 24px rgba(0, 0, 0, .35);
}

/* Handige rij-uitlijning als je icon + tekst combineert */
.dj-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Klik-hint & hover voor avatars die vergroot kunnen worden */
.js-avatar {
    cursor: pointer;
    transition: transform .15s ease;
}

.js-avatar:hover {
    transform: scale(1.05);
}

/* — Avatar zoom modal — */
.avatar-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .85);
    z-index: 9999;
}

.avatar-modal.open {
    display: flex;
}

.avatar-modal img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #cfd8e3;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .6);
}

.avatar-modal .close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 28px;
    line-height: 1;
    color: #fff;
    background: none;
    border: 0;
    cursor: pointer;
}
/* ==== Desktop: logo midden, live-badge rechts ==== */
@media (min-width: 769px) {
    .header-top {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        /* links leeg, logo, rechts live */
        align-items: center;
        gap: 20px;
    }

    .logo-title {
        grid-column: 2;
        /* middenkolom */
        justify-self: center;
        /* horizontaal centreren */
        width: max-content;
        /* zo klein als de inhoud */
    }

    #pkLiveWrap {
        grid-column: 3;
        /* rechterkolom */
        justify-self: end;
        /* rechts uitlijnen */
    }
}