
/* Reset básico e fontes */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header e Navegação */
header {
    background-color: #ef5350; 
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    padding: 10px 20px;
    font-weight: bold;
    transition: background-color 0.3s;
}

nav a:hover, nav a.active {
    background-color: #c62828; 
    border-radius: 5px;
}

/* Conteúdo Principal */
main {
    padding-top: 20px;
    min-height: 70vh; 
}

h1, h2 {
    color: #333;
    text-align: center;
}

/* Página Inicial */
.welcome {
    text-align: center;
    padding: 40px;
}
.welcome .cta-button {
    display: inline-block;
    background-color: #ef5350;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 1.1em;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s;
}
.welcome .cta-button:hover {
    background-color: #c62828;
}

/* Página de Busca */
.search-container {
    text-align: center;
    margin-bottom: 30px;
}

.search-container input {
    width: 300px;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-container button {
    padding: 10px 15px;
    font-size: 1em;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 5px;
}

.pokemon-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
}

.pokemon-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 15px;
    text-align: center;
    width: 150px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pokemon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.pokemon-card a {
    text-decoration: none;
    color: #333;
}

.pokemon-card img {
    width: 100px;
    height: 100px;
}

.pokemon-card p {
    margin: 10px 0 0;
    font-weight: bold;
    text-transform: capitalize;
}

.pokemon-details-container {
    background-color: white;
    width: 100%;
    max-width: 800px; 
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    box-sizing: border-box; 
}

.pokemon-detail-image {
    width: 200px;
    height: 200px;
    background-color: #f4f4f9;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
}

#pokemonMainInfo h1 {
    text-transform: capitalize;
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 20px;
}

.details-info-flex {
    display: flex;
    justify-content: space-around; 
    text-align: center;
    flex-wrap: wrap; 
}

.info-block {
    margin: 10px;
}

.info-block h2 {
    font-size: 1.5em;
    color: #555;
    border-bottom: 2px solid #ef5350;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* --- Lista de Tipos --- */
.type-list {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.type-badge {
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 1.1em;
    text-transform: capitalize;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* --- Lista de Estatísticas --- */
.stats-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.stats-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.stats-list strong {
    width: 140px; 
    color: #555;
}

.stat-bar-container {
    flex: 1;
    background-color: #eee;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
}

.stat-bar {
    background-color: #2196F3; 
    height: 100%;
    color: white;
    font-weight: bold;
    font-size: 0.8em;
    padding: 2px 5px;
    box-sizing: border-box;
    min-width: 20px; 
}

/* --- Seção de Evolução --- */
#pokemonEvolution {
    margin-top: 40px;
}

#evolutionContainer {
    justify-content: center; 
    gap: 30px;
}
.evolution-card {
    transform: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.evolution-card:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.type-normal { background-color: #A8A77A; }
.type-fire { background-color: #EE8130; }
.type-water { background-color: #6390F0; }
.type-electric { background-color: #F7D02C; }
.type-grass { background-color: #7AC74C; }
.type-ice { background-color: #96D9D6; }
.type-fighting { background-color: #C22E28; }
.type-poison { background-color: #A33EA1; }
.type-ground { background-color: #E2BF65; }
.type-flying { background-color: #A98FF3; }
.type-psychic { background-color: #F95587; }
.type-bug { background-color: #A6B91A; }
.type-rock { background-color: #B6A136; }
.type-ghost { background-color: #735797; }
.type-dragon { background-color: #6F35FC; }
.type-dark { background-color: #705746; }
.type-steel { background-color: #B7B7CE; }
.type-fairy { background-color: #D685AD; }



#loading {
    text-align: center;
    font-size: 1.5em;
    padding: 50px;
    color: #555;
}


footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
    margin-top: 75px;
}