/* ============================================================
 * arena_idle.css — Ilustração do palco vazio da Arena
 * Apresenta uma cena "aguardando lutadores" rica em atmosfera:
 *   • Brasão flamejante da Krawz Arena pulsando ao centro
 *   • Pódios duelísticos vazios em ambos os lados
 *   • Partículas etéreas flutuando + halo radial
 *   • Mensagem alquímica com efeito shimmer
 * Acionada por: public/view_handlers/handleAguardando.js
 * ============================================================ */

.arena-idle-scene {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2.5rem 1rem;
    overflow: hidden;
    border-radius: 14px;
    background:
        radial-gradient(ellipse at center, rgba(120, 80, 200, 0.18) 0%, rgba(0, 0, 0, 0) 65%),
        radial-gradient(circle at 50% 110%, rgba(255, 140, 60, 0.22) 0%, rgba(0, 0, 0, 0) 55%),
        linear-gradient(180deg, rgba(8, 6, 18, 0.65) 0%, rgba(20, 10, 36, 0.85) 100%);
    box-shadow:
        inset 0 0 80px rgba(0, 0, 0, 0.6),
        inset 0 0 220px rgba(120, 60, 220, 0.15);
    animation: arenaIdleFadeIn 1.2s ease-out;
}

@keyframes arenaIdleFadeIn {
    from {
        opacity: 0;
        transform: scale(0.985);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ----- Halo central pulsante ----- */
.arena-idle-scene::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 520px;
    height: 520px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 180, 80, 0.28) 0%, rgba(180, 60, 220, 0.12) 35%, transparent 70%);
    filter: blur(6px);
    animation: arenaIdleHalo 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes arenaIdleHalo {
    0%,
    100% {
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

/* ----- Linhas runicas decorativas (cantos) ----- */
.arena-idle-scene::after {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(200, 160, 255, 0.18);
    border-radius: 10px;
    pointer-events: none;
    box-shadow: 0 0 24px rgba(180, 120, 255, 0.08) inset;
    z-index: 0;
}

/* ----- Brasão / Sigilo central ----- */
.arena-idle-sigil {
    position: relative;
    z-index: 2;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 220, 140, 0.45),
        rgba(120, 40, 180, 0.65) 70%,
        rgba(20, 8, 40, 0.95) 100%
    );
    box-shadow:
        0 0 30px rgba(255, 160, 80, 0.55),
        0 0 60px rgba(160, 80, 220, 0.4),
        inset 0 0 24px rgba(0, 0, 0, 0.6);
    animation: arenaSigilPulse 4.5s ease-in-out infinite;
}

.arena-idle-sigil i {
    font-size: 4rem;
    color: #ffe1a8;
    text-shadow:
        0 0 12px rgba(255, 180, 80, 0.95),
        0 0 28px rgba(255, 120, 40, 0.65);
    animation: arenaSigilFlicker 3.2s ease-in-out infinite;
}

@keyframes arenaSigilPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 0 30px rgba(255, 160, 80, 0.55),
            0 0 60px rgba(160, 80, 220, 0.4),
            inset 0 0 24px rgba(0, 0, 0, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow:
            0 0 46px rgba(255, 200, 120, 0.75),
            0 0 90px rgba(200, 120, 255, 0.55),
            inset 0 0 24px rgba(0, 0, 0, 0.6);
    }
}

@keyframes arenaSigilFlicker {
    0%,
    100% {
        opacity: 1;
    }
    45% {
        opacity: 0.85;
        transform: translateY(-1px);
    }
    55% {
        opacity: 1;
        transform: translateY(1px);
    }
}

/* Anéis orbitais ao redor do sigilo */
.arena-idle-sigil-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255, 200, 120, 0.35);
    pointer-events: none;
}
.arena-idle-sigil-ring.r1 {
    width: 200px;
    height: 200px;
    animation: arenaRingSpin 22s linear infinite;
}
.arena-idle-sigil-ring.r2 {
    width: 260px;
    height: 260px;
    border-color: rgba(180, 120, 255, 0.28);
    animation: arenaRingSpin 38s linear infinite reverse;
}

@keyframes arenaRingSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ----- Pódios duelísticos vazios ----- */
.arena-idle-podiums {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4rem;
    margin-top: 0.5rem;
}

