/* Import Font Keren: Space Grotesk (Judul) & Inter (Isi) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;700&display=swap');

/* --- SETTINGAN DASAR --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    /* Mencegah scroll ke samping */
    overflow-x: hidden; 
}

/* Font Khusus Judul biar estetik kayak referensi */
h1, h2, h3, .font-heading {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em; /* Biar hurufnya agak rapat (Tight) */
}

/* Background Grid Halus */
.bg-grid-pattern {
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-position: center top;
}

/* --- HACK: MENGHILANGKAN WARNING KUNING --- */
/* Ini akan menyembunyikan element warning dari Tailwind CDN */
body > div[style*="background-color: #FBF3D6"] {
    display: none !important;
}
#tail-status { display: none !important; }

/* Efek Tombol Menu */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: black;
    transition: width 0.3s;
}
.nav-link:hover::after {
    width: 100%;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    overflow-x: hidden; 
}

h1, h2, h3, .font-heading {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
}

/* Background Grid */
.bg-grid-pattern {
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-position: center top;
}

/* Hilangkan Warning Tailwind */
body > div[style*="background-color: #FBF3D6"], #tail-status {
    display: none !important;
}

/* Style Input Search & Date */
.custom-input {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}
.custom-input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

/* Footer Link Style */
.footer-link {
    color: #64748b;
    font-size: 0.875rem;
    transition: color 0.2s;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}
.footer-link:hover {
    color: #0f172a;
    text-decoration: underline;
}

/* --- UPDATE NAVBAR MEWAH --- */

/* Efek Kaca (Glassmorphism) */
.nav-glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Animasi Sidebar Mobile */
.sidebar-enter {
    transform: translateX(0%);
}
.sidebar-exit {
    transform: translateX(100%);
}
.sidebar-transition {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Link Hover Effect */
.nav-item {
    position: relative;
    color: #64748b;
    transition: color 0.2s;
}
.nav-item:hover, .nav-item.active {
    color: #0f172a;
    font-weight: 600;
}
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #0f172a;
    border-radius: 50%;
}

/* --- PROFILE MODAL & MUSIC PLAYER --- */

/* Animasi Slide Up untuk Profile */
.slide-up-enter {
    transform: translateY(100%);
}
.slide-up-active {
    transform: translateY(0%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-up-exit {
    transform: translateY(100%);
    transition: transform 0.3s ease-in;
}

/* Music Player Glass Effect */
.player-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

/* Animasi Disk Berputar (Saat Musik Play) */
.spin-slow {
    animation: spin 8s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Visualizer Bars Animasi */
.bar {
    width: 3px;
    background: #3b82f6;
    border-radius: 99px;
    animation: bounce 1s infinite ease-in-out;
}
.bar:nth-child(2) { animation-delay: 0.1s; height: 12px; }
.bar:nth-child(3) { animation-delay: 0.2s; height: 16px; }
.bar:nth-child(4) { animation-delay: 0.3s; height: 10px; }

@keyframes bounce {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1.2); }
}

/* --- FITUR BARU: SORTING, SEARCH MEWAH, RATING --- */

/* 1. Search Bar Mewah (Floating Glass) */
.search-container-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 8px;
    display: flex;
    gap: 8px;
    transition: all 0.3s ease;
}
.search-container-glass:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.input-transparent {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    color: #0f172a;
    font-weight: 500;
}
.input-transparent::placeholder { color: #94a3b8; }

/* 2. Tab Filter (Baru | Populer | Lama) */
.sort-tab {
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.sort-tab:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.sort-tab.active {
    background: #0f172a;
    color: white;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* 3. Rating Bintang */
.star-btn {
    color: #cbd5e1; /* Abu-abu (kosong) */
    transition: transform 0.1s, color 0.2s;
    cursor: pointer;
}
.star-btn:hover { transform: scale(1.2); }
.star-btn.filled {
    color: #fbbf24; /* Emas (terisi) */
    fill: #fbbf24;
}
