﻿/* ==========================================================================
   MÓDULO DE COOLDOWN & BLOQUEO CEREMONIAL (MÁQUINA ARCANA)
   ========================================================================== */

/* 1. Estado Bloqueado en el Input y Área de Chat */
.input-arcano.cooldown-locked {
    background: rgba(10, 4, 18, 0.85) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8) !important;
    filter: grayscale(0.6);
}

.btn-submit-clear.btn-cooldown-active {
    background: linear-gradient(135deg, #2a1138 0%, #150824 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    color: #ffd700 !important;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2) !important;
    animation: pulseCooldownGlow 2.5s infinite alternate ease-in-out;
}

@keyframes pulseCooldownGlow {
    0% {
        box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
        border-color: rgba(212, 175, 55, 0.3);
    }

    100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.55);
        border-color: #ffd700;
    }
}

/* 2. Banner de Estado del Cooldown en el Chat */
.cooldown-banner-bubble {
    background: radial-gradient(circle at 50% 0%, rgba(30, 12, 50, 0.95), rgba(10, 5, 20, 0.98)) !important;
    border: 1px dashed rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(177, 94, 255, 0.15) !important;
    border-radius: 12px;
    padding: 1.2rem;
    margin: 1rem 0;
    text-align: center;
    backdrop-filter: blur(10px);
}

.cooldown-banner-title {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffd700;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cooldown-timer-display {
    font-family: 'Cinzel', monospace, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    letter-spacing: 3px;
    margin: 0.5rem 0;
}

.cooldown-banner-desc {
    font-size: 0.78rem;
    color: #c4b5fd;
    line-height: 1.4;
    margin: 0;
}

/* 3. Separador de Nueva Transmisión */
.transmission-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 1.8rem 0 1rem 0;
    color: #ffd700;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;
}

    .transmission-divider::before,
    .transmission-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
    }

/* 4. Modal Ceremonial de Reactivación (Dual Choice) */
.modal-dual-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1.2rem;
}

.btn-dual-choice {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(145deg, rgba(25, 12, 45, 0.85), rgba(12, 5, 25, 0.95));
    border: 1px solid rgba(177, 94, 255, 0.35);
    border-radius: 10px;
    padding: 12px 16px;
    color: #f3e8ff;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .btn-dual-choice:hover {
        border-color: #ffd700;
        box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
        transform: translateY(-2px);
        background: linear-gradient(145deg, rgba(40, 18, 70, 0.9), rgba(18, 8, 35, 0.98));
    }

.choice-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
}

.choice-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.choice-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.choice-desc {
    font-size: 0.72rem;
    color: #a78bfa;
}

/* Orbe en reposo cuántico */
.orb-core.cooldown-resting {
    transform: scale(0.65) !important;
    background: radial-gradient(circle, #2d1836 0%, #120919 70%, #050208 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 0 15px rgba(45, 24, 54, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.8) !important;
    animation: restingBreathing 5s infinite ease-in-out !important;
    filter: grayscale(0.7) brightness(0.65);
}

@keyframes restingBreathing {
    0% {
        transform: scale(0.62);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    }

    50% {
        transform: scale(0.68);
        box-shadow: 0 0 20px rgba(177, 94, 255, 0.25);
    }

    100% {
        transform: scale(0.62);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    }
}

/* Badge del Header en Reposo */
.status-badge.cooldown-dormant {
    background: rgba(25, 10, 35, 0.8) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #fca5a5 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2) !important;
}

    .status-badge.cooldown-dormant::before {
        background-color: #ef4444 !important;
        box-shadow: 0 0 8px #ef4444 !important;
        animation: pulseRedSlow 2.5s infinite !important;
    }

@keyframes pulseRedSlow {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

/** FIN MÓDULO DE COOLDOWN & BLOQUEO CEREMONIAL (MÁQUINA ARCANA) **/


/* ==========================================================================
   CABECERA DEL MODAL DE REACTIVACIÓN (MÁQUINA ARCANA)
   ========================================================================== */

#reactivacion-modal .modal-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
    margin-bottom: 1.2rem !important;
    width: 100% !important;
}

#reactivacion-modal .badge-neon {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    background: rgba(177, 94, 255, 0.15);
    color: #ffd700;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

#reactivacion-modal .modal-header h3 {
    font-family: 'Cinzel', serif, system-ui;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 0 12px rgba(177, 94, 255, 0.65);
    line-height: 1.25;
}

#reactivacion-modal .modal-subtitle {
    font-size: 0.8rem;
    color: #c4b5fd;
    margin: 0;
    line-height: 1.4;
    max-width: 90%;
}

/***
    FIN CABECERA DEL MODAL DE REACTIVACIÓN (MÁQUINA ARCANA)
*/