/*
Theme Name: Eskador Radio
Description: Custom theme for Eskador Radio station
Version: 2.3
Author: Eskador Team
*/

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

:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary: #8e44ad;
    --accent: #3498db;
    --dark: #0f0f0f;
    --darker: #0a0a0a;
    --light: #ffffff;
    --gray: #666;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: var(--light);
    min-height: 100vh;
    padding-top: 65px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Transparante Sticky Header */
.site-header {
    background: rgba(10, 10, 10, 0.4) !important;
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.85) !important;
    padding: 0.5rem 0;
    backdrop-filter: blur(30px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Compact Logo Sizing - Verbeterde versie */
.logo {
    height: 40px; /* Vaste hoogte voor consistente grootte */
    display: flex;
    align-items: center;
    font-size: 1.4rem; /* Iets kleiner dan voorheen */
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1001;
    transition: all 0.3s ease;
    line-height: 1;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Logo met afbeelding ondersteuning */
.logo img {
    height: 100%;
    width: auto;
    max-height: 40px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-text {
    display: inline-block;
    line-height: 1;
}

/* Desktop Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    opacity: 0.9;
}

.main-nav a:hover {
    color: var(--primary);
    opacity: 1;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--light);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    opacity: 0.9;
}

.menu-toggle:hover span {
    background: var(--primary);
    opacity: 1;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--primary);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(142, 68, 173, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--light), var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--light);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--light);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--light);
}

/* Now Playing Section */
.now-playing-section {
    padding: 100px 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(142, 68, 173, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Modern Now Playing Container */
.now-playing-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.now-playing-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.now-playing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.now-playing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: var(--light);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.live-pulse {
    width: 6px;
    height: 6px;
    background: var(--light);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.2);
    }
}

/* Grotere Iframe Container Styles */
.iframe-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--light);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 80vh;
    min-height: 600px;
    max-height: 900px;
}

.now-playing-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
    background: white;
}

/* Improved Loading Overlay */
.iframe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    z-index: 10;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.iframe-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 107, 53, 0.3);
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.iframe-overlay p {
    margin: 0;
    font-weight: 500;
    background: linear-gradient(135deg, #fff, #ff8e53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
}

/* Action Buttons */
.now-playing-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light);
}

.feature p {
    opacity: 0.8;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    background: rgba(5, 5, 5, 0.8);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--primary);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Fallback Styles */
.frame-fallback {
    background: var(--light);
    color: var(--dark);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fallback-content {
    text-align: center;
    padding: 2rem;
}

.fallback-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .logo {
        font-size: 1.2rem;
        height: 35px;
    }
    
    .logo img {
        max-height: 35px;
    }
    
    .main-nav ul {
        gap: 1.5rem;
    }
    
    .main-nav a {
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .iframe-container {
        height: 75vh;
        min-height: 500px;
        max-height: 800px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 50px;
    }
    
    .site-header {
        padding: 0.5rem 0;
    }
    
    .site-header.scrolled {
        padding: 0.3rem 0;
    }
    
    .logo {
        font-size: 1.1rem;
        height: 32px;
    }
    
    .logo img {
        max-height: 32px;
    }
    
    .site-header.scrolled .logo {
        font-size: 1rem;
        height: 30px;
    }
    
    .site-header.scrolled .logo img {
        max-height: 30px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(30px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .main-nav a {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
        display: block;
        border: 2px solid transparent;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .main-nav a:hover {
        background: rgba(255, 107, 53, 0.1);
        border-color: var(--primary);
    }
    
    .main-nav a::after {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .now-playing-container {
        padding: 2rem;
    }
    
    .now-playing-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .iframe-container {
        height: 70vh;
        min-height: 400px;
        max-height: 600px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons,
    .now-playing-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 28px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 45px;
    }
    
    .site-header {
        padding: 0.4rem 0;
    }
    
    .logo {
        font-size: 1rem;
        height: 28px;
    }
    
    .logo img {
        max-height: 28px;
    }
    
    .site-header.scrolled .logo {
        font-size: 0.9rem;
        height: 26px;
    }
    
    .site-header.scrolled .logo img {
        max-height: 26px;
    }
    
    .main-nav a {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .menu-toggle {
        width: 22px;
        height: 16px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .iframe-container {
        height: 75vh;
        min-height: 350px;
        max-height: 500px;
    }
    
    .now-playing-container {
        padding: 1.5rem;
    }
    
    .feature {
        padding: 2rem 1rem;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}