/* --- VARIÁVEIS PARA FÁCIL ALTERAÇÃO --- */
:root {
    --bg-color: #0b101d;       /* Fundo Principal */
    --card-color: #154075;     /* Cards e Paineis */
    --accent-color: #fab717;   /* Destaque (Amarelo) */
    --text-color: #ffffff;     /* Texto */
    --text-muted: #b0c4de;     /* Texto secundário */
    --danger-color: #ff4d4d;   /* Vermelho */
    --success-color: #4caf50;  /* Verde */
    
    /* Nova cor solicitada para os status */
    --stats-bg: #2d69b1;       
}

/* --- RESET BÁSICO --- */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    line-height: 1.6;
    padding: 20px 32px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* --- NAVEGAÇÃO (NAVBAR) --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background-color: var(--card-color);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    flex-wrap: wrap; /* Permitir quebra de linha para o nav no mobile */
}

/* --- LOGO --- */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    width: 60px;
    height: auto;
}

.logo h1 {
    margin: 0;
    font-size: 20px;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.logo:hover {
    text-decoration: none;
    opacity: 0.9;
}

nav {

    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    
}

nav a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
}

nav a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* --- CARDS E CONTAINERS --- */
.content-container {
    display: flex;
    width: 100%; 
    justify-content: space-between;
    align-items: top center;
}


.list-container {
    display: flex;
    width: 1000px;
    max-width: 1240px; 
    justify-items: right;
    flex-wrap: wrap;
    gap: 20px;
    /*justify-content: center;*/
}

