/*
Theme Name: Classicx FM Official
Author: Gemini
Version: 1.5
Description: Volledig responsive radio thema met fixed dubbele header, sidebar, Hero Player en Top 5 Promo.
*/

:root {
    --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;
}

/* Basis */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: #444;
    margin: 0;
    overflow-x: hidden;
}

a { color: var(--purple-main); transition: 0.3s; }
a:hover { color: var(--purple-dark); text-decoration: none; }

/* --- 1. HEADERS (FIXED) --- */

top-header {
    background-color: var(--purple-dark);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1050;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

top-header h1 {
    color: #fff;
    font-size: 24px;
    margin: 0;
    font-weight: bold;
    text-transform: lowercase;
}

top-header h1 span { color: rgba(255,255,255,0.6); }

.custom-logo-link img {
    max-height: 40px;
    width: auto;
}

.header-extra-nav {
    margin-left: auto;
}

/* 2. De lijst horizontaal maken */
.nav-header-top {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center;
}

/* 3. De menu items afstand geven */
.nav-header-top .nav-item {
    margin-left: 20px !important;
}

/* 4. De links goed leesbaar maken (Wit op de donkere achtergrond) */
.nav-header-top .nav-link, 
.nav-header-top li a {
    color: #ffffff !important; /* Dwingt wit af */
    font-weight: 700 !important; /* Iets dikker voor betere leesbaarheid */
    text-transform: uppercase;
    font-size: 13px;
    padding: 5px 10px !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    letter-spacing: 1px
}

/* 5. Hover effect */
.nav-header-top .nav-link:hover,
.nav-header-top li a:hover {
    color: #d1a3d1 !important; /* De lichtpaarse kleur uit je app-promo */
    background: rgba(255,255,255,0.1); /* Subtiele achtergrond bij hover */
    border-radius: 4px;
}

.sub-header {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: var(--sub-header-height);
    background-color: var(--bg-gray);
    border-bottom: 1px solid #ddd;
    z-index: 1040;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    font-size: 13px;
    color: #666;
}

.header-socials a {
    color: var(--purple-main);
    margin-left: 15px;
    font-size: 16px;
}

/* --- 2. SIDEBAR (FIXED) --- */

#sidebar {
    background-color: var(--purple-main);
    position: fixed;
    top: var(--total-top-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--total-top-height));
    overflow-y: auto;
    z-index: 1030;
    padding: 0;
    transition: all 0.3s;
}

#sidebar .nav-link { 
    color: #fff !important; 
    padding: 15px 20px; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    font-size: 14px; 
    font-weight: 500;
}

#sidebar .nav-link:hover { 
    background: rgba(0,0,0,0.1); 
}

.sidebar-search-form { padding: 20px; }
.sidebar-search-form .form-control {
    border-radius: 0;
    border: none;
    font-size: 13px;
}
.sidebar-search-form .btn {
    background-color: #333;
    color: #fff;
    border-radius: 0;
    font-size: 11px;
    font-weight: bold;
    margin-top: 5px;
}

/* --- 3. CONTENT AREA --- */

#content {
    margin-left: var(--sidebar-width);
    margin-top: var(--total-top-height);
    padding: 0;
    min-height: 100vh;
}

#content-wrapper {
    padding-bottom: 0;
}

.jumbotron-wrap {
    padding: 10px; 
    background-color: #fff;
}

