/* ===========================
   INICIO: LAYOUT
   Descripción: Archivo comentado para identificar claramente el propósito general y los bloques internos de lógica/estilos.
=========================== */

* {
    font-family: "Montserrat", sans-serif;
}

/* ===========================
   CERRAR SESIÓN (ANIMACIÓN)
=========================== */

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

#logout-btn {
    background: linear-gradient(90deg, #dc2626, #ef4444, #dc2626);
    background-size: 200% 100%;
    background-position: -200%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

#logout-btn:hover {
    animation: shine 1.5s linear infinite;
    transform: scale(1.05);
    box-shadow: 0 0 12px #ef4444cc;
}

#logout-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease-in-out;
}

/* ===========================
   HAMBURGER (NO DUPLICAR)
=========================== */
/*
  IMPORTANTE:
  La hamburguesa ya está definida en el <style> del layout.html
  para que su animación funcione bien.

  Así evitamos conflictos entre layout.css y Tailwind/Alpine.
*/

/* ===========================
   ALPINE
=========================== */

[x-cloak] {
    display: none !important;
}

/* ===========================
   UI UNIFICADA: TOASTS + FILTROS
=========================== */

.swal2-toast-custom {
    border: 1px solid rgba(249, 115, 22, 0.35) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65) !important;
    border-radius: 18px !important;
    padding: 0.85rem 1rem !important;
    backdrop-filter: blur(10px) !important;
    background: linear-gradient(180deg, rgba(15, 18, 24, 0.92), rgba(5, 6, 10, 0.92)) !important;
}

.swal2-toast-title {
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    letter-spacing: 0.01em !important;
}

.swal2-toast-close {
    color: rgba(255, 255, 255, 0.7) !important;
}

.swal2-timer-progress-bar {
    background: rgba(249, 115, 22, 0.85) !important;
}

.app-filter-control,
.wiki-select,
.leader-search-input {
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    background: rgba(10, 12, 20, 0.72) !important;
    color: #f8fafc;
    border-radius: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.app-filter-control:focus,
.wiki-select:focus,
.leader-search-input:focus {
    outline: none;
    border-color: rgba(251, 146, 60, 0.85) !important;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.28);
}

.report-filter-chip,
.rarity-filter {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.65);
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.report-filter-chip.is-active,
.rarity-filter.is-active {
    border-color: rgba(251, 146, 60, 0.65);
    background: rgba(249, 115, 22, 0.2);
    color: #fdba74;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
}

.color-filter {
    transition: box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.color-filter:hover {
    transform: translateY(-1px);
    filter: brightness(1.12);
}

.color-filter.is-active {
    box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.45), 0 0 24px rgba(var(--glow-color, 249, 115, 22), 0.5);
    filter: brightness(1.2);
}

@media (max-width: 640px) {
    .swal2-container.swal2-top-end {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 2rem) !important;
    }

    .swal2-toast-custom {
        width: 100% !important;
    }
}

/* Hamburguesa animada */
.hamburger-btn {
            width: 46px;
            height: 46px;
            border-radius: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: background 200ms ease, transform 200ms ease;
            outline: none;
        }

        .hamburger-btn:active {
            transform: scale(0.96);
        }

        .hamburger-icon {
            width: 22px;
            height: 16px;
            position: relative;
        }

        .hamburger-icon span {
            position: absolute;
            left: 0;
            width: 100%;
            height: 2px;
            border-radius: 999px;
            background: white;
            transition: transform 260ms ease, top 260ms ease, opacity 200ms ease;
        }

        .hamburger-icon span:nth-child(1) { top: 0; }
        .hamburger-icon span:nth-child(2) { top: 7px; }
        .hamburger-icon span:nth-child(3) { top: 14px; }

        /* Estado abierto -> X */
        .hamburger-open span:nth-child(1) {
            top: 7px;
            transform: rotate(45deg);
        }

        .hamburger-open span:nth-child(2) {
            opacity: 0;
            transform: translateX(10px);
        }

        .hamburger-open span:nth-child(3) {
            top: 7px;
            transform: rotate(-45deg);
        }

/* ===========================
   FIN: LAYOUT
=========================== */
