/* style.css - Pokédex Edition FINAL */
:root {
    --poke-red: #ff1f1f;
    --poke-dark-red: #cc0000;
    --poke-blue: #3b4cca;
    --poke-yellow: #ffde00;
    --poke-bg: #2a2a2a;
    --screen-bg: #91aeae; /* Verde LCD retro */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--poke-bg);
    background-image: radial-gradient(#444 10%, transparent 10%);
    background-size: 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.game-container {
    width: 95%;
    max-width: 450px;
    background: var(--poke-red);
    padding: 20px;
    border-radius: 20px 20px 60px 20px;
    border: 8px solid #333;
    box-shadow: 0 10px 0 var(--poke-dark-red), 0 20px 30px rgba(0,0,0,0.5);
}

header {
    margin-bottom: 15px;
}

h1 {
    font-size: 1.3rem;
    color: white;
    text-transform: uppercase;
    text-shadow: 2px 2px #333;
    margin: 0 0 10px 0;
    text-align: center;
}

#scoreboard {
    background: #333;
    color: var(--poke-yellow);
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border: 2px solid #555;
    text-align: center;
}

/* Pantalla principal de la Pokédex */
#game-card {
    background: var(--screen-bg);
    padding: 20px;
    border-radius: 10px;
    border: 4px solid #555;
    box-shadow: inset 4px 4px 10px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Contenedor de imagen centrado y colapsable */
#pokemon-img-container {
    background: white;
    border-radius: 8px;
    border: 3px solid #333;
    margin: 0 auto 20px auto;
    
    display: none; /* Oculto por defecto, JS lo activa con 'grid' */
    width: 250px;
    height: auto; 
    padding: 10px;
    overflow: hidden;
    place-items: center;
}

/* Fuerza el colapso total si está oculto */
#pokemon-img-container[style*="display: none"] {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    height: 0 !important;
}

#pokemon-img {
    max-width: 90%;
    max-height: 180px;
    object-fit: contain;
    filter: drop-shadow(4px 4px 0px rgba(0,0,0,0.1));
}

#pokemon-img:not([src]), #pokemon-img[src=""] {
    display: none;
}

#enunciado {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin: 10px 0 20px 0;
    font-weight: bold;
    line-height: 1.3;
}

/* CONTENEDOR DE BOTONES - Distribución uniforme */
#opciones-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Espaciado idéntico entre botones */
    margin-top: 5px;
}

/* BOTONES DE RESPUESTA - Tamaño idéntico */
.boton-opcion {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* Dimensiones fijas para simetría */
    width: 100%;          /* Ocupa el ancho del contenedor padre */
    max-width: 320px;     /* Límite para que no se vea gigante en PC */
    min-height: 50px;     /* Todos los botones tendrán al menos esta altura */
    
    padding: 10px 15px;
    border: 3px solid #333;
    border-radius: 8px;
    background: #eee;
    
    font-size: 0.95rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    box-shadow: 3px 3px 0 #333;
    text-transform: uppercase;
    transition: all 0.1s;
    word-wrap: break-word;
}

.boton-opcion:hover:not(:disabled) {
    background: var(--poke-yellow);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #333;
}

.boton-opcion:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0 #333;
}

.boton-opcion:disabled {
    cursor: default;
}

/* Estados de acierto y error */
.correct-anim { 
    background-color: #4cd137 !important; 
    color: white !important; 
    border-color: #2ecc71 !important;
}

.wrong-anim { 
    background-color: #e84118 !important; 
    color: white !important; 
    border-color: #c0392b !important;
}

.reveal-correct { 
    border: 4px solid #4cd137 !important; 
    background: #dff9fb; 
}

#resultado-mensaje {
    margin-top: 15px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    min-height: 24px;
}

/* Scrollbar personalizada */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #333; }
::-webkit-scrollbar-thumb { background: var(--poke-red); border: 1px solid #333; }
