/* LUFS Brand Colors and Compact Responsive Design */
:root {
    /* LUFS Brand Colors */
    --lufs-teal: #78BEBA;
    --lufs-red: #D35233;
    --lufs-yellow: #E7B225;
    --lufs-blue: #2069af;
    --lufs-black: #111111;
    --lufs-white: #fbf9e2;
    
    /* Derived colors */
    --lufs-teal-alpha: rgba(120, 190, 186, 0.08);
    --lufs-red-alpha: rgba(211, 82, 51, 0.08);
    --lufs-yellow-alpha: rgba(231, 178, 37, 0.08);
    --lufs-blue-alpha: rgba(32, 105, 175, 0.08);
    
    /* Simplified gradients */
    --lufs-gradient: linear-gradient(135deg, var(--lufs-teal), var(--lufs-blue));
    
    /* Layout */
    --container-max-width: 1400px;
    --container-padding: 2rem;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--lufs-black);
    color: var(--lufs-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Simplified Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--lufs-black);
    overflow: hidden;
}

.animated-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 25% 75%, var(--lufs-teal-alpha) 0%, transparent 40%),
        radial-gradient(circle at 75% 25%, var(--lufs-blue-alpha) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, var(--lufs-yellow-alpha) 0%, transparent 30%);
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
    }
    33% { 
        transform: translate(20px, -20px) rotate(120deg); 
    }
    66% { 
        transform: translate(-15px, 15px) rotate(240deg); 
    }
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
    position: relative;
    z-index: 1;
}

/* Header */
.site-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.site-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-icon {
    width: clamp(2rem, 4vw, 3rem);
    height: clamp(2rem, 4vw, 3rem);
    filter: drop-shadow(0 2px 8px rgba(120, 190, 186, 0.3));
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.generation-time {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 2rem;
}

.stats-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge.current {
    background: var(--lufs-yellow);
    color: var(--lufs-black);
}

.badge.added {
    background: var(--lufs-blue);
    color: var(--lufs-white);
}

.badge.finished {
    background: var(--lufs-teal);
    color: var(--lufs-black);
}

.badge.total {
    background: transparent;
    border-color: var(--lufs-white);
    color: var(--lufs-white);
}

/* Currently Listening Section */
.currently-listening {
    margin-bottom: 4rem;
}

.currently-listening h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.album-du-jour {
    max-width: 700px;
    margin: 0 auto;
}

/* Current embed container - exact sizing to match embed */
.current-embed-container {
    width: 100%;
    max-width: 660px;
    margin: 1.5rem auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
}

.current-embed-container iframe {
    width: 100%;
    display: block;
    border-radius: 8px;
}

/* Collapsible Sections */
.collapsible-section {
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.section-toggle {
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    color: var(--lufs-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.section-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.section-toggle h2 {
    margin: 0;
    font-size: 1.5rem;
}

.count {
    font-weight: normal;
    opacity: 0.7;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.section-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.section-content.expanded {
    max-height: none;
    padding: 2rem;
}

/* Compact Album Grid - Multiple columns with small embeds */
.album-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Album Cards */
.album-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(120, 190, 186, 0.3);
}

.current-card {
    background: rgba(231, 178, 37, 0.1);
    border-color: var(--lufs-yellow);
}

.compact-card {
    padding: 1rem;
}

.card-header {
    margin-bottom: 1rem;
}

.album-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--lufs-white);
    line-height: 1.3;
}

.artist-name {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 0.4rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Compact embed containers - Small and efficient */
.compact-embed-container {
    width: 100%;
    margin: 0.8rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.03);
    padding: 3px;
}

.compact-embed-container iframe {
    width: 100%;
    display: block;
    border-radius: 6px;
}

.card-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.music-link {
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.music-link.apple {
    background: var(--lufs-red);
    color: var(--lufs-white);
}

.music-link.spotify {
    background: var(--lufs-teal);
    color: var(--lufs-black);
}

.music-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Empty sections */
.empty-section {
    text-align: center;
    padding: 3rem 2rem;
    opacity: 0.6;
}

/* Footer */
.site-footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sheets-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--lufs-gradient);
    color: var(--lufs-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.sheets-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(120, 190, 186, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .album-grid-compact {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 900px) {
    .album-grid-compact {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    .album-grid-compact {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .current-embed-container {
        margin: 1rem auto;
        padding: 3px;
    }
    
    .compact-embed-container {
        padding: 2px;
    }
    
    .section-toggle {
        padding: 1rem 1.5rem;
    }
    
    .section-content.expanded {
        padding: 1.5rem;
    }
    
    .stats-badges {
        gap: 0.5rem;
    }
    
    .badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Lazy loading placeholder */
.lazy-embed[data-src] {
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lazy-embed[data-src]::before {
    content: "Loading...";
    color: rgba(255, 255, 255, 0.5);
}

/* No embed fallback */
.no-embed {
    text-align: center;
    padding: 1.5rem;
    opacity: 0.5;
    font-style: italic;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .animated-background::before {
        animation: none;
    }
    
    * {
        transition: none !important;
    }
}

/* Focus styles for accessibility */
.section-toggle:focus,
.music-link:focus,
.sheets-link:focus {
    outline: 2px solid var(--lufs-teal);
    outline-offset: 2px;
}