.card {
    background-color: var(--card-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    color: var(--text-color);
    flex: 1 1 300px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.card img {
    width: 40px;
    margin-bottom: 15px;
}

/* --- FORMULÁRIOS --- */
form {
    border-radius: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #05080f;
    color: white;
}

button, .btn {
    background-color: var(--accent-color);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

button:hover {
    background-color: #e5a50a;
}

/* --- BANNER ADS --- */
.publi-pokemons-right {
    display: flex;
    flex-direction: column;
    gap: 32px;
}


.banner-ads {
    width: 360px;
    height: 480px;
    background-image: url("anuncie-aqui2.cb487f10ddaa.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- TABELAS --- */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-color);
    border-radius: 8px;
    overflow: hidden;
}

th {
    background-color: rgba(0,0,0,0.2);
    color: var(--accent-color);
    padding: 15px;
    text-align: left;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

tr:hover {
    background-color: rgba(255,255,255,0.05);
}

/* --- BLOG --- */
article {
    background-color: var(--card-color);
    padding: 30px;
    border-radius: 8px;
    color: var(--text-color);
}

article h1 {
    color: var(--accent-color);
}

article hr {
    border-color: rgba(255,255,255,0.1);
}

/* --- CAIXA DE STATUS (NOVO) --- */
.stats-box {
    background-color: var(--stats-bg);
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    margin-top: 10px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

/* Garante que textos dentro da caixa de status sejam brancos */
.stats-box strong, 
.stats-box span, 
.stats-box b,
.stats-box li {
    color: #ffffff !important;
}

/* Botões dentro da caixa de status */
.stats-box button {
    border: 1px solid white;
}

/* --- ESPECÍFICO DETALHES POKEMON --- */
.nature-btn {
    background-color: #0b101d;
    color: var(--text-color);
    border: 1px solid var(--text-muted);
    padding: 5px;
    font-size: 0.8em;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.nature-btn:hover {
    border-color: var(--accent-color);
}

.nature-btn.active {
    background-color: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

/* --- FOOTER --- */
footer {
    background-color: var(--card-color);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.3);
}

footer p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* --- BANNER DE COOKIES (LGPD) --- */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    background-color: #0b101d; /* Conforme solicitado */
    color: var(--text-color);
    padding: 20px 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-sizing: border-box;
    gap: 20px;
}

.cookie-content {
    flex: 1;
    font-size: 14px;
}

.cookie-content p {
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-accept {
    background-color: #154075; /* Conforme solicitado */
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
}

.btn-accept:hover {
    background-color: #2059a4;
}

.btn-reject {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
    padding: 10px 20px;
    border-radius: 6px;
}

.btn-reject:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Responsividade do Banner */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* --- MENU RESPONSIVO (HAMBURGUER) --- */
.menu-burger {
    display: none;
    font-size: 28px;
    color: var(--text-color);
    user-select: none;
}

@media (max-width: 1000px) {
    .menu-burger {
        display: flex;
        cursor: pointer;
    }

    .logo h1 {
        font-size: 16px;
    }

    nav.menu-header {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 0px;
        gap: 0;
    }

    nav.menu-header.exibe-dropdown {
        display: flex;
    }

    nav.menu-header a {
        width: 100%;
        padding: 12px 16px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        box-sizing: border-box;
    }

    nav.menu-header a:last-child {
        border-bottom: none;
    }

    /* Refatoração mobile */
    .main-content-left {
        width: 100%;
        padding-right: 0px;
        flex: none;
    }

    /* Ajuste ADS mobile */
    .banner-ads {
        width: 310px;
        height: 440px;
        margin-top: 32px;
    }
}

/* --- NOVAS CLASSES (Refatoração de Styles Inline) --- */
.main-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.page-header {
    width: 100%;
    margin-bottom: 20px;
}

.main-content-left {
    flex: 1;
    padding-right: 20px;
}

/* --- CALCULADORA DE TIPOS --- */
.type-calculator-container {
    background-color: var(--bg-color); /* Usando bg-color conforme solicitado */
    border-radius: 12px;
    padding: 24px;
    max-width: 600px;
    margin: 0 auto;
    /* Retirada a sombra excessiva para mesclar melhor ou pode manter leve */
}

/* Os cards internos (grade e resultados) usarão card-color */
.calc-inner-card {
    background-color: var(--card-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.selected-types {
    display: flex;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    margin-bottom: 20px;
}

.type-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.type-btn {
    border-radius: 20px; /* Pill shape */
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    background-color: #0b101d; /* Fundo base */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 8px 16px;
    color: rgba(255,255,255,0.5); /* Texto inativo mais neutro */
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    gap: 6px;
}

.type-btn:hover {
    background-color: #154075;
}

/* Quando ativo, a cor específica do tipo será aplicada pelo JS usando variável CSS ou classes específicas, vamos manter o CSS bem flexível */
.type-btn.active {
    background-color: #154075; 
}

.type-badge {
    display: flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    text-transform: uppercase;
    font-size: 14px;
    gap: 6px;
}

.calculator-tabs {
    display: flex;
    background-color: rgba(0,0,0,0.2);
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

.calc-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: transparent;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 1px;
}

.calc-tab.active {
    background-color: rgba(255, 255, 255, 0.1); 
    color: var(--accent-color);
}

.results-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-group {
    display: none; 
    flex-direction: column;
    gap: 10px;
}

.result-group.has-items {
    display: flex;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.header-weakness { color: #ff6b6b; }
.header-resistant { color: #51cf66; }
.header-immune { color: #adb5bd; }

.multiplier-badge {
    background-color: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 12px;
    color: white;
    font-size: 12px;
}

.result-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* --- CORES DOS TIPOS --- */
[class*="type-"] {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.type-badge-global {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: inset 0 0 6px rgba(255,255,255,0.4), 0 2px 4px rgba(0,0,0,0.6); /* Efeito 3D parecido com a imagem */
    border: 1px solid rgba(0,0,0,0.8);
    gap: 6px;
    margin: 2px;
    line-height: 1;
}

.type-normal   { background-color: #a8a878 !important; border-color: #8a8a59 !important; }
.type-fire     { background-color: #f08030 !important; border-color: #c06626 !important; }
.type-water    { background-color: #6890f0 !important; border-color: #5373c0 !important; }
.type-grass    { background-color: #78c850 !important; border-color: #60a040 !important; }
.type-electric { background-color: #f8d030 !important; border-color: #c6a626 !important; }
.type-ice      { background-color: #98d8d8 !important; border-color: #7aadad !important; }
.type-fighting { background-color: #c03028 !important; border-color: #992620 !important; }
.type-poison   { background-color: #a040a0 !important; border-color: #803380 !important; }
.type-ground   { background-color: #e0c068 !important; border-color: #b39953 !important; }
.type-flying   { background-color: #a890f0 !important; border-color: #8673c0 !important; }
.type-psychic  { background-color: #f85888 !important; border-color: #c6466c !important; }
.type-bug      { background-color: #a8b820 !important; border-color: #869319 !important; }
.type-rock     { background-color: #b8a038 !important; border-color: #93802c !important; }
.type-ghost    { background-color: #705898 !important; border-color: #59467a !important; }
.type-dark     { background-color: #705848 !important; border-color: #594639 !important; }
.type-dragon   { background-color: #7038f8 !important; border-color: #592cc6 !important; }
.type-steel    { background-color: #b8b8d0 !important; border-color: #9393a6 !important; }
.type-fairy    { background-color: #ee99ac !important; border-color: #be7a89 !important; }