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

body {
    font-family: 'Inter', sans-serif;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.category-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    aspect-ratio: 16 / 9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.category-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}
.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
}
.category-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0.75rem;
    z-index: 10;
    width: 100%;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}
.song-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}
.song-item.active {
    background: rgba(230, 0, 35, 0.08); /* Tint color */
    border-color: rgba(230, 0, 35, 0.2);
}

.playing-bars {
    display: flex;
    gap: 3px;
    height: 14px;
    align-items: flex-end;
}
.playing-bars .bar {
    width: 3px;
    background: #ec4899; /* pink-500 to match gradient */
    animation: bounce 0.6s ease infinite alternate;
    border-radius: 2px;
}
.playing-bars .bar:nth-child(2) { animation-delay: 0.15s; }
.playing-bars .bar:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
    0% { height: 20%; background: #ec4899; }
    100% { height: 100%; background: #06b6d4; }
}

/* Safe area inset for PWA on modern phones */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}

/* Scrubbing Hit Area Improvement */
#progressBarContainer {
    position: relative;
    height: 4px; /* default visual height */
}

#progressBarContainer::before {
    content: '';
    position: absolute;
    top: -15px; /* increase grab area 15px up */
    bottom: -15px; /* increase grab area 15px down */
    left: 0;
    right: 0;
    z-index: 10;
}

/* Liked Heart Animations */
.list-like-btn {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.list-like-btn:active {
    transform: scale(1.4);
}
.list-like-btn:hover {
    filter: drop-shadow(0 0 5px rgba(236, 72, 153, 0.3));
}


/* Saweria Marquee Styles */
.saweria-marquee {
    background: rgba(249, 115, 22, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
    height: 30px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 50;
    pointer-events: none;
}

.saweria-marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 30s linear infinite;
    gap: 2rem;
    padding-left: 100%;
}

.saweria-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fb923c;
    font-size: 0.75rem;
    font-weight: 600;
}

.saweria-item span {
    color: white;
    font-weight: 400;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Saweria Toast Notification */
.saweria-toast-container {
    position: fixed;
    top: 50px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.saweria-toast {
    background: rgba(31, 31, 31, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-left: 4px solid #f97316;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 350px;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.saweria-toast.show {
    transform: translateX(0);
}

.saweria-toast-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.saweria-toast-body {
    flex-grow: 1;
}

.saweria-toast-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #f97316;
}

.saweria-toast-msg {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2;
    margin-top: 2px;
}

.saweria-toast-amount {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    background: rgba(249, 115, 22, 0.2);
    padding: 2px 8px;
    border-radius: 99px;
}

/* Missing Animations for Saweria & UI */
@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes zoom-in {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes slide-in-from-right {
    0% { transform: translateX(20px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.animate-in {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}
.fade-in { animation-name: fade-in; }
.zoom-in { animation-name: zoom-in; }
.slide-in-from-right { animation-name: slide-in-from-right; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
