/**
 * Song Insights Page Styles
 * Quantum-themed design for comprehensive song analysis
 */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-bg: #0a0a0f;
    --card-bg: #1a1a2e;
    --card-hover: #252541;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --accent-purple: #9d4edd;
    --accent-cyan: #00d4ff;
    --accent-pink: #ff006e;
    --border-color: #2d2d4a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 80px;
}

.insights-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Section */
.insights-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--primary-gradient);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.insights-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.insights-header .subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.insights-header .description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin: 0 auto;
}

/* Songs Grid */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Song Card */
.song-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.song-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--card-hover);
}

/* Song Header */
.song-header {
    position: relative;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-bottom: 1px solid var(--border-color);
}

.song-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.song-image {
    width: 100%;
    height: 250px;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.song-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.song-card:hover .song-image img {
    transform: scale(1.05);
}

.song-meta {
    padding-right: 60px;
}

.song-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.song-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.genre {
    padding: 0.4rem 0.9rem;
    background: var(--secondary-gradient);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.duration {
    padding: 0.4rem 0.9rem;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid var(--accent-cyan);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.play-song-btn {
    padding: 0.8rem 1.6rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.play-song-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.1);
}

.play-song-btn:active {
    transform: translateY(0);
}

/* Song Content */
.song-content {
    padding: 1.5rem;
}

.ai-thoughts-section,
.lyric-snippets-section {
    margin-bottom: 1.5rem;
}

.ai-thoughts-section h3,
.lyric-snippets-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-thoughts {
    background: rgba(157, 78, 221, 0.1);
    border-left: 4px solid var(--accent-purple);
    padding: 1.2rem;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.lyric-snippets {
    list-style: none;
}

.snippet {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid var(--accent-cyan);
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    font-style: italic;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.snippet:hover {
    background: rgba(0, 212, 255, 0.15);
    transform: translateX(4px);
}

/* Footer */
.insights-footer {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-top: 3rem;
}

.insights-footer p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-purple);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .insights-container {
        padding: 1rem;
    }

    .insights-header h1 {
        font-size: 2rem;
    }

    .insights-header .subtitle {
        font-size: 1.1rem;
    }

    .songs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .song-title {
        font-size: 1.5rem;
    }

    .song-image {
        height: 200px;
    }

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

@media (max-width: 480px) {
    .insights-header h1 {
        font-size: 1.6rem;
    }

    .insights-header .subtitle {
        font-size: 1rem;
    }

    .song-header {
        padding: 1rem;
    }

    .song-content {
        padding: 1rem;
    }

    .song-title {
        font-size: 1.3rem;
    }

    .song-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .ai-thoughts-section h3,
    .lyric-snippets-section h3 {
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.song-card {
    animation: fadeIn 0.5s ease forwards;
}

.song-card:nth-child(1) { animation-delay: 0.05s; }
.song-card:nth-child(2) { animation-delay: 0.1s; }
.song-card:nth-child(3) { animation-delay: 0.15s; }
.song-card:nth-child(4) { animation-delay: 0.2s; }
.song-card:nth-child(5) { animation-delay: 0.25s; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}
