/**
 * Estilos Frontend Silenced Tribe Voice FX - Diseño Compacto Pro
 */

:root {
    --st-bg: #0a0a0c;
    --st-panel: #141417;
    --st-accent: #00ff88;
    --st-accent-alt: #ff0088;
    --st-text: #e0e0e0;
    --st-text-dim: #888;
    --st-border: #2a2a2e;
    --st-radius: 4px;
}

.st-voice-fx-container {
    background: var(--st-bg);
    color: var(--st-text);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    max-width: 900px;
    margin: 20px auto;
    padding: 15px;
    border-radius: var(--st-radius);
    border: 1px solid var(--st-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

/* Header */
.st-voice-fx-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--st-border);
}

.st-brand {
    font-weight: 900;
    letter-spacing: -0.5px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.st-brand .silenced { 
    color: #ffffff;
    letter-spacing: 1px;
}

.st-brand .tribe { 
    color: var(--st-accent);
    position: relative;
}

.st-brand .tribe::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--st-accent);
    box-shadow: 0 0 10px var(--st-accent);
}

.st-brand .fx-tag {
    font-size: 0.7rem;
    background: linear-gradient(90deg, var(--st-accent-alt), #ff4da6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-left: 10px;
    box-shadow: 0 0 15px rgba(255, 0, 136, 0.4);
    transform: skewX(-10deg);
}

.st-status-pill {
    font-size: 0.75rem;
    background: #1a1a1e;
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--st-accent);
    border: 1px solid rgba(0,255,136,0.2);
}

/* Layout */
.st-main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 15px;
}

@media (max-width: 768px) {
    .st-main-layout { grid-template-columns: 1fr; }
}

.st-panel {
    background: var(--st-panel);
    padding: 12px;
    border-radius: var(--st-radius);
    border: 1px solid var(--st-border);
    margin-bottom: 15px;
}

.st-panel h3 {
    font-size: 0.75rem;
    color: var(--st-text-dim);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Controls */
.st-select, .st-select-sm {
    width: 100%;
    background: #1a1a1e;
    color: #fff;
    border: 1px solid var(--st-border);
    padding: 8px;
    border-radius: var(--st-radius);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.st-button-row {
    display: flex;
    gap: 8px;
}

.st-btn {
    flex: 1;
    background: #2a2a2e;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: var(--st-radius);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.st-btn:hover:not(:disabled) { background: #3a3a3e; }
.st-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.btn-record.recording { background: var(--st-accent-alt); animation: pulse 1.5s infinite; }
.btn-play.playing { background: var(--st-accent); color: #000; }

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

.recording-status {
    text-align: center;
    margin-top: 8px;
}

.recording-time {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--st-accent-alt);
}

/* Visualizer */
.visualizer-panel {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050505;
}

#st-voice-fx-waveform {
    width: 100%;
    height: 100%;
}

/* Monitor */
.st-monitor-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.st-monitor-row {
    display: flex;
    gap: 8px;
}

.st-monitor-row .btn-play {
    flex: 3;
}

.st-monitor-row .btn-stop {
    flex: 1;
    background: #331a1a;
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.2);
}

.st-monitor-row .btn-stop:hover:not(:disabled) {
    background: #4d1a1a;
    color: #ff8080;
}

.btn-download {
    background: transparent;
    border: 1px solid var(--st-accent);
    color: var(--st-accent);
}

.btn-download:hover:not(:disabled) {
    background: var(--st-accent);
    color: #000;
}

/* Effects Rack */
.effects-list {
    max-height: 400px;
    overflow-y: auto;
}

.st-fx-card {
    background: #1a1a1e;
    padding: 10px;
    border-radius: var(--st-radius);
    margin-bottom: 8px;
    border-left: 3px solid var(--st-border);
}

.st-fx-card:has(input:checked) {
    border-left-color: var(--st-accent);
}

.st-fx-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    cursor: pointer;
}

.st-fx-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.st-slider-group {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.st-slider-group label {
    font-size: 0.65rem;
    color: var(--st-text-dim);
    min-width: 60px;
    text-transform: uppercase;
}

input[type="range"] {
    flex: 1;
    accent-color: var(--st-accent);
}

.v-badge {
    font-size: 0.7rem;
    background: #2a2a2e;
    padding: 2px 6px;
    border-radius: 3px;
    min-width: 30px;
    text-align: center;
}

.st-apply-area {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.btn-apply { background: var(--st-accent); color: #000; }
.btn-apply:hover:not(:disabled) { background: #00dd77; }

/* Overlay & Toasts */
.st-voice-fx-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.st-loader-content { text-align: center; }
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--st-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.st-error-toast {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4444;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.85rem;
    z-index: 110;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.st-voice-fx-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 0.7rem;
    color: var(--st-text-dim);
}

.st-voice-fx-footer a { color: var(--st-accent); text-decoration: none; }