/* De Radio Player Hero */
.radio-player-hero {
    background: linear-gradient(135deg, #6200ff 0%, #b300ff 100%);
    padding: 20px;
    color: #fff;
    position: relative;
    min-height: 450px;
    border: 4px solid #fff; 
    border-radius: 25px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.live-badge {
    position: absolute;
    top: 10px;
    left: 50px;
    background: red;
    color: white;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 4px;
}

.player-logo {
    max-width: 300px;
    display: block;
    margin: 0 auto;
}

.player-quick-links.glass-nav {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-around;
    padding: 15px;
    border-radius: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.glass-item {
    color: #fff !important;
    text-align: center;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.glass-item i { font-size: 18px; margin-bottom: 5px; }

/* Now Playing Styling */
.play-button-circle {
    width: 60px;
    height: 60px;
    background: #ff2d55;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    border: none;
    color: #fff;
}

.show-title {
    background: #fff;
    color: #000;
    border-radius: 30px;
    padding: 5px 25px;
    font-size: 22px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 5px;
}

.show-time {
    background: #000;
    color: #fff;
    border-radius: 20px;
    padding: 3px 15px;
    font-size: 18px;
    font-weight: bold;
}

.current-track-card {
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.album-art {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
}

.hero-bottom-nav {
    display: flex;
    justify-content: center;
    gap: 40px; /* Aangepast van 150px voor betere responsive fit */
    margin-top: 40px;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.hero-bottom-nav .nav-item {
    background: #000;
    color: #fff !important;
    padding: 5px 25px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
}

/* --- 4. TOP 5 & PROMO (BREAKOUT SECTION) --- */

.top5-promo-section {
    background-color: var(--purple-dark);
    padding: 60px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.top5-item {
    display: flex;
    align-items: center;
    background: #fff;
    margin-bottom: 12px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
    transition: transform 0.2s;
}

.top5-item:hover { transform: scale(1.02); }

.top5-rank {
    font-size: 28px;
    font-weight: 900;
    width: 50px;
    color: var(--xfm-red);
}

.top5-info h4 { font-size: 16px; margin: 0; font-weight: bold; color: #222; }
.top5-info p { margin: 0; font-size: 14px; color: #666; }
.top5-info small { color: var(--xfm-red); font-weight: bold; }

.promo-card-red {
    background: linear-gradient(135deg, var(--xfm-red) 0%, #b30000 100%);
    color: #fff;
    padding: 50px 30px;
    border-radius: 25px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 35px rgba(230, 0, 0, 0.2);
}

.promo-badge {
    background: rgba(255,255,255,0.2);
    border: 1px solid #fff;
    padding: 4px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.btn-promo-white {
    background: #fff;
    color: var(--xfm-red);
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 900;
    margin-top: 25px;
    display: inline-block;
    transition: 0.3s;
}

.btn-promo-white:hover { background: var(--purple-main); color: #fff; transform: translateY(-3px); }

/* --- 5. BLOG & WIDGETS --- */

.section-heading {
    border-left: 5px solid var(--xfm-red);
    padding-left: 15px;
    font-weight: bold;
}
.section-heading span { color: var(--xfm-red); }

.article-title a { color: #333; text-decoration: none; font-weight: bold; }
.article-meta { font-size: 12px; color: #999; text-transform: uppercase; margin-bottom: 15px; }

/* Jouw sidebar-box met een kleine toevoeging voor de hoeken */
.sidebar-box { 
    margin-bottom: 30px; 
    border-radius: 8px; 
    overflow: hidden; 
}

.sidebar-box h4 { 
    background-color: var(--purple-main); 
    color: #fff; 
    padding: 12px 15px; 
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    margin: 0; /* Zorgt dat hij niet zweeft */
    border-bottom: 2px solid var(--xfm-red); /* Subtiel X-FM accent */
}

/* Jouw sidebar-box-bg */
.sidebar-box-bg { 
    background-color: var(--bg-gray); 
    padding: 20px; 
    border: 1px solid #eee; 
    border-top: none; /* Sluit naadloos aan op de h4 */
}

/* Zorg dat widgets uit de admin ook jouw styling krijgen */
.sidebar-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-box ul li a {
    display: block;
    padding: 10px 15px;
    color: var(--purple-main);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
}

.sidebar-box ul li a:hover {
    background: rgba(0,0,0,0.02);
    color: var(--xfm-red);
}

/* --- Aanvulling op jouw Sectie 5 --- */

/* Zorg dat de widgets in de sidebar ook de grijze achtergrond krijgen */
.sidebar-box .widget {
    margin-bottom: 20px;
}

/* De widget titels moeten eruit zien als jouw h4 */
.sidebar-box .widgettitle, 
.sidebar-box .widget-title {
    background-color: var(--purple-main); 
    color: #fff; 
    padding: 12px 15px; 
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    margin: 0;
    border-bottom: 3px solid var(--xfm-red); /* Het rode accent */
}

/* De inhoud van de widget krijgt jouw grijze achtergrond */
.sidebar-box .widget > ul,
.sidebar-box .widget > div,
.sidebar-box .widget > p {
    background-color: var(--bg-gray); 
    padding: 20px; 
    border: 1px solid #eee;
    border-top: none; /* Sluit aan op de titel */
    margin: 0;
}

/* --- 6. FOOTER --- */

.footer-container {
    background-color: var(--bg-gray);
    border-top: 1px solid #eee;
    padding: 60px 0 20px 0;
    margin-top: 50px;
}

.footer h4 {
    font-size: 15px;
    font-weight: bold;
    border-bottom: 2px solid var(--purple-main);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.footer ul { list-style: none; padding: 0; }
.footer ul li a { color: #777; font-size: 13px; line-height: 2.5; }

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 12px;
    color: #999;
}

/* --- 7. RESPONSIVE DESIGN --- */

@media (max-width: 991.98px) {
    :root { --sidebar-width: 25%; }
}

@media (max-width: 767.98px) {
    top-header { position: relative; }
    .sub-header { display: none !important; }
    
    #sidebar {
        position: relative;
        top: 0 !important;
        width: 100%;
        height: auto;
    }
    
    #content { margin-left: 0 !important; margin-top: 0 !important; }
    
    .hero-bottom-nav { gap: 15px; }
    .top5-promo-flex-container { flex-direction: column; }
}

/* Animations */
.pulsing { animation: pulse-red 2s infinite; }
@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* WordPress Admin Bar Fix */
body.admin-bar top-header { top: 32px; }
body.admin-bar .sub-header { top: calc(32px + var(--header-height)); }

.live-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: red;
    color: white;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 4px;
}
#play-pause-btn {
    width: 60px;
    height: 60px;
    background-color: #6f42c1; /* Of je eigen merkkleur */
    border: none;
}
.sidebar-link.active {
    color: #fff !important;
    border-bottom: 2px solid #fff;
}

/* --- 8. MOBILE APP PROMO (FULL WIDE) UPGRADE --- */

.app-promo-fullwide {
    /* We voegen een subtiele mesh-gradient toe voor die 80s/90s vibe */
    background: #1a1a1a;
    background: radial-gradient(circle at 20% 50%, rgba(209, 163, 209, 0.15) 0%, transparent 40%), 
                linear-gradient(135deg, #1a1a1a 0%, var(--purple-dark) 100%);
    color: #fff;
    padding: 100px 0; /* Iets meer ademruimte */
    position: relative;
    overflow: hidden;
}

/* De 'glow' voor de paarse tekst */
.text-purple-light {
    color: #d1a3d1;
    text-shadow: 0 0 15px rgba(209, 163, 209, 0.4);
}

.app-promo-fullwide h2 {
    letter-spacing: -1px;
    line-height: 1.1;
}

/* Extra focus op de lijst met features */
.app-features li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    opacity: 0.85;
}

.app-features i {
    filter: drop-shadow(0 0 5px #d1a3d1);
}

/* Verbeterde mockup animatie */
.app-mockup-img {
    max-height: 350px;
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.6));
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Bij hover komt de telefoon 'tot leven' */
.app-promo-fullwide:hover .app-mockup-img {
    transform: translateY(-20px) scale(1.02);
    filter: drop-shadow(0 35px 60px rgba(209, 163, 209, 0.3));
}

/* De badges strakker maken */
.app-buttons img {
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
}

.app-buttons img:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border-color: rgba(209, 163, 209, 0.5);
}

/* Voor die kleine extra touch: een subtiele animatie op de achtergrond */
@keyframes pulse-bg {
    0% { opacity: 0.5; }
    50% { opacity: 0.8; }
    100% { opacity: 0.5; }
}

.app-promo-fullwide::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZIGHT0iNSIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4wNSI+PC9yZWN0Pgo8L3N2Zz4=');
    opacity: 0.3;
    pointer-events: none;
}

.app-promo-fullwide {
    perspective: 1000px; /* Cruciaal voor het 3D effect */
}

.app-mockup-img {
    /* Verwijder de transitie op transform als je JS gebruikt voor mousemove, 
       anders voelt het 'stroperig' aan. */
    transition: filter 0.5s ease, opacity 0.5s ease; 
    will-change: transform; /* Optimalisatie voor vloeiende beweging */
}


/* Archive Specifieke Styles */
.archive-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, var(--purple-dark) 100%);
    border-bottom: 4px solid #d1a3d1;
}

.archive-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.archive-thumb .thumb-img {
    height: 100%;
    min-height: 200px;
    background-size: cover;
    background-position: center;
}

.badge-purple-soft {
    background-color: rgba(209, 163, 209, 0.2);
    color: #8a4a8a;
    font-size: 0.75rem;
    font-weight: 700;
}

.btn-archive-link {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    color: var(--purple-dark);
    border: 2px solid var(--purple-dark);
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.btn-archive-link:hover {
    background: var(--purple-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Pagination Styling */
.pagination .page-numbers {
    padding: 8px 16px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    color: var(--purple-dark);
}

.pagination .page-numbers.current {
    background: var(--purple-dark);
    color: #fff;
    border-color: var(--purple-dark);
}

.pagination .page-numbers:hover:not(.current) {
    background: #f8f9fa;
    text-decoration: none;
}


/* Single Post Styles */
.post-hero {
    min-height: 400px;
    display: flex;
    align-items: center;
    color: #fff;
}

.post-content-wrap {
    margin-top: -100px; /* Laat de content over de hero vallen voor diepte */
    position: relative;
    z-index: 10;
    line-height: 1.8;
    font-size: 1.15rem;
    color: #333;
}

.post-content-wrap h2, .post-content-wrap h3 {
    margin-top: 2rem;
    font-weight: 700;
    color: var(--purple-dark);
}

.post-content-wrap img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Share Icons */
.share-icon {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff !important;
    margin-left: 5px;
    transition: opacity 0.3s;
}

.share-icon.fb { background: #3b5998; }
.share-icon.tw { background: #1da1f2; }
.share-icon.wa { background: #25d366; }
.share-icon:hover { opacity: 0.8; }

.post-navigation a {
    font-weight: bold;
    color: var(--purple-dark);
}

/* Custom Evenementen kleuren */
.border-primary {
    border-color: var(--purple-dark) !important;
}

.badge-primary {
    background-color: var(--purple-dark);
}

/* We gebruiken dezelfde knop-style als bij het nieuws */
.btn-archive-link {
    /* De styling die we net hebben gemaakt werkt hier ook direct op */
}

/* Page Specifieke Styling */
.page-hero {
    border-bottom: 3px solid var(--purple-light);
}

.title-separator {
    width: 60px;
    height: 4px;
    background: var(--purple-light);
    border-radius: 2px;
}

.page-content-wrap {
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
}

/* Zorg dat afbeeldingen binnen pagina's ook mooi afgerond zijn */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* 404 Pagina Styling */
.error-404-wrap {
    padding: 100px 0;
}

.text-purple-light {
    color: #d1a3d1 !important;
}

.btn-purple-light {
    background-color: #d1a3d1;
    border-color: #d1a3d1;
    color: #1a1a1a;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-purple-light:hover {
    background-color: #fff;
    border-color: #fff;
    transform: scale(1.05);
}

.display-1 {
    font-size: 8rem;
    letter-spacing: -5px;
    background: -webkit-linear-gradient(#fff, rgba(255,255,255,0.2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Music Database Styles */
.artist-link {
    transition: all 0.3s ease;
    background: #fdfdfd;
}

.artist-link:hover {
    background: var(--purple-dark);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.artist-link:hover i {
    color: #fff !important;
}

.alphabet-nav .btn {
    border-radius: 4px;
    font-weight: bold;
}

.custom-music-table thead th {
    background-color: #f8f9fa;
    color: var(--purple-dark);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-top: none;
}

.shadow-hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#search-results .list-group-item {
    border-left: none;
    border-right: none;
    padding: 12px 20px;
    transition: background 0.2s;
}

#search-results .list-group-item:hover {
    background-color: var(--purple-light);
    color: white !important;
    text-decoration: none;
}

#search-results {
    border-radius: 0 0 10px 10px;
    border: 1px solid #ddd;
    border-top: none;
}