/* ===== CSS Variables & Design Tokens ===== */
:root {
    /* Color Palette - Inspired by sunset/dawn aesthetic */
    --color-primary: #e91e8c;
    --color-primary-light: #ff6bb3;
    --color-secondary: #9b4dca;
    --color-accent: #ff9a56;
    --color-gold: #ffd700;

    /* Gradient Colors */
    --gradient-sunset: linear-gradient(135deg, #1a0a2e 0%, #3d1a54 25%, #6b2d5b 50%, #b8405e 75%, #ee6f57 100%);
    --gradient-glow: linear-gradient(135deg, #ff6bb3 0%, #e91e8c 50%, #9b4dca 100%);
    --gradient-button: linear-gradient(135deg, rgba(255, 107, 179, 0.2) 0%, rgba(155, 77, 202, 0.2) 100%);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);

    /* Shadows */
    --shadow-glow: 0 0 60px rgba(233, 30, 140, 0.4);
    --shadow-card: 0 25px 50px rgba(0, 0, 0, 0.3);
    --shadow-button: 0 10px 30px rgba(233, 30, 140, 0.3);

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-accent: 'Playfair Display', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== Reset & Base Styles ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--gradient-sunset);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ===== Background Effects ===== */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 215, 0, 0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 107, 179, 0.8), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 200px 50px, rgba(155, 77, 202, 0.7), transparent),
        radial-gradient(1px 1px at 250px 160px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 300px 90px, rgba(255, 215, 0, 0.5), transparent);
    background-size: 350px 350px;
    animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

.sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(3px 3px at 50px 150px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 120px 250px, rgba(255, 215, 0, 0.8), transparent),
        radial-gradient(3px 3px at 180px 100px, rgba(255, 107, 179, 0.7), transparent),
        radial-gradient(2px 2px at 280px 200px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 350px 300px, rgba(155, 77, 202, 0.6), transparent);
    background-size: 400px 400px;
    animation: sparkle 4s ease-in-out infinite alternate;
}

@keyframes sparkle {
    0% {
        opacity: 0.5;
        transform: translateY(0);
    }

    100% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

/* ===== Container ===== */
.container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.artist-badge {
    display: inline-block;
    background: var(--gradient-glow);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(233, 30, 140, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(233, 30, 140, 0.8), 0 0 60px rgba(155, 77, 202, 0.4);
    }
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.artist-name {
    font-family: var(--font-accent);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 0 30px rgba(233, 30, 140, 0.5);
    background: linear-gradient(135deg, #fff 0%, #ff6bb3 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.song-title {
    font-family: var(--font-accent);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text-secondary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* ===== Cover Section ===== */
.cover-section {
    width: 100%;
    max-width: 500px;
    margin: var(--spacing-lg) 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cover-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-medium);
}

.cover-wrapper:hover {
    transform: scale(1.02) rotate(0.5deg);
}

.cover-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-glow);
    filter: blur(40px);
    opacity: 0.6;
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.cover-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Cover Link Styles */
.cover-link {
    display: block;
    text-decoration: none;
    position: relative;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 80px;
    height: 80px;
    background: rgba(233, 30, 140, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-medium);
    box-shadow: 0 0 30px rgba(233, 30, 140, 0.6);
}

.play-icon {
    width: 40px;
    height: 40px;
    color: white;
    margin-left: 4px;
}

.cover-link:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cover-link:hover .cover-wrapper {
    transform: scale(1.02);
}

.cover-link:hover .cover-glow {
    opacity: 0.8;
}

/* ===== Description Section ===== */
.description-section {
    max-width: 600px;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.description strong {
    color: var(--color-primary-light);
    font-weight: 600;
}

/* ===== Streaming Section ===== */
.streaming-section {
    width: 100%;
    max-width: 600px;
    text-align: center;
    padding: var(--spacing-lg) 0;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.streaming-title {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.streaming-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.streaming-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--gradient-button);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.streaming-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: var(--transition-slow);
}

.streaming-btn:hover::before {
    left: 100%;
}

.streaming-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-button);
}

.streaming-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Platform-specific colors on hover */
.streaming-btn.spotify:hover {
    background: linear-gradient(135deg, #1DB954 0%, #1ed760 100%);
    border-color: #1DB954;
    box-shadow: 0 10px 30px rgba(29, 185, 84, 0.4);
}

.streaming-btn.youtube:hover {
    background: linear-gradient(135deg, #FF0000 0%, #ff4444 100%);
    border-color: #FF0000;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.4);
}

.streaming-btn.facebook:hover {
    background: linear-gradient(135deg, #1877F2 0%, #4a9df8 100%);
    border-color: #1877F2;
    box-shadow: 0 10px 30px rgba(24, 119, 242, 0.4);
}

/* ===== Spanish Version Section ===== */
.spanish-section {
    margin: var(--spacing-xl) 0;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.spanish-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-medium);
}

.spanish-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.spanish-icon {
    font-size: 1.5rem;
}

.spanish-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

.spanish-text a {
    color: var(--color-primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.spanish-text a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 107, 179, 0.5);
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.8s ease-out 1s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-text a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-text a:hover {
    color: var(--color-primary-light);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .hero {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }

    .cover-section {
        max-width: 90%;
    }

    .description {
        font-size: 1rem;
    }

    .streaming-links {
        flex-direction: column;
        align-items: center;
    }

    .streaming-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .spanish-badge {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xs);
    }
}

@media (max-width: 480px) {
    .artist-name {
        font-size: 2rem;
    }

    .song-title {
        font-size: 1.25rem;
    }

    .streaming-title {
        font-size: 1.25rem;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 4px;
}