﻿/* Reemplaza el contenido de tu pokedex-style.css con esto */

/* Estilo para el fondo de toda la página */
body {
    background-color: #007bff; /* Un azul similar al de la referencia */
    background-image: linear-gradient(to bottom, #007bff, #0056b3);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Press Start 2P', cursive;
    color: #3a3a3a;
    box-sizing: border-box;
}

#pokedex-container {
    display: flex;
    justify-content: space-between; /* Crea un espacio entre los paneles */
    align-items: center;
    width: 100%;
    max-width: auto; /* Ancho máximo */
    height: 100%;
    max-height: auto; /* Alto máximo */
    background: url('../assets/images/bg.png') no-repeat center center;
    background-size: cover;
    padding: 8% 6%;
    position: relative;
    box-sizing: border-box;
    background-size: 100% 100%;
}
#corner-logo {
    position: absolute; /* Permite posicionarlo libremente dentro del contenedor */
    top: 18px; /* Distancia desde arriba */
    left: 45px; /* Distancia desde la izquierda */
    width: 120px; /* Ancho del logo */
    height: auto;
    z-index: 10; /* Se asegura de que esté por encima del fondo */
}
#left-panel, #right-panel {
    flex: 1; /* Ambos paneles ocupan el mismo espacio */
    display: flex;
    flex-direction: column;
    height: 100%; /* Ocupan toda la altura del contenedor */
}

#left-panel {
    padding-right: 40px;
    margin-top: 75px;
    width: 70%; /* Ancho específico */
    height: 100%; /* Altura ajustada */
    display: flex;
    flex-direction: column;
}

#right-panel {
    padding-left: 40px;
    margin-top: -130px;
    width: 50%; /* Ancho específico */
    height: 95%; /* Altura ajustada */
    display: flex;
    flex-direction: column;
}

#main-screen {
    background: #98cb98 url('../assets/images/details.png') no-repeat center center;
    background-size: cover;
    border: 20px solid #494949;
    border-radius: 10px;
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: flex-start; 
}

#pokemon-details-content img {
    max-height: 200px; 
    width: auto;
    margin: 10px auto;
    display: block;
    image-rendering: pixelated;
}

#pokemon-details-content .placeholder-text {
    margin-top: 100px;
}

#pokemon-details-content h3 {
    text-transform: capitalize;
    font-size: 1em;
    margin-top: 5px;
}

#pokemon-details-content p {
    font-size: 0.7em;
    line-height: 1.5;
}

#details-buttons {
    margin-top: 0px;
    text-align: center;
}

/* --- ESTILOS PARA HABILIDADES --- */

/* Contenedor de una habilidad */
.ability-item {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    margin-bottom: 7px;
    gap: 10px; 
}

/* Nombre de la habilidad, ahora estilizado como un botón */
.ability-name {
    font-size: 0.8em;
    font-weight: bold;
    color: #333;
    background-color: #e0e0e0;
    padding: 4px 6px;
    border-radius: 6px;
    text-transform: capitalize;
    text-decoration: none; 
    cursor: pointer;
    transition: background-color 0.2s;
}
    .ability-name:hover {
        background-color: #ccc;
       
    }

/* Etiqueta para la habilidad oculta */
.hidden-ability-label {
    font-size: 0.8em;
    color: #6c757d;
}

/* Estilo para el fondo de la habilidad oculta */
.ability-name.is-hidden-ability {
    background-color: #d9534f; 
    color: white;
}

    .ability-name.is-hidden-ability:hover {
        background-color: #c9302c; 
    }
/* Modificación del tipo de letra para que se vea mejor en la info común */
.type-badge {
    display: inline-block;
    padding: 4px 8px;
    margin: 0 4px;
    border-radius: 5px;
    color: white;
    font-size: 0.7em;
    text-transform: uppercase;
}


#details-buttons button {
        font-family: 'Press Start 2P', cursive;
        font-size: 0.6em;
        padding: 8px;
        border: 2px solid #333;
        border-radius: 5px;
        cursor: pointer;
}

#pokedex-header {
    text-align: center;

}

#pokedex-logo {
    width: 180px;
    margin-bottom: 15px;
}

#filters {
    margin-bottom: 10px;
}

