:root {
    --bg-dark: #121214;
    --card-bg: #202024;
    --text-primary: #e1e1e6;
    --text-secondary: #a8a8b3;
    --accent: #8257e5;
    
    /* Cores dos Tipos Pokémon */
    --normal: #A8A77A; --fire: #EE8130; --water: #6390F0;
    --electric: #F7D02C; --grass: #7AC74C; --ice: #96D9D6;
    --fighting: #C22E28; --poison: #A33EA1; --ground: #E2BF65;
    --flying: #A98FF3; --psychic: #F95587; --bug: #A6B91A;
    --rock: #B6A136; --ghost: #735797; --dragon: #6F35FC;
    --dark: #705746; --steel: #B7B7CE; --fairy: #D685AD;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
}

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

header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 50px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo h1 { font-weight: 800; font-size: 2rem; letter-spacing: -1px; }
.logo span { color: var(--accent); }

/* Botões */
button { cursor: pointer; border: none; outline: none; transition: 0.3s; font-family: inherit; }
.btn-primary {
    background: var(--accent); color: white; padding: 12px 24px;
    border-radius: 8px; font-weight: 600; font-size: 1rem;
    box-shadow: 0 4px 15px rgba(130, 87, 229, 0.3);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }

.btn-delete { background: #E23636; color: white; padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; }
.btn-suggest { 
    background: linear-gradient(45deg, #F7D02C, #EE8130); 
    color: #121214; padding: 10px 20px; border-radius: 30px; 
    font-weight: 700; display: block; margin: 20px auto 0;
    box-shadow: 0 0 20px rgba(247, 208, 44, 0.4);
}

/* Card do Time */
.team-container {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.team-header { display: flex; justify-content: space-between; margin-bottom: 20px; border-bottom: 1px solid #333; padding-bottom: 15px;}

/* Grid dos 6 Pokémons */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

/* Card Individual do Pokémon */
.slot {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    height: 200px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    overflow: hidden;
    border: 2px dashed #444;
}

.slot.filled { border: none; background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(0,0,0,0.4)); }
.slot:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

.poke-img { width: 100px; height: 100px; object-fit: contain; z-index: 2; filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5)); }
.poke-name { margin-top: 10px; font-weight: 700; text-transform: capitalize; z-index: 2; }

.types-row { display: flex; gap: 5px; margin-top: 5px; z-index: 2; }
.type-badge { font-size: 0.6rem; padding: 2px 8px; border-radius: 10px; text-transform: uppercase; font-weight: 800; color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.5);}

/* Background dinâmico baseado no tipo 1 */
.bg-type-fire { background: radial-gradient(circle at top, var(--fire), transparent 70%) !important; }
.bg-type-water { background: radial-gradient(circle at top, var(--water), transparent 70%) !important; }
.bg-type-grass { background: radial-gradient(circle at top, var(--grass), transparent 70%) !important; }
/* ... (JavaScript vai aplicar classes genéricas, mas o visual fica bonito com o padrão) */

.add-btn { font-size: 3rem; color: #444; background: transparent; transition: 0.3s; }
.slot:hover .add-btn { color: var(--accent); transform: scale(1.2); }

/* Painel de Análise */
.analysis-panel {
    margin-top: 20px;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}
.weak-tag { color: #E23636; font-weight: bold; }
.good-tag { color: #7AC74C; font-weight: bold; }

/* Modal */
.hidden { display: none !important; }
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center; z-index: 1000;
}
.modal-glass {
    background: #202024; padding: 30px; border-radius: 16px; width: 90%; max-width: 400px;
    position: relative; border: 1px solid #333;
}
.search-box { display: flex; gap: 10px; margin: 20px 0; }
.search-box input {
    flex: 1; padding: 10px; border-radius: 6px; border: 1px solid #333;
    background: #121214; color: white;
}
.close-modal { position: absolute; top: 10px; right: 15px; background: none; color: white; font-size: 1.5rem; }

/* Loader */
.loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.spinner { width: 50px; height: 50px; border: 5px solid #333; border-top: 5px solid var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px; }
@keyframes spin { 100% { transform: rotate(360deg); } }