/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e4e4e7;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    border-bottom: 1px solid #334155;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 2rem;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #fbbf24;
}

/* Day selection */
.day-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .day-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .day-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

.day-button {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #475569;
    color: #e4e4e7;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.day-button:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: #64748b;
}

.day-button.active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    border-color: #fbbf24;
}

.day-button-text {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Program cards */
.programs-section {
    margin-top: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #fbbf24;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e4e4e7;
}

.programs-grid {
    display: grid;
    gap: 1.5rem;
}

.program-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(51, 65, 85, 0.6));
    border: 1px solid #475569;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s;
}

.program-card:hover {
    box-shadow: 0 20px 25px -5px rgba(251, 191, 36, 0.1), 0 10px 10px -5px rgba(251, 191, 36, 0.04);
}

.program-content {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .program-content {
        flex-direction: row;
    }
}

.program-image-container {
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .program-image-container {
        width: 20rem;
    }
}

.program-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.category-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
    backdrop-filter: blur(4px);
}

.category-muziek {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.3);
}

.category-nieuws {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.category-sport {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.3);
}

.category-amusement {
    background: rgba(168, 85, 247, 0.2);
    color: #c4b5fd;
    border-color: rgba(168, 85, 247, 0.3);
}

.program-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1rem;
}

.program-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.program-details {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.program-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: #9ca3af;
}

@media (min-width: 640px) {
    .program-meta {
        flex-direction: row;
    }
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.meta-icon {
    width: 1rem;
    height: 1rem;
    color: #fbbf24;
}

.meta-text {
    color: #e4e4e7;
}

.meta-secondary {
    color: rgba(228, 228, 231, 0.8);
}

.program-description {
    font-size: 0.875rem;
    color: rgba(228, 228, 231, 0.9);
    line-height: 1.6;
}

/* Loading and empty states */
.loading-card, .empty-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(51, 65, 85, 0.6));
    border: 1px solid #475569;
    border-radius: 0.75rem;
    padding: 3rem;
    text-align: center;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid #fbbf24;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-icon {
    width: 3rem;
    height: 3rem;
    color: #9ca3af;
    margin: 0 auto 1rem;
}

.loading-text, .empty-text {
    color: #9ca3af;
    font-size: 1.125rem;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .program-title {
        font-size: 1.5rem;
    }
    
    .programs-grid {
        gap: 2rem;
    }
}