#filters input, #filters select, #action-buttons button {
        font-family: 'Press Start 2P', cursive;
        font-size: 0.6em;
        padding: 5px;
        margin: 2px;
        border: 2px solid #333;
        border-radius: 5px;

}

#filters, #action-buttons {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
}
/* Contenedor principal de la lista */
#pokemon-list {
    list-style: none;
    padding: 10px 15px; /* Padding interno */
    margin: 0;
    flex-grow: 1; /* La lista crece para ocupar el espacio */
    overflow-y: auto; /* Activa el scroll vertical */
    /* Nuevos estilos para el diseño */
    display: flex;
    flex-direction: column;
    gap: 8px; /* Espacio de separación entre cada elemento */
    background-color: transparent; /* Quitamos el fondo anterior */
    border: none; /* Quitamos el borde anterior */
}

    /* Elemento individual de la lista (cada Pokémon) */
    #pokemon-list li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 55px; /* Altura corregida a un valor adecuado */
        padding: 0 25px 0 10px;
        border-radius: 50px;
        cursor: pointer;
        transition: transform 0.2s ease-in-out;
        font-size: 0.9em;
        background: linear-gradient(90deg, #f7e1a3 110px, #fbebc9 110px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
.pokemon-info-left {
    display: flex;
    align-items: center;
    gap: 12px; /* Espacio entre la imagen y el número */
}

/* NUEVA REGLA: Para el nombre del Pokémon */
.pokemon-name {
    text-transform: capitalize;
}


        /* Efecto al pasar el mouse por encima */
        #pokemon-list li:hover {
            transform: scale(1.02);
        }

        /* Estilo para el Pokémon seleccionado */
        #pokemon-list li.selected {
            color: white; /* Texto blanco para que resalte */
            font-weight: bold;
            /* Gradiente naranja para la selección */
            background: linear-gradient(90deg, #f8b053 105px, #f59c27 60px);
            box-shadow: 0 4px 8px rgba(0,0,0,1.4);
            transform: scale(1.03);
        }

        /* Estilo para la imagen del Pokémon en la lista */
        #pokemon-list li img {
            width: 45px;
            height: 45px;
        }
    /* La barra de scroll completa */
    #pokemon-list::-webkit-scrollbar {
        width: 12px;
    }

    /* El "camino" o fondo de la barra de scroll */
    #pokemon-list::-webkit-scrollbar-track {
        background: #2c4a8a; /* Color de fondo oscuro como en la referencia */
        border-radius: 14px;
    }

    /* El mango o la parte que se arrastra */
    #pokemon-list::-webkit-scrollbar-thumb {
        background-color: red; /* Color naranja/rojo */
        border-radius: 20px;
        border: 3px solid #2c4a8a; /* Borde del mismo color que el fondo para crear un efecto de padding */
    }

        /* Efecto al pasar el mouse sobre el mango */
        #pokemon-list::-webkit-scrollbar-thumb:hover {
            background-color: #f0932b;
        }
.btn-image-style {
    background: url('../assets/images/btn-enviar.png') no-repeat center center;
    background-size: 100% 100%;
    /* Estilos para el texto */
    font-family: 'Press Start 2P', cursive;
    color: black;
    font-size: 0.8em;
    /* Posicionamiento del texto */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Otros estilos */
    border: none !important; /*asegura que no hay borde */
    outline: none;
    box-shadow: none; 
    width: 200px;
    height: 55px;
    cursor: pointer;
    margin: 10px auto 0; /* Margen para separarlo del contenido */
    transition: transform 0.2s;
}

#pagination-container {
    margin-top: 10px;
}

.pagination {
    font-size: 0.7em;
    justify-content: center;
    --bs-pagination-active-bg: #c03028; /* Rojo para página activa */
    --bs-pagination-active-border-color: #333;
    --bs-pagination-color: #c03028;
    --bs-pagination-hover-color: #c03028;
    --bs-link-color: #c03028;
    --bs-link-hover-color: #c03028;
}

/* Estilos para la cuadrícula de estadísticas */
.stats-grid {
    display: grid; 
    grid-template-columns: auto auto; 
    gap: 5px 50px; 
    margin-bottom: 10px; 
    justify-content: center; 
}

/* Estilo para las etiquetas "Altura" y "Peso" */
.stat-item {
    font-size: 0.8em;
    text-align: right; 
    padding-right: 6px;
}

