/* =========================================
   1. VARIABLES Y CONFIGURACIÓN GENERAL
   ========================================= */
:root {
    --cursor-random: auto;
    --gold: #ffcc00;
    --bg-dark: #121212;
    --bg-panel: #2a2a2a;
    --text-white: #e0e0e0;
}


html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    overflow-x: hidden;
    /* Evita barra horizontal durante las transiciones */
}

/* Oculta el contenido antes de la animación de entrada */
html.pt-transitioning main,
html.pt-transitioning header.main-header {
    opacity: 0;
}

a,
button,
.nav-arrow-btn,
.tracker-poke-card,
.video-wrapper,
select,
input[type="checkbox"],
.admin-btn,
.leaderboard-item {
    cursor: url('../icons/cursorDef.png') 0 0, pointer;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'PokemonFireRed';
    src: url('/font/bwfont.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html,
body {
    cursor: var(--cursor-random) 0 0, auto;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'PokemonFireRed', 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 20px;
}

/* Fondo para todas las páginas excepto Shinywar (Estrellas) */
body:not(.page-shinywar) {
    background-color: var(--bg-dark);
}



a {
    text-decoration: none;
    color: inherit;
}

h1,
h2,
h3,
h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: normal;
}

.main-header {
    padding: 0 20px;
}

.main-logo {
    max-width: 700px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}



@media (max-width: 600px) {
    .main-header {
        padding: 0 15px;
    }

    .content-container {
        padding: 0 15px;
    }




}


/* =========================================
   3. LAYOUT Y CONTENIDO PRINCIPAL
   ========================================= */
.divider {
    border: 0;
    height: 1px;
    background: #333;
    margin: 0;
}

.content-container {
    margin: 0 auto;
}

.page-index .content-container {
    max-width: 1000px;
}

.page-showcase .content-container {
    max-width: 3000px;
}



/* === FILTROS Y BUSCADOR === */
.filters-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    margin-top: 35px;
    flex-wrap: wrap;
}

/* Estilo común para Input y Select */
.filters-container input,
.filters-container select {
    background-color: #1a1a1a;
    border: 2px solid var(--gold);
    color: var(--text-white);
    padding: 10px 15px;
    border-radius: 8px;
    font-family: 'PokemonFireRed', monospace;
    font-size: 1.2rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}


/* Efecto al hacer foco */
.filters-container input:focus,
.filters-container select:focus {
    background-color: #2a2a2a;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
    transform: translateY(-2px);
}

.filters-container input {
    width: 250px;
}

.filters-container select {
    cursor: url('../icons/cursorDef.png') 0 0, pointer;
}

@media (max-width: 600px) {
    .filters-container {
        flex-direction: column;
        align-items: center;
    }

    .filters-container input,
    .filters-container select {
        width: 100%;
        max-width: 300px;
    }
}



/* =========================================
   4. TARJETAS DE STAFF (GRID)
   ========================================= */
.staff-grid {
    display: grid;
    gap: 30px;
    justify-items: center;
    margin: 0 auto;
    padding: 20px;
}

.page-index .staff-grid {
    max-width: 1000px;
    grid-template-columns: repeat(4, 1fr);
}

.page-index .staff-grid .lider-card:nth-child(1) {
    grid-column: span 2;
    justify-self: end;
}

.page-index .staff-grid .lider-card:nth-child(2) {
    grid-column: span 2;
    justify-self: start;
}

.page-showcase .staff-grid {
    max-width: 1400px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

@media (max-width: 1000px) {
    .page-index .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }

    .page-index .staff-grid .lider-card:nth-child(1),
    .page-index .staff-grid .lider-card:nth-child(2) {
        grid-column: span 1;
        justify-self: center;
    }
}

@media (max-width: 550px) {

    .page-index .staff-grid,
    .page-showcase .staff-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
}

/* Estilo individual de tarjeta */
.staff-card {
    background: #333333;
    border: 3px solid var(--gold);
    border-radius: 15px;
    padding: 20px;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    cursor: url('../icons/cursorDef.png') 0 0, pointer;
}

.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
}

.staff-avatar-container {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.staff-avatar-container img {
    height: 130%;
    width: auto;
    margin-bottom: -20px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.3));
}

.staff-card h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

#secret-trigger {
    cursor: pointer;
    transition: transform 0.2s;
}

#secret-trigger:active {
    transform: scale(0.95);
}

.shiny-counter {
    color: #b5b5b5;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 2px;
}

/* === COLORES DEL TOP 3 (Ranking) === */

.shiny-counter.rank-gold {
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
    font-weight: bold;
    font-size: 1.3rem;
}

.shiny-counter.rank-silver {
    color: #e0e0e0;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    font-weight: bold;
}

.shiny-counter.rank-bronze {
    color: #cd7f32;
    text-shadow: 0 0 5px rgba(205, 127, 50, 0.4);
    font-weight: bold;
}

/* =========================================
   5. ANIMACIONES Y TÍTULOS DORADOS (FIXED)
   ========================================= */

@keyframes shineSweep {
    from {
        background-position: 200% center;
    }

    to {
        background-position: -200% center;
    }
}

.staff-title,
.modal-title-large {
    background: linear-gradient(to right,
            var(--gold) 0%, var(--gold) 20%,
            #ffffff 25%,
            var(--gold) 30%,
            var(--gold) 70%,
            #ffffff 75%,
            var(--gold) 80%, var(--gold) 100%);
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;

    animation: shineSweep 12s linear infinite;

    text-transform: uppercase;
}

.staff-title {
    font-size: 3rem;
    margin-bottom: 40px;
}

.modal-title-large {
    flex: 1;
    text-align: center;
    font-size: 3rem;
    margin: 0;
    letter-spacing: 1px;
    filter: drop-shadow(3px 3px 0px #000);
}


html.system-mode,
body.system-mode,
body.system-mode * {
    cursor: auto !important;
}

/* Recuperamos la manita solo en enlaces/botones */
body.system-mode a,
body.system-mode button,
body.system-mode .staff-card,
body.system-mode .nav-arrow-btn,
body.system-mode .tracker-poke-card {
    cursor: pointer !important;
}