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

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Vibrant Dark Theme */
    --background: 240 10% 4%;
    --foreground: 0 0% 98%;

    --card: 240 10% 6%;
    --card-foreground: 0 0% 98%;

    --popover: 240 10% 6%;
    --popover-foreground: 0 0% 98%;

    /* Electric Purple Primary */
    --primary: 265 89% 66%;
    --primary-foreground: 210 40% 98%;

    --secondary: 240 6% 15%;
    --secondary-foreground: 0 0% 98%;

    --muted: 240 6% 15%;
    --muted-foreground: 240 5% 65%;

    /* Cyan Accent */
    --accent: 190 90% 50%;
    --accent-foreground: 240 10% 4%;

    --destructive: 0 84% 60%;
    --destructive-foreground: 210 40% 98%;

    --border: 240 6% 15%;
    --input: 240 6% 15%;
    --ring: 265 89% 66%;

    --radius: 0.75rem;
}

@layer base {
    body {
        @apply bg-background text-foreground antialiased font-body;
    }

    h1, h2, h3, h4, h5, h6 {
        @apply font-display font-bold tracking-tight;
    }
}

/* Custom Visualizer Animation */
@keyframes equalizer {
    0% { height: 20%; }
    50% { height: 100%; }
    100% { height: 20%; }
}

.visualizer-bar {
    animation: equalizer 1s ease-in-out infinite;
}

.visualizer-bar:nth-child(1) { animation-duration: 0.8s; }
.visualizer-bar:nth-child(2) { animation-duration: 0.7s; }
.visualizer-bar:nth-child(3) { animation-duration: 1.1s; }
.visualizer-bar:nth-child(4) { animation-duration: 0.9s; }
.visualizer-bar:nth-child(5) { animation-duration: 1.2s; }

/* Sortable ghost */
.sortable-ghost {
    opacity: 0.4;
    transform: scale(1.05);
}

.sortable-drag {
    opacity: 0;
}

/* Card styles */
.card {
    background-color: hsl(var(--card) / 0.8);
    border: 1px solid hsl(var(--primary) / 0.2);
    border-radius: 0.75rem;
    backdrop-filter: blur(24px);
}

.song-card {
    background-color: hsl(var(--card) / 0.5);
    border: 1px solid hsl(var(--border) / 0.4);
    border-radius: 0.75rem;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
}

.song-card:hover {
    background-color: hsl(var(--card));
    border-color: hsl(var(--border) / 0.8);
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-ghost {
    background-color: transparent;
    color: hsl(var(--muted-foreground));
}

.btn-ghost:hover {
    background-color: hsl(var(--muted) / 0.5);
    color: hsl(var(--foreground));
}

input, textarea {
    background-color: hsl(var(--background) / 0.5);
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: hsl(var(--foreground));
    width: 100%;
    font-family: var(--font-body);
}

.hidden {
    display: none;
}

/* Loading removed - now handled by Tailwind classes */

/* Admin button styles */
.admin-btn {
    padding: 0.5rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    border-radius: 0.375rem;
    color: hsl(var(--muted-foreground));
    transition: all 0.2s;
}

.admin-btn:hover {
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.admin-btn.delete:hover {
    background-color: hsl(var(--destructive) / 0.1);
    color: hsl(var(--destructive));
}

.collapsible-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-content.closed {
    max-height: 0;
}

.collapsible-content.open {
    max-height: 2000px;
}

#submit-header.collapsed {
    padding-bottom: 1.5rem;
}