.arena-idle-podium {
    width: 110px;
    height: 130px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(60, 30, 90, 0.55) 0%, rgba(20, 10, 40, 0.85) 100%);
    border: 1px solid rgba(180, 140, 255, 0.35);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.55),
        inset 0 0 18px rgba(160, 100, 220, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 12px;
    position: relative;
    animation: arenaPodiumGlow 5s ease-in-out infinite;
}

.arena-idle-podium::before {
    content: '?';
    font-family: 'Cinzel', serif;
    font-size: 2.6rem;
    color: rgba(255, 220, 160, 0.4);
    text-shadow: 0 0 10px rgba(255, 180, 100, 0.35);
    position: absolute;
    top: 18px;
    animation: arenaQuestionFlicker 2.8s ease-in-out infinite;
}

.arena-idle-podium .arena-idle-podium-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(200, 180, 255, 0.7);
}

.arena-idle-podium.left {
    animation-delay: 0s;
}
.arena-idle-podium.right {
    animation-delay: 1.2s;
}
.arena-idle-podium.right::before {
    animation-delay: 1.4s;
}

@keyframes arenaPodiumGlow {
    0%,
    100% {
        box-shadow:
            0 6px 22px rgba(0, 0, 0, 0.55),
            inset 0 0 18px rgba(160, 100, 220, 0.25);
    }
    50% {
        box-shadow:
            0 6px 28px rgba(0, 0, 0, 0.55),
            inset 0 0 30px rgba(220, 160, 255, 0.45);
    }
}

@keyframes arenaQuestionFlicker {
    0%,
    100% {
        opacity: 0.45;
    }
    50% {
        opacity: 0.95;
    }
}

/* "VS" gravado no centro entre os pódios */
.arena-idle-vs {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: rgba(255, 200, 120, 0.55);
    letter-spacing: 4px;
    align-self: center;
    text-shadow: 0 0 10px rgba(255, 160, 80, 0.5);
    animation: arenaVsBreath 3.6s ease-in-out infinite;
}

@keyframes arenaVsBreath {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

/* ----- Mensagem central ----- */
.arena-idle-message {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 520px;
    padding: 0 1rem;
}

.arena-idle-message .title {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff4d4 0%, #ffb066 50%, #fff4d4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: arenaShimmer 6s linear infinite;
    margin: 0 0 0.5rem 0;
}

.arena-idle-message .subtitle {
    font-size: 0.95rem;
    color: rgba(220, 200, 255, 0.75);
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

@keyframes arenaShimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* ----- Partículas etéreas ----- */
.arena-idle-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.arena-idle-particles span {
    position: absolute;
    bottom: -10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 220, 160, 0.85) 0%, rgba(255, 140, 60, 0.4) 60%, transparent 100%);
    box-shadow: 0 0 8px rgba(255, 200, 120, 0.6);
    opacity: 0;
    animation: arenaParticleRise linear infinite;
}

@keyframes arenaParticleRise {
    0% {
        transform: translateY(0) translateX(0) scale(0.6);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(-70vh) translateX(var(--drift, 0px)) scale(1);
        opacity: 0;
    }
}

/* ----- Responsividade ----- */
@media (max-width: 600px) {
    .arena-idle-sigil {
        width: 120px;
        height: 120px;
    }
    .arena-idle-sigil i {
        font-size: 3rem;
    }
    .arena-idle-sigil-ring.r1 {
        width: 150px;
        height: 150px;
    }
    .arena-idle-sigil-ring.r2 {
        width: 195px;
        height: 195px;
    }
    .arena-idle-podiums {
        gap: 2rem;
    }
    .arena-idle-podium {
        width: 80px;
        height: 100px;
    }
    .arena-idle-message .title {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
}

/* Respeita usuários com motion reduzido */
@media (prefers-reduced-motion: reduce) {
    .arena-idle-scene,
    .arena-idle-sigil,
    .arena-idle-sigil i,
    .arena-idle-sigil-ring,
    .arena-idle-podium,
    .arena-idle-podium::before,
    .arena-idle-vs,
    .arena-idle-message .title,
    .arena-idle-particles span {
        animation: none !important;
    }
}