/* Estilo para los valores de altura y peso */
.stat-value {
    font-size: 0.8em;
    text-align: left;
}

.description-text {
    margin-top: 5px;
    font-size: 0.9em;
}

#generation-selector {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.btn-gen {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7em;
    padding: 8px 12px;
    border: 2px solid #333;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-gen:hover {
    background-color: #eee;
}

.btn-gen.active {
    background-color: #c03028;
    color: white;
    border-color: #333;
}


.tab-link {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7em;
    background: #eaeaea;
    border: none;
    border-right: 1px solid #aaa;
    border-radius: 8px 8px 0 0;
    padding: 7px 30px; 
    cursor: pointer;
    color: #333;
    margin-right: 4px;
    outline: none;
    box-shadow: none;
    transition: background 0.2s;
}
    .tab-link.active {
        background: white;
        color: #222;
        border-bottom: 1px solid #f0f0f0;
        font-weight: bold;
    }
.pokedex-tab-content {
    background-color: #f0f0f0;
    border-top: none;
    border: 1px solid #494949;
    border-radius: 0 8px 8px 8px;
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    min-height: 180px;
}
.tab-pane {
    display: none;
    border-radius: 0 0 12px 12px;
    background: white;
    border-top: none;
    min-height: 140px;
    padding: 12px 8px;
}

    .tab-pane.active {
        display: block;
    }


/* --- ESTILOS PARA VENTANA DE STATS --- */
.stats-container {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px;
    align-items: center;
    font-size: 0.7em;
    
}

.stat-name {
    text-align: right;
    font-weight: bold;
    text-transform: capitalize;
}

.stat-bar-container {
    background-color: #ddd;
    border-radius: 10px;
    width: 100%;
}

.stat-bar {
    
    height: 20px;
    background-color: #f08080; /* Color base para las barras */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: white;
    font-size: 0.8em;
    padding-right: 10px;
}

/* --- ESTILOS PARA VENTANA DE EVOLUCIONES --- */
.evolutions-container {
    display: flex;
    
    align-items: center;
    gap: 20px;
    text-align: center;
    flex-direction: column;
}
.evolution-path {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-align: center;
}
.evolutions-list-container {
    display: flex;
    flex-direction: column; /* Apila cada ruta de evolución verticalmente */
    gap: 20px; /* Espacio entre cada línea de evolución */
    max-height: 220px; /* Altura máxima antes de activar el scroll */
    overflow-y: auto; /* Scroll si hay muchas evoluciones */
    padding-right: 10px;
}
.evolution-path {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Espacio entre Pokémon y la flecha */
}
.evolution-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100px; /* Ancho fijo para cada Pokémon */
}
    .evolution-stage img {
        height: 80px;
        width: 80px;
        image-rendering: pixelated;
    }

    .evolution-stage p {
        margin-top: -5px;
        font-size: 0.8em;
        text-transform: capitalize;
    }


.evolution-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
    min-width: 120px;
}
.arrow-symbol {
    font-size: 2em;
    font-weight: bold;
    color: #555;
}
.evo-requirement {
    font-size: 0.7em;
    font-weight: bold;
    color: #333;
    background-color: #e0e0e0;
    padding: 3px 6px;
    border-radius: 5px;
}
.evo-name {
    font-size: 0.9em;
    font-weight: bold;
    text-transform: capitalize;
    margin: 5px 0;
}

/* --- ESTILOS PARA VENTANA DE FORMAS --- */
.forms-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: center;
    margin-top: 0px;
}

.form-item img {
    width: 120px;
    height: 120px;
    image-rendering: pixelated;
    background-color: #ddd;
    border-radius: 10px;
}

.form-item p {
    font-size: 1.1em;
    margin-top: 5px;
}

.form-item p:first-child { 
    font-weight: bold; 
    font-size: 1.3em; 
    text-shadow: 1px 1px 0 #ccc; 
}

.form-item p img {
    image-rendering: pixelated; /* Asegura que las imágenes se rendericen con efecto pixelado */
}

/* Estilos para el contenedor de la info común */
#pokemon-common-info {
    text-align: center;
    flex-shrink: 0; /* Evita que se encoja */
}

    #pokemon-common-info img {
        height: 120px;
        width: auto;
        image-rendering: pixelated;
    }

    #pokemon-common-info h3 {
        text-transform: capitalize;
        font-size: 1em;
        margin-top: 5px;
    }

    #pokemon-common-info p {
        font-size: 0.7em;
    }


