/**
 * Asomera — Eigenes Stylesheet
 * Ergaenzend zu Tailwind CSS
 */

/* Grain-Textur Overlay fuer den Hintergrund */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0d0d;
}
::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a017;
}

/* Bento-Grid Kacheln */
.bento-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid #2a2a2a;
    background: #1a1a1a;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.bento-card:hover {
    border-color: #d4a017;
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(212, 160, 23, 0.1);
}
.bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
}

/* Liquid Glass Effekt */
.glass {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Kinetic Typography */
.kinetic-text {
    transition: font-weight 0.3s ease, letter-spacing 0.3s ease;
}
.kinetic-text:hover {
    font-weight: 800;
    letter-spacing: 0.05em;
}

/* Song-Zeile */
.song-row {
    transition: background-color 0.2s ease;
    cursor: pointer;
}
.song-row:hover {
    background-color: rgba(212, 160, 23, 0.08);
}
.song-row.playing {
    background-color: rgba(212, 160, 23, 0.12);
}

/* Player-Bar Animation */
#playerBar {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pulse Animation fuer aktiven Song */
@keyframes pulse-accent {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.pulse-accent {
    animation: pulse-accent 2s ease-in-out infinite;
}

/* Flash-Nachrichten */
.flash-message {
    animation: slideDown 0.4s ease-out, fadeOut 0.4s ease-in 4s forwards;
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Responsive Anpassungen */
@media (max-width: 640px) {
    .bento-card {
        border-radius: 0.75rem;
    }
}
