:root {
    --navy-dark: #020617;
    --navy-blue: #0f172a;
    --indigo-vivid: #6366f1;
    --indigo-glow: #818cf8;
    --pink-vivid: #ec4899;
    --pink-glow: #f472b6;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-card-bg: rgba(15, 23, 42, 0.6);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
}

body {
    background-color: var(--navy-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Background Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: blob-float 15s infinite alternate ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--indigo-vivid) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--pink-vivid) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
}

@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.1); }
}

/* Container */
.app-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Header */
.header {
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    color: var(--indigo-glow);
    filter: drop-shadow(0 0 10px var(--indigo-vivid));
}

.logo-text {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 50%, var(--indigo-glow) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

/* Upload Area */
.glass-card {
    background: var(--glass-card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.upload-card {
    border-style: solid;
    cursor: pointer;
}

.upload-card.dragover {
    border-color: var(--indigo-vivid);
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.02);
}

.upload-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--glass-bg);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.upload-card:hover .upload-icon-wrapper {
    transform: translateY(-5px);
    border-color: var(--indigo-glow);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.upload-icon {
    width: 40px;
    height: 40px;
    color: var(--indigo-glow);
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.file-info-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--indigo-vivid);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    display: none; /* Shown via JS */
}

.chip-icon {
    width: 16px;
    height: 16px;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.primary-btn {
    background: linear-gradient(135deg, var(--indigo-vivid), var(--pink-vivid));
    color: white;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.6);
}

.secondary-btn {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
    margin-top: 2rem;
}

.secondary-btn:hover {
    background: var(--glass-border);
    border-color: var(--text-secondary);
}

.supported-formats {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-top: 2rem;
}

/* Loading Waves */
.waveform-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 80px;
    margin-bottom: 2rem;
}

.bar {
    width: 8px;
    height: 20px;
    background: var(--indigo-glow);
    border-radius: 4px;
    animation: wave 1s infinite alternate ease-in-out;
}

.bar:nth-child(2) { animation-delay: 0.1s; background: #a78bfa; }
.bar:nth-child(3) { animation-delay: 0.2s; background: #c084fc; }
.bar:nth-child(4) { animation-delay: 0.3s; background: #e879f9; }
.bar:nth-child(5) { animation-delay: 0.4s; background: #f472b6; }
.bar:nth-child(6) { animation-delay: 0.5s; background: #fb7185; }
.bar:nth-child(7) { animation-delay: 0.6s; background: #fda4af; }
.bar:nth-child(8) { animation-delay: 0.7s; background: #fecdd3; }

@keyframes wave {
    0% { height: 20px; }
    100% { height: 70px; }
}

/* Result Card */
.song-header {
    margin-bottom: 2.5rem;
}

.song-artwork-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto;
}

#song-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.floating-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--indigo-vivid);
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    font-weight: 800;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    animation: float 3s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.artist-name {
    font-size: 1.3rem;
    color: var(--pink-glow);
    font-weight: 600;
}

.song-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    min-width: 110px;
    transition: var(--transition);
}

.link-item:hover {
    transform: translateY(-8px);
    background: var(--glass-border);
    color: var(--text-primary);
    border-color: var(--indigo-glow);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.link-item i {
    width: 32px;
    height: 32px;
}

.link-item span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.5;
}

/* Utils */
.hidden { display: none !important; }

.animate-in {
    animation: slide-up 0.8s cubic-bezier(0, 0.5, 0.5, 1) forwards;
    opacity: 0;
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .logo-text { font-size: 2rem; }
    .glass-card { padding: 3rem 1.5rem; }
    .song-links { gap: 0.75rem; }
    .link-item { min-width: 90px; padding: 1rem; }
}
