.header{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-content{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo{
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo i{
    color: #ff6b6b;
    font-size: 2.5rem;
}

.subtitle{
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0.5rem 0 0;
    font-weight: 300;
}


.search-section{
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.search-container{
    position: relative;
    margin-bottom: 1.5rem;
}

.search-icon{
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.2rem;
}

.search-input{
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e1e8ed;
    border-radius: 2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.search-input:focus{
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.clear-search{
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.clear-search:hover{
    background: #f1f5f9;
    color: #667eea;
}

.filters{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select{
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 1rem;
    font-size: 1rem;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus{
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.stats-bar{
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-item{
    text-align: center;
}

.stat-number{
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.stat-label{
    font-size: 0.9rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pokemons{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pokemon{
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pokemon::before{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.pokemon:hover{
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.pokemon .number{
    background: rgba(0,0,0,0.1);
    color: rgba(255,255,255,0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.pokemon .name{
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1rem 0;
    text-transform: capitalize;
}

.pokemon .detail{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.pokemon .types{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pokemon .type{
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    text-transform: capitalize;
    backdrop-filter: blur(10px);
}

.pokemon img{
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.pokemon:hover img{
    transform: scale(1.1);
}

.normal{ background: linear-gradient(135deg, #a6a877, #c4c092); }
.grass{ background: linear-gradient(135deg, #77c850, #8dd26b); }
.fire{ background: linear-gradient(135deg, #ee7f30, #f39c3a); }
.water{ background: linear-gradient(135deg, #678fee, #84a3f1); }
.electric{ background: linear-gradient(135deg, #f7cf2e, #f9d948); }
.ice{ background: linear-gradient(135deg, #98d5d7, #b0e0e2); }
.ground{ background: linear-gradient(135deg, #dfbf69, #e5c983); }
.flying{ background: linear-gradient(135deg, #a98ff0, #baa6f3); }
.poison{ background: linear-gradient(135deg, #a040a0, #b358b3); }
.fighting{ background: linear-gradient(135deg, #bf3029, #d14843); }
.psychic{ background: linear-gradient(135deg, #f65687, #f8719b); }
.dark{ background: linear-gradient(135deg, #725847, #866b5a); }
.rock{ background: linear-gradient(135deg, #b8a137, #c6b151); }
.bug{ background: linear-gradient(135deg, #a8b720, #b7c43a); }
.ghost{ background: linear-gradient(135deg, #6e5896, #8269a9); }
.steel{ background: linear-gradient(135deg, #b9b7cf, #c7c5db); }
.dragon{ background: linear-gradient(135deg, #6f38f6, #8452f8); }
.fairy{ background: linear-gradient(135deg, #f9aec7, #fbbdd1); }


.pagination{
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.load-more-btn{
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.load-more-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.load-more-btn:active{
    transform: translateY(0);
}

.no-results{
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.no-results i{
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.no-results h3{
    font-size: 1.5rem;
    margin: 1rem 0;
    color: #475569;
}

.modal-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active{
    opacity: 1;
    visibility: visible;
}

.modal{
    background: white;
    border-radius: 2rem;
    max-width: 600px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal{
    transform: scale(1);
}

.modal-close{
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.3s ease;
}

.modal-close:hover{
    background: rgba(0,0,0,0.2);
}

.modal-content{
    padding: 2rem;
}

@media (max-width: 768px){
    .logo{
        font-size: 2rem;
    }
    
    .logo i{
        font-size: 1.8rem;
    }
    
    .search-section{
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .filters{
        flex-direction: column;
    }
    
    .filter-select{
        min-width: auto;
    }
    
    .pokemons{
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .stats-bar{
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px){
    .pokemons{
        grid-template-columns: 1fr;
    }
    
    .pokemon{
        padding: 1rem;
    }
    
    .pokemon img{
        width: 100px;
        height: 100px;
    }
}



.pokemon-detail-header{
    padding: 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.pokemon-detail-header::before{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(50px, -50px);
}

.pokemon-detail-header h2{
    font-size: 2.5rem;
    margin: 0;
    text-transform: capitalize;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.pokemon-number{
    background: rgba(0,0,0,0.2);
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-weight: 600;
    margin: 1rem 0;
    display: inline-block;
}

.pokemon-detail-image{
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
    margin-top: 1rem;
}

.pokemon-detail-content{
    padding: 0 2rem 2rem;
}

.pokemon-detail-content h3{
    color: #334155;
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.types-list{
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.type-badge{
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: capitalize;
}

.stats-grid{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item{
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-name{
    font-weight: 600;
    min-width: 120px;
    color: #475569;
}

.stat-bar{
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill{
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.stat-value{
    font-weight: 600;
    color: #667eea;
    min-width: 40px;
    text-align: right;
}

.info-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item{
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border-left: 4px solid #667eea;
}

.abilities-list{
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ability-badge{
    background: #f1f5f9;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-weight: 500;
    border: 2px solid #e2e8f0;
    text-transform: capitalize;
}

.error-message{
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.error-message h3{
    color: #ef4444;
    margin-bottom: 1rem;
}

@media (max-width: 768px){
    .pokemon-detail-header h2{
        font-size: 2rem;
    }
    
    .pokemon-detail-image{
        width: 120px;
        height: 120px;
    }
    
    .stat-item{
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .stat-name{
        min-width: auto;
        text-align: center;
    }
    
    .stat-value{
        text-align: center;
    }
    
    .info-grid{
        grid-template-columns: 1fr;
    }
}