/* Modern Music Platform Styles */

:root {
    /* Music-inspired color palette */
    --background: hsl(245, 20%, 8%);
    --foreground: hsl(210, 40%, 98%);
    
    --card: hsl(245, 20%, 12%);
    --card-foreground: hsl(210, 40%, 98%);
    
    /* Primary: Electric Purple */
    --primary: hsl(270, 91%, 65%);
    --primary-foreground: hsl(210, 40%, 98%);
    --primary-glow: hsl(270, 91%, 75%);
    
    /* Secondary: Deep Blue */
    --secondary: hsl(230, 50%, 20%);
    --secondary-foreground: hsl(210, 40%, 98%);
    
    /* Accent: Vibrant Pink */
    --accent: hsl(320, 91%, 65%);
    --accent-foreground: hsl(210, 40%, 98%);
    --accent-glow: hsl(320, 91%, 75%);
    
    --muted: hsl(245, 20%, 15%);
    --muted-foreground: hsl(215, 20%, 65%);
    
    --border: hsl(245, 20%, 18%);
    --radius: 1rem;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-card: linear-gradient(145deg, var(--card), var(--background));
    --gradient-feature: linear-gradient(135deg, var(--secondary), hsl(270, 50%, 25%));
    
    /* Shadows */
    --shadow-glow: 0 0 30px hsla(270, 91%, 65%, 0.3);
    --shadow-card: 0 10px 40px hsla(245, 20%, 5%, 0.8);
    --shadow-feature: 0 5px 20px hsla(245, 20%, 5%, 0.6);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/music-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-right: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(to right, white, hsl(270, 100%, 85%), hsl(320, 100%, 85%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: hsl(210, 40%, 80%);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Floating Notes Animation */
.floating-notes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.note {
    position: absolute;
    font-size: 3rem;
    opacity: 0.3;
}

.note-1 {
    top: 20%;
    left: 10%;
    color: var(--primary);
    animation: float-1 6s ease-in-out infinite;
}

.note-2 {
    top: 40%;
    right: 20%;
    color: var(--accent);
    font-size: 4rem;
    animation: float-2 8s ease-in-out infinite 2s;
}

.note-3 {
    bottom: 40%;
    left: 20%;
    color: var(--primary);
    font-size: 3.5rem;
    animation: float-3 7s ease-in-out infinite 1s;
}

.note-4 {
    bottom: 20%;
    right: 10%;
    color: var(--accent);
    animation: float-4 9s ease-in-out infinite 3s;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

.alt-bg {
    background: var(--card);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.section-header p {
    color: var(--muted-foreground);
    font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--gradient-feature);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-feature);
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.primary-color { color: var(--primary); }
.success-color { color: hsl(120, 91%, 65%); }
.accent-color { color: var(--accent); }

.feature-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.feature-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-hero);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-feature);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 0.5rem 0;
}

.stat-card p {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin: 0;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--muted);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Content Grid */
.content-grid {
    min-height: 200px;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-8deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(12deg); }
}

@keyframes float-4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(-6deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Video Card Styles */
.video-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.video-card .card-img-top {
    height: 180px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.video-card:hover .card-img-top {
    filter: brightness(1.1);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--foreground);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--foreground);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding: 0;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background-color: var(--primary-glow);
    transform: scale(1.1);
}

/* Media Selector Styles */
.media-selector {
    margin: 2rem 0;
}

.media-selector .btn-group .btn {
    padding: 0.5rem 2rem;
    border-radius: var(--radius);
}

.media-selector .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.media-selector .btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.media-selector .btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* Video Player Modal */
#videoPlayerModal .modal-content {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

#videoPlayerModal .modal-header,
#videoPlayerModal .modal-footer {
    border-color: var(--border);
}

#videoPlayerModal video {
    border-radius: calc(var(--radius) - 4px);
    max-height: 70vh;
    background: black;
}

/* Audio Player Modal Styles */
#audioPlayerModal .modal-content {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

#audioPlayerModal .modal-header,
#audioPlayerModal .modal-footer {
    border-color: var(--border);
}

#audioPlayerModal audio {
    border-radius: calc(var(--radius) - 4px);
    background: var(--secondary);
}

#audioPlayerModal audio::-webkit-media-controls-panel {
    background-color: var(--secondary);
}

#audioPlayerModal audio::-webkit-media-controls-play-button,
#audioPlayerModal audio::-webkit-media-controls-volume-slider {
    filter: brightness(1.2);
}

#audioPlayerModal img {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#audioPlayerModal img:hover {
    transform: scale(1.03);
}