.pokedex-tabs {
    display: flex;
    position: relative;
    z-index: 1; 
    margin-bottom: 0px;
}





.type-badge-small {
    padding: 2px 5px;
    border-radius: 3px;
    color: white;
    background-color: #a0a0a0; 
    margin: 0 2px;
}


.total-stat-value {
    font-weight: bold;
    text-align: left; 
    padding-left: 5px;
}
.evolution-options-container {
    display: flex;
    flex-direction: column; /* Apila las evoluciones verticalmente */
    gap: 15px;
    max-height: 200px; /* Altura máxima antes de que aparezca el scroll */
    overflow-y: auto; /* Scroll vertical si hay muchos elementos */
    padding: 10px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 10px;
}
/* --- ESTILOS PARA "MÁS PROYECTOS" --- */

/* Contenedor posicionado en la parte inferior del marco */
#more-projects-container {
    position: absolute;
    bottom: 4%; /* Posición desde abajo */
    right: 8%; /* Posición desde la derecha */
    width: 25%; /* Ancho del contenedor */
    max-width: 200px;
    height: auto;
}
    /* Ajustes a la imagen y al enlace */
    #more-projects-container a {
        display: block;
        justify-content: center;
        align-items: center;
        height: 100%;
        width: 140%;
        max-width: 300px;
    }

#more-projects-image {
    width: 100%;
    height: auto;
    border: 15px double white;
    image-rendering: pixelated;
}
/* --- ESTILOS PARA EL REPRODUCTOR DE MÚSICA --- */

#music-player {
    position: absolute;
    top: 1%; /* Ajusta la distancia desde arriba */
    right: 4%; /* Ajusta la distancia desde la derecha */
    display: flex;
    gap: 15px; /* Espacio entre los botones */
    z-index: 20;
}

.music-btn {
    width: 40px; /* Ancho del botón */
    height: 40px; /* Alto del botón */
    background-color: transparent;
    border: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: transform 0.2s;
}

    .music-btn:hover {
        transform: scale(1.1);
    }

/* --- Asigna las imágenes a cada botón (CAMBIA LAS RUTAS) --- */

#prev-track-btn {
    background-image: url('../assets/images/prev.png');
}

#next-track-btn {
    background-image: url('../assets/images/next.png');
}

#play-pause-btn {
    background-image: url('../assets/images/play.png'); /* Ícono por defecto */
  
}

    /* Clase que se añade con JS para cambiar el ícono a "pausa" */
    #play-pause-btn.playing {
        background-image: url('../assets/images/pause.png');
        
    }

#credits-footer {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: left;
    padding-left: 45px; 
    font-family: 'Press Start 2P', cursive; 
    font-size: 0.6em; 
    color: white; 
    text-shadow: 1px 1px 2px black;
    user-select: none;
    pointer-events: none;
}

@media (max-width: 992px) {


    body {
        height: auto;
        padding: 10px 0;
    }

    #pokedex-container {
        flex-direction: column;
        height: auto;
        width: 100%;
        padding: 15px;
        background: #dc0a2d;
        align-items: center;
    }

    
    #corner-logo {
        display: none;
    }

   
    #left-panel, #right-panel {
        width: 95%;
        max-width: 500px;
        padding: 0;
        margin: 0 0 20px 0; 
        height: auto;
    }

    #right-panel {
        height: auto; 
    }

    #music-player {
        position: relative; 
        top: auto;
        right: auto;
        margin-top: 20px; 
        text-align: center; 
    }

        #music-player button {
            margin: 0 10px; 
        }
    #generation-buttons-container {
        width: 95%; 
        display: flex;
        flex-wrap: wrap; 
        justify-content: center; 
        margin-bottom: 20px;
    }

        #generation-buttons-container button {
            flex-grow: 0; 
            margin: 5px; 
            padding: 8px 12px; 
            font-size: 0.8em; 
        }

    #more-projects-container {
        position: relative; 
        bottom: auto;
        left: auto;
        right: auto;
        margin: 20px auto;
        width: 60%;
        max-width: 250px;
        text-align: center; 
    }

    #credits-footer {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        padding: 15px; 
        text-align: center;
        font-size: 0.7em; 
        margin-top: 10px; 
    }

  

}