/**
 * DJ AutoMix Pro Styles
 * Estilos para el sistema profesional de mezcla automática
 */

/* ==========================================
   BADGE PRO EN BOTÓN AUTO
   ========================================== */

#autoMixBtn {
    position: relative;
}

#autoMixBtn .pro-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 7px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
}

#autoMixBtn.active .pro-badge {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    animation: proBadgePulse 2s ease-in-out infinite;
}

@keyframes proBadgePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* ==========================================
   BOTÓN AUTO ACTIVO - ESTILO PRO
   ========================================== */

#autoMixBtn.active {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow:
        0 0 15px rgba(34, 197, 94, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: autoMixActivePro 3s ease-in-out infinite;
}

@keyframes autoMixActivePro {
    0%, 100% {
        box-shadow:
            0 0 15px rgba(34, 197, 94, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 0 25px rgba(34, 197, 94, 0.7),
            0 0 40px rgba(34, 197, 94, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* ==========================================
   SELECTOR DE FADE TIME (BEATS)
   ========================================== */

#autoDjFadeTime {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#autoDjFadeTime:hover {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(0, 0, 0, 0.6);
}

#autoDjFadeTime:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

#autoDjFadeTime option {
    background: #1a1a2e;
    color: #fff;
    padding: 5px;
}

/* ==========================================
   INDICADOR DE TRANSICIÓN EN PROGRESO
   ========================================== */

.automix-transition-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 20px 40px;
    z-index: 9000;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.automix-transition-indicator.visible {
    opacity: 1;
}

.automix-transition-indicator .title {
    color: #22c55e;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.automix-transition-indicator .progress-bar {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.automix-transition-indicator .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.automix-transition-indicator .info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    margin-top: 8px;
}

/* ==========================================
   INDICADOR DE BEAT SYNC EN DECK
   ========================================== */

.deck-panel.beat-synced::after {
    content: 'SYNCED';
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    font-size: 8px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(34, 197, 94, 0.4);
    letter-spacing: 0.5px;
}

/* ==========================================
   INDICADOR DE PREPARACIÓN DE TRANSICIÓN
   ========================================== */

.deck-panel.preparing-transition {
    border-color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.deck-panel.preparing-transition::before {
    content: 'NEXT UP';
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    font-size: 8px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(245, 158, 11, 0.4);
    letter-spacing: 0.5px;
    animation: nextUpPulse 1.5s ease-in-out infinite;
}

@keyframes nextUpPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==========================================
   NOTIFICACIÓN DE AUTOMIX PRO
   ========================================== */

.notification.automix-pro {
    border-left: 4px solid #22c55e;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.15), transparent);
}

.notification.automix-pro::before {
    content: 'PRO';
    background: #22c55e;
    color: #000;
    font-size: 8px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 2px;
    margin-right: 8px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    #autoMixBtn .pro-badge {
        font-size: 6px;
        padding: 1px 3px;
        top: -4px;
        right: -4px;
    }

    .automix-transition-indicator {
        padding: 15px 25px;
    }

    .automix-transition-indicator .progress-bar {
        width: 150px;
    }
}
