/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-bottom: 60px;
    position: relative;
}

@font-face {
    font-family: 'Pokemon Solid';
    src: url('../../font/fonts/Pokemon Solid.ttf') format('truetype');
}

@font-face {
    font-family: 'Pokemon Hollow';
    src: url('../../font/fonts/Pokemon Hollow.ttf') format('truetype');
}

/* Header */
header {
    padding: 30px 20px;
    text-align: center;
    background-image: url(https://i.pinimg.com/736x/2b/1d/fe/2b1dfec19b945a19ac39641278a6a799.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

.logopokemon {
    background: linear-gradient(135deg, #3498DB, #2980B9);
    color: #F7DC6F;
    font-family: 'Pokemon Solid', Arial, sans-serif;
    padding: 15px 30px;
    border-radius: 15px;
    display: inline-block;
    font-size: 2.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.logopokemon:hover {
    transform: scale(1.05);
}

.subtitle {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Campo de busca */
.search-container {
    max-width: 600px;
    margin: 20px auto 0;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.2rem;
}

.search-input {
    width: 100%;
    padding: 15px 50px;
    font-size: 1rem;
    border: 3px solid #F7DC6F;
    border-radius: 30px;
    outline: none;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #3498DB;
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

.clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    display: none;
    transition: color 0.3s ease;
}

.clear-search:hover {
    color: #e74c3c;
}

.clear-search.active {
    display: block;
}

/* Filtros de navegação */
.filter-nav {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #3498DB;
    background: white;
    color: #3498DB;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: #3498DB;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.filter-btn.active {
    background: #3498DB;
    color: #F7DC6F;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

/* Main content */
main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.pokemon-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.section-header {
    margin-bottom: 30px;
    text-align: center;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.password-info {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.password-info strong {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 5px;
}

/* Contador de resultados */
.results-counter {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #ecf0f1;
    border-radius: 10px;
    font-weight: 600;
    color: #34495e;
}

/* Lista de Pokémon */
.pokemon-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 0;
}

.pokemon-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

.pokemon-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Cards de jogos */
.game-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.game-card.emulator-card {
    border: 3px solid #9b59b6;
}

.game-card.hack-card {
    border: 3px solid #e74c3c;
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #F7DC6F;
}

.game-info {
    padding: 20px;
    flex-grow: 1;
}

.game-title {
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.platform-badge,
.type-badge,
.region-badge,
.special-badge,
.quality-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.platform-badge.gbc {
    background: #9b59b6;
    color: white;
}

.platform-badge.gba {
    background: #3498db;
    color: white;
}

.platform-badge.android {
    background: #a4c639;
    color: white;
}

.type-badge.classic {
    background: #f39c12;
    color: white;
}

.type-badge.hack {
    background: #e74c3c;
    color: white;
}

.type-badge.emulator {
    background: #1abc9c;
    color: white;
}

.region-badge {
    background: #34495e;
    color: white;
}

.special-badge,
.quality-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.game-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Botões de download */
.download-button {
    background: linear-gradient(135deg, #3498DB, #2980B9);
    color: #F7DC6F;
    font-family: 'Pokemon Solid', Arial, sans-serif;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.download-button:hover {
    background: linear-gradient(135deg, #F7DC6F, #F2C464);
    color: #3498DB;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.download-button:active {
    transform: translateY(0);
}

.download-button a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-button.emulator-btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.download-button.hack-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* Ícones coloridos */
.text-red { color: #e74c3c; }
.text-blue { color: #3498db; }
.text-green { color: #27ae60; }
.text-yellow { color: #f39c12; }
.text-gold { color: #d4af37; }
.text-purple { color: #9b59b6; }

/* Sem resultados */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #34495e;
}

/* Seção de informações */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 15px;
}

.info-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-card ol {
    margin-left: 20px;
    color: #34495e;
    line-height: 1.8;
}

.info-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.footer-content p {
    margin: 5px 0;
}

.footer-note {
    color: #F7DC6F;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .logopokemon {
        font-size: 1.8rem;
        padding: 12px 20px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pokemon-list {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .pokemon-section {
        padding: 15px;
    }
    
    .game-info {
        padding: 15px;
    }
}