/* Robinhood-Inspired CSS for Clubhouse AI Music Battle App */

/* Robinhood Color Palette */
:root {
    --rh-black: #0b0f0e;
    --rh-dark-gray: #1a1a1a;
    --rh-gray: #2c2c2e;
    --rh-light-gray: #3a3a3c;
    --rh-lime: #00d09c;
    --rh-lime-hover: #00b889;
    --rh-lime-dark: #009970;
    --rh-text-primary: #ffffff;
    --rh-text-secondary: #8e8e93;
    --rh-text-tertiary: #636366;
    --rh-accent: #ff6b35;
    --rh-red: #ff453a;
    --rh-purple: #9945ff;
    --rh-purple-hover: #7d28d1;
}

/* Loading animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom scrollbar - Robinhood style */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--rh-dark-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--rh-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rh-light-gray);
}

/* Audio player styling - Robinhood theme */
audio {
    filter: brightness(0.8) contrast(1.2);
    background: var(--rh-gray);
    border-radius: 8px;
}

audio::-webkit-media-controls-panel {
    background-color: var(--rh-gray);
}

/* Button disabled state */
button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--rh-light-gray) !important;
}

/* File input styling */
input[type="file"] {
    background: var(--rh-gray);
    border: 1px solid var(--rh-light-gray);
    border-radius: 8px;
    color: var(--rh-text-primary);
}

/* Robinhood gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--rh-lime) 0%, var(--rh-lime-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Battle progress bar - Robinhood style */
.battle-progress {
    background: linear-gradient(90deg, var(--rh-lime) 0%, var(--rh-accent) 100%);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
}

/* Voting animation */
.vote-pulse {
    animation: votePulse 0.6s ease-out;
}

@keyframes votePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(0, 208, 156, 0.5);
    }
    100% {
        transform: scale(1);
    }
}

/* Robinhood button styles */
.btn-primary {
    background: var(--rh-lime);
    color: var(--rh-black);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--rh-lime-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--rh-gray);
    color: var(--rh-text-primary);
    border: 1px solid var(--rh-light-gray);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--rh-light-gray);
    border-color: var(--rh-lime);
}

.btn-solana {
    background: var(--rh-purple);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
}

.btn-solana:hover {
    background: var(--rh-purple-hover);
    transform: translateY(-1px);
}

/* Card styling */
.rh-card {
    background: var(--rh-gray);
    border: 1px solid var(--rh-light-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.rh-card:hover {
    border-color: var(--rh-lime);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 208, 156, 0.15);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .battle-card {
        margin-bottom: 1rem;
    }
    
    #battleModal .max-w-4xl {
        max-width: 95%;
        margin: 2rem;
    }
    
    .grid.md\\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Wallet connection status indicator */
.wallet-indicator {
    position: relative;
}

.wallet-indicator::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #1f2937;
}

/* Music visualizer mockup */
.music-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    gap: 2px;
}

.visualizer-bar {
    width: 3px;
    background: linear-gradient(to top, #3b82f6, #8b5cf6);
    animation: musicBars 1s ease-in-out infinite alternate;
}

.visualizer-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.visualizer-bar:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.visualizer-bar:nth-child(3) { height: 25px; animation-delay: 0.2s; }
.visualizer-bar:nth-child(4) { height: 40px; animation-delay: 0.3s; }
.visualizer-bar:nth-child(5) { height: 15px; animation-delay: 0.4s; }

@keyframes musicBars {
    0% { height: 10px; }
    100% { height: 40px; }
}