/* CATS Rodeo Voice Recorder - Main Stylesheet */

:root {
    --primary-color: #DC2626;
    --secondary-color: #F59E0B;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(192, 192, 192, 0.2);
}

* { box-sizing: border-box; }

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.app-header {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.logo { height: 40px; width: auto; }

.hero-section { padding: 3rem 0 2rem; text-align: center; }

.hero-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.hero-subtitle { color: var(--text-secondary); font-size: 1.1rem; }

.intro-text {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.main-content { padding-bottom: 4rem; }

.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.step { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }

.step-number {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 0.9rem;
    transition: all 0.3s;
}

.step.active .step-number, .step.completed .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.step-label { font-size: 0.75rem; color: var(--text-muted); }
.step.active .step-label { color: var(--text-primary); }
.step-line { width: 40px; height: 2px; background: var(--border-color); margin-bottom: 1.5rem; }

.recorder-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-section { margin-bottom: 1.5rem; }
.form-label { color: var(--text-secondary); font-weight: 500; margin-bottom: 0.5rem; }

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

.form-control::placeholder { color: var(--text-muted); }

.status-section { text-align: center; margin-bottom: 1.5rem; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-badge.recording {
    background: rgba(220, 38, 38, 0.2);
    color: var(--primary-color);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.recording-timer {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'SF Mono', Monaco, monospace;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.visualizer-container {
    height: 80px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

#visualizer { width: 100%; height: 100%; }

.controls-section { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }

.btn-record {
    background: linear-gradient(135deg, var(--primary-color) 0%, #B91C1C 100%);
    border: none; color: white;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    display: flex; align-items: center; gap: 0.5rem;
    transition: all 0.3s;
}

.btn-record:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
    color: white;
}

.btn-stop {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    border: none; color: white;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    display: flex; align-items: center; gap: 0.5rem;
}

.btn-stop:hover { background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%); color: white; }

.playback-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.playback-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}

.audio-player { width: 100%; margin-bottom: 1rem; }
.playback-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-upload {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none; color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    display: flex; align-items: center; gap: 0.5rem;
}

.btn-upload:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.4);
    color: white;
}

.btn-upload:disabled { opacity: 0.5; cursor: not-allowed; }

.upload-progress { text-align: center; padding: 2rem; }
.upload-text { color: var(--text-secondary); margin: 1rem 0; }

.progress { height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 100px; overflow: hidden; }
.progress-bar { background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); }

.success-section { text-align: center; padding: 2rem; }
.success-icon { font-size: 4rem; margin-bottom: 1rem; }
.success-section h3 { color: #22c55e; margin-bottom: 0.5rem; }
.success-subtitle { color: var(--text-muted); font-size: 0.9rem; }

.error-section { text-align: center; padding: 2rem; }
.error-icon { font-size: 3rem; color: #ef4444; margin-bottom: 1rem; }

.browser-notice {
    text-align: center; padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    margin-top: 2rem;
    color: #fbbf24;
}

.app-footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

/* Admin Styles */
.admin-body { background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%); min-height: 100vh; }

.admin-header {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(10px);
}

.admin-title { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); margin: 0; }

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.admin-table { color: var(--text-primary); }
.admin-table th { border-bottom: 1px solid var(--border-color); color: var(--text-secondary); font-weight: 500; padding: 1rem 0.75rem; }
.admin-table td { border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding: 1rem 0.75rem; vertical-align: middle; }
.admin-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.login-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
}

.login-title { text-align: center; margin-bottom: 2rem; }
.login-title i { font-size: 3rem; color: var(--primary-color); display: block; margin-bottom: 1rem; }
.login-title h2 { margin: 0; color: var(--text-primary); }

@media (max-width: 576px) {
    .hero-title { font-size: 2rem; }
    .recorder-card { padding: 1.5rem; border-radius: 16px; }
    .playback-actions { flex-direction: column; }
    .playback-actions .btn { width: 100%; }
}
