/**
 * DJ Kill Switch Module - Styles
 * Botones KILL para cortar bandas de EQ
 */

/* ===============================================
   CONTENEDOR KILL SWITCHES
   =============================================== */
.kill-switches-container {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px;
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.9) 0%, rgba(10, 10, 15, 0.95) 100%);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 8px rgba(0, 0, 0, 0.5);
}

.kill-switches-label {
    font-size: 7px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 2px;
}

/* ===============================================
   BOTONES KILL
   =============================================== */
.kill-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 20px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;

    background: linear-gradient(180deg, #2a2a35 0%, #1a1a22 100%);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.kill-btn:hover {
    background: linear-gradient(180deg, #3a3a45 0%, #2a2a32 100%);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Estado KILLED - Rojo */
.kill-btn.active,
.kill-btn.killed {
    background: linear-gradient(180deg, #5a1a1a 0%, #3d0d0d 100%);
    color: #ff4444;
    border-color: rgba(255, 68, 68, 0.5);
    box-shadow:
        0 0 10px rgba(255, 68, 68, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: kill-pulse 0.8s ease-in-out infinite;
}

.kill-btn.active:hover,
.kill-btn.killed:hover {
    background: linear-gradient(180deg, #6a2a2a 0%, #4d1d1d 100%);
    box-shadow:
        0 0 15px rgba(255, 68, 68, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ===============================================
   COLORES POR BANDA
   =============================================== */
/* LOW - Rojo/Naranja */
.kill-btn[data-band="low"] {
    border-left: 2px solid rgba(255, 100, 50, 0.4);
}

.kill-btn[data-band="low"].active {
    border-left-color: #ff6432;
    color: #ff6432;
}

/* MID - Verde */
.kill-btn[data-band="mid"] {
    border-left: 2px solid rgba(100, 255, 100, 0.4);
}

.kill-btn[data-band="mid"].active {
    border-left-color: #64ff64;
    color: #ff4444;
}

/* HIGH - Azul */
.kill-btn[data-band="high"] {
    border-left: 2px solid rgba(100, 150, 255, 0.4);
}

.kill-btn[data-band="high"].active {
    border-left-color: #6496ff;
    color: #ff4444;
}

/* ===============================================
   LED INDICADOR
   =============================================== */
.kill-led {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(80, 80, 90, 0.5);
    transition: all 0.15s ease;
}

.kill-led.active {
    background: #ff4444;
    box-shadow: 0 0 6px rgba(255, 68, 68, 0.8);
}

/* ===============================================
   ANIMACIÓN KILL PULSE
   =============================================== */
@keyframes kill-pulse {
    0%, 100% {
        box-shadow:
            0 0 10px rgba(255, 68, 68, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow:
            0 0 20px rgba(255, 68, 68, 0.7),
            0 0 30px rgba(255, 68, 68, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

/* ===============================================
   EQ KNOB ESTADO KILLED
   =============================================== */
.eq-knob.killed {
    opacity: 0.3;
    filter: grayscale(100%);
}

.eq-knob.killed::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff4444;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(255, 68, 68, 0.8);
}

/* ===============================================
   POSICIONAMIENTO
   =============================================== */
/* Deck A - A la izquierda del EQ */
.deck-a .kill-switches-container {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
}

/* Deck B - A la derecha del EQ */
.deck-b .kill-switches-container {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
}

/* ===============================================
   LAYOUT HORIZONTAL (alternativo)
   =============================================== */
.kill-switches-container.horizontal {
    flex-direction: row;
    gap: 2px;
}

.kill-switches-container.horizontal .kill-btn {
    width: 28px;
    height: 18px;
    font-size: 7px;
}

/* ===============================================
   RESPONSIVE
   =============================================== */
@media (max-width: 768px) {
    .kill-switches-container {
        padding: 2px;
        gap: 2px;
    }

    .kill-btn {
        width: 30px;
        height: 18px;
        font-size: 7px;
    }

    .kill-switches-label {
        font-size: 6px;
    }

    .deck-a .kill-switches-container,
    .deck-b .kill-switches-container {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
    }
}

/* ===============================================
   INTEGRACIÓN CON EQ PANEL
   =============================================== */
/* Si el Kill Switch está activo, mostrar X sobre el fader EQ */
.eq-fader-container[data-killed="true"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 0, 0, 0.1);
    pointer-events: none;
    z-index: 10;
}

.eq-fader-container[data-killed="true"]::after {
    content: 'KILL';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 10px;
    font-weight: bold;
    color: rgba(255, 68, 68, 0.8);
    pointer-events: none;
    z-index: 11;
}
