/* BGM Ranks - Premium Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
    /* Color Palette */
    --bg-main: #0a0b0e;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(15, 17, 23, 0.7);
    --accent-primary: #8b5cf6; /* Vivid Purple */
    --accent-secondary: #06b6d4; /* Electric Blue */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.1);
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.3);
}

/* Base Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

nav.scrolled {
    background: rgba(10, 11, 14, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-glass);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Sections */
.section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.search-box i {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-right: 1.2rem;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-main);
    flex: 1;
    font-size: 1.1rem;
    outline: none;
    padding-right: 1rem;
}

.search-box button {
    padding: 1rem 2.5rem;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-tags a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.hero-tags a:hover {
    color: var(--text-main);
}

/* Genre Grid */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.genre-item {
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
}

.genre-item i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.genre-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.genre-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Track List */
.track-list {
    padding: 2rem;
}

.track-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.track-row:last-child {
    border-bottom: none;
}

.track-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.track-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 2;
}

.play-btn {
    width: 45px;
    height: 45px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.track-details {
    display: flex;
    flex-direction: column;
}

.track-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.track-artist {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.badge-mini {
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.track-waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 3;
    padding: 0 4rem;
}

.waveform-bar {
    width: 3px;
    background: var(--text-muted);
    border-radius: 2px;
}

.track-actions {
    display: flex;
    gap: 1rem;
    flex: 1;
    justify-content: flex-end;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-icon:hover {
    color: var(--text-main);
    border-color: var(--text-main);
}

/* CTA Box */
.cta-box {
    padding: 6rem;
    text-align: center;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.2), transparent);
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.cta-box p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border-glass);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    gap: 6rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: var(--transition-smooth);
}

.link-group a:hover {
    color: var(--text-main);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
}

/* Background Cubic Animation */
.bg-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-main) 80%);
    pointer-events: none;
    z-index: 1;
}

.cube-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.cube {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: rotate 20s infinite linear;
    filter: blur(80px);
}

.cube:nth-child(1) { top: -100px; left: -100px; animation-duration: 15s; }
.cube:nth-child(2) { bottom: -150px; right: -50px; animation-duration: 25s; }
.cube:nth-child(3) { top: 40%; left: 50%; width: 500px; height: 500px; animation-duration: 30s; }

@keyframes rotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 2.2rem; }
    .track-waveform { display: none; }
    .footer-content { flex-direction: column; gap: 3rem; }
    .footer-links { gap: 3rem; flex-wrap: wrap; }
    .cta-box { padding: 3rem 1.5rem; }
    .cta-box h2 { font-size: 2.2rem; }
}
