/* MeowCraft Pokédex Styles - Clean Sober Design */

.pokedex-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, #0a0a0f 0%, #14141e 100%);
}

.pokedex-search {
    max-width: 550px;
    margin: 2rem auto 0;
    position: relative;
}

.pokedex-search input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.25rem;
    font-size: 1rem;
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    color: white;
    transition: all 0.2s ease;
}

.pokedex-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.pokedex-search input::placeholder {
    color: #666;
}

.pokedex-search i {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pokedex-section {
    padding: 3rem 0;
    background: #0d0d12;
}

/* Type Section */
.type-section {
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.type-section:hover {
    border-color: rgba(255, 107, 53, 0.35);
}

.type-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.type-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.type-number {
    font-size: 1.3rem;
    color: #555;
    font-weight: 700;
}

.type-name {
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
}

.type-badge-large {
    padding: 0.4rem 1.25rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

/* Pokemon Grid */
.pokemon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.6rem;
}

.pokemon-sprite-card {
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.pokemon-sprite-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    background: rgba(20, 20, 30, 0.9);
}

.pokemon-sprite {
    width: 52px;
    height: 52px;
    image-rendering: pixelated;
    margin: 0 auto;
    display: block;
}

.pokemon-name-label {
    font-size: 0.7rem;
    color: #888;
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover tooltip */
.pokemon-sprite-card::after {
    content: attr(data-name);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 15, 0.95);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
    margin-bottom: 0.4rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.pokemon-sprite-card:hover::after {
    opacity: 1;
}

/* Search Results */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: #555;
    font-size: 1.1rem;
}

.type-section.hidden {
    display: none;
}

/* Loading Animation for Pokemon Sprites */
@keyframes fadeInSprite {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pokemon-sprite-card {
    animation: fadeInSprite 0.25s ease;
}

/* Pokemon Count Badge */
.pokemon-count {
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1400px) {
    .pokemon-grid {
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    }
}

@media (max-width: 1024px) {
    .pokemon-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    .type-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .container-wide {
        padding: 0 1rem;
    }
    
    .pokemon-grid {
        grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
        gap: 0.4rem;
    }
    
    .pokemon-sprite {
        width: 46px;
        height: 46px;
    }
    
    .type-section {
        padding: 1rem;
    }
    
    .type-number {
        font-size: 1.1rem;
    }
    
    .type-name {
        font-size: 1rem;
    }
    
    .pokemon-sprite-card::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .pokemon-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }
    
    .pokemon-sprite {
        width: 40px;
        height: 40px;
    }
}
