/* ==========================================================================
   1. ROOT VARIABELEN & BASIS STIJLEN
   ========================================================================== */
/* ==========================================================================
   1. ROOT VARIABELEN & BASIS STIJLEN
   ========================================================================== */
:root {
    /* Nieuwe specifieke variabelen */
    --purple-main: #0D1B4C;
    --purple-dark: #0D1B4C;
    --bg-gray: #f8f9fa;
    --sidebar-width: 16.666667%; /* Overeenkomstig met col-lg-2 */
    --header-height: 60px;
    --sub-header-height: 40px;
    --total-top-height: calc(var(--header-height) + var(--sub-header-height));
    --xfm-red: #e60000;

    /* Koppeling met de bestaande thema-elementen */
    --bg-color: var(--bg-gray);
    --card-bg: #ffffff;
    --sidebar-bg: var(--purple-main);
    --text-color: #ffffff;
    --text-muted: #a0a8c0;
    --accent-color: var(--xfm-red);
    --accent-hover: #cc0000;
    --live-red: var(--xfm-red);
    --border-color: rgba(255, 255, 255, 0.12);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ==========================================================================
   2. HEADER & DUBBELE TOPBAR
   ========================================================================== */
.site-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--sidebar-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Bovenste Balk: Tijd, Datum & Live Ticker */
.top-header {
    background-color: #07090d;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 6px 0;
    width: 100%;
}

.top-header-container {
    width: 100%;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-datetime {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.header-icon {
    font-size: 0.85rem;
}

.time-divider {
    color: var(--border-color);
    margin: 0 4px;
}

.time-highlight {
    color: #ffffff;
    font-weight: 700;
    font-family: monospace, monospace;
    letter-spacing: 0.5px;
}

.header-ticker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.badge-live {
    background: var(--live-red);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Tweede Balk: Logo & Hoofdnavigatie */
.main-header {
    width: 100%;
    display: flex;
    justify-content: space-between; /* Logo helemaal links, menu aan de rechterkant */
    align-items: center;
    padding: 0.8rem 1.5rem;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent-color);
}

.logo img {
    max-height: 45px;
    width: auto;
    display: block;
}

.main-nav {
    margin-right: 60px; /* Duwt het menu 60px vanaf de rechterrand naar links */
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   3. LAYOUT & CONTENT WRAPPER
   ========================================================================== */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 110px);
    width: 100%;
}

.page-content-wrapper {
    flex: 1;
    padding: 0; /* Verwijder padding zodat hero de volle breedte en hoogte pakt */
    width: 100%;
}

/* Binnenste container voor de normale content (zoals nieuws) onder de hero */
.main-inner-content {
    padding: 1.5rem;
    width: 100%;
}

/* Content Grid & Cards Styling */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.card h3 {
    font-size: 1.1rem;
    line-height: 1.3;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   4. SIDEBAR PLAYER & STATIONS SWITCHER
   ========================================================================== */
.player-bar {
    background-color: var(--sidebar-bg);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-tabs {
    display: none; /* Standaard verborgen op mobiel */
}

.tab-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.track-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.album-art {
    width: 48px;
    height: 48px;
    background-color: var(--card-bg);
    border-radius: 6px;
    background-size: cover;
    background-position: center;
}

.details {
    display: flex;
    flex-direction: column;
}

.details .artist {
    font-weight: 700;
    font-size: 0.95rem;
}

.details .title {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.play-btn {
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.play-btn:hover {
    background-color: var(--accent-hover);
}

.live-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--live-red);
}

.live-status .dot {
    width: 8px;
    height: 8px;
    background-color: var(--live-red);
    border-radius: 50%;
}

/* Stations Lijst Styling */
.stations-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.stations-list h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.station-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
    background-color: var(--card-bg);
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.station-item:hover,
.station-item.active {
    border-color: var(--accent-color);
    background-color: #1c2230;
}

.station-icon {
    font-size: 1.2rem;
}

.station-details {
    display: flex;
    flex-direction: column;
}

.station-name {
    font-weight: 700;
    font-size: 0.85rem;
}

.station-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   5. DESKTOP MEDIA QUERIES (1024px en groter)
   ========================================================================== */
@media (min-width: 1024px) {
    .app-layout {
        flex-direction: row-reverse; /* Plaats de sidebar (player-bar) LINKS op desktop */
    }

    .page-content-wrapper {
        flex: 1;
    }

    /* Vaste Sidebar Links op Desktop */
    .player-bar {
        width: 320px;
        min-width: 320px;
        border-top: none;
        border-right: 1px solid var(--border-color); /* Rand aan de rechterkant van de sidebar */
        border-left: none;
        padding: 1.5rem;
    }

    /* Tab Switcher Bovenaan Sidebar */
    .sidebar-tabs {
        display: flex;
        width: 100%;
        gap: 0.4rem;
        background: #0d0f17;
        padding: 4px;
        border-radius: 8px;
    }

    .sidebar-tab {
        flex: 1;
        background: transparent;
        border: none;
        color: var(--text-muted);
        padding: 0.5rem 0;
        font-weight: 700;
        font-size: 0.8rem;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .sidebar-tab.active {
        background: var(--card-bg);
        color: var(--text-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    /* Tab Content Afhandeling op Desktop */
    .tab-content {
        display: none;
    }

    .tab-content.active {
        display: flex;
    }
}

/* ==========================================================================
   6. MOBIELE MEDIA QUERIES (tot 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .top-header-container {
        justify-content: center;
    }

    .header-ticker {
        display: none;
    }

    .main-header {
        flex-direction: column;
        gap: 0.8rem;
    }
}