/* RESET BÁSICO */

body{
    margin:0;
    background:#0f172a;
    color:#e2e8f0;
    font-family:'Inter', sans-serif;
}

/* DARK */



/* LAYOUT PRINCIPAL */

.layout{
    display:flex;
    justify-content:center;
    max-width:1400px;
    margin:auto;
}

.container{
    max-width:900px;
    margin:auto;
    padding:20px;
    margin-top:80px;
}

.sidebar-left,
.sidebar-right{
    width:200px;
    padding:20px;
}

/* HEADER */

.header{
    background:#1e293b;
    color:white;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    box-shadow:0 2px 8px rgba(0,0,0,0.2);
}

.header-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    max-width:1000px;
    margin:auto;
    padding:15px;
}

.logo a{
    color:white;
    font-size:24px;
    font-weight:bold;
    text-decoration:none;
}

.menu a{
    color:white;
    margin-left:20px;
    text-decoration:none;
    font-weight:500;
}

.menu a:hover{
    text-decoration:underline;
    color:#10b981;
}

/* FOOTER */

.footer{
    background:#1e293b;
    color:white;
    text-align:center;
    padding:20px;
    margin-top:40px;
}

/* ADS */

.ads-box{
    background:#f1f5f9;
    height:600px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px dashed #ccc;
}

/* ARTIGO */

.artigo h1{
    font-size:36px;
    margin-bottom:10px;
}

.descricao{
    font-size:18px;
    color:#555;
    margin-bottom:30px;
}

section{
    margin-top:40px;
}

.topo-imagem img{
    width:100%;
    border-radius:10px;
    margin-bottom:20px;
}

.video-box{
    margin:30px 0;
    border-radius:10px;
    overflow:hidden;
}

/* EXEMPLOS */

.caixa-exemplo{
    background:#f1f5f9;
    padding:20px;
    border-left:4px solid #3b82f6;
    margin-top:20px;
}

/* CALCULADORA */

.calc-container{
    max-width:500px;
    margin:40px auto;
    padding:30px;
    border:1px solid #ddd;
    border-radius:12px;
    background:#f8fafc;
    text-align:center;
}

.calculadora{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    font-size:22px;
    margin-bottom:20px;
}

.calculadora input{
    height:50px;
    width:110px;
    font-size:20px;
    padding:5px;
    text-align:center;
    border:1px solid #ccc;
    border-radius:6px;
}

.porcentagem-box{
    display:flex;
    align-items:center;
    gap:4px;
}

.porcentagem-box span{
    font-size:22px;
    font-weight:bold;
}

.btn-calc{
    margin-top:15px;
    padding:12px 25px;
    background:#3b82f6;
    color:white;
    border:none;
    border-radius:8px;
    font-size:18px;
    cursor:pointer;
}

.btn-calc:hover{
    background:#2563eb;
}

/* EXERCÍCIOS */

.exercicio{
    background:#353e46;
    padding:15px;
    border-radius:8px;
    margin-bottom:15px;
}

.exercicio button{
    margin-top:10px;
    padding:8px 15px;
    border:none;
    background:#10b981;
    color:white;
    border-radius:6px;
    cursor:pointer;
}

.exercicio button:hover{
    background:#059669;
}

.resposta{
    display:none;
    margin-top:10px;
    font-weight:bold;
    color:#1e293b;
}

.resposta.ativa{
    display:block;
}

/* DOWNLOAD */

.btn-download{
    display:inline-block;
    margin-top:20px;
    padding:12px 20px;
    background:#10b981;
    color:white;
    text-decoration:none;
    font-size:16px;
    border-radius:8px;
    font-weight:bold;
}

.btn-download:hover{
    background:#059669;
}

/* AFILIADO (CORRIGIDO) */

.afiliado-box{
    margin:25px 0;
    padding:20px;
    background:#f1f5f9;
    border-left:4px solid #10b981;
    border-radius:8px;
}

.afiliado-box a.btn-afiliado{
    display:inline-block;
    margin-top:10px;
    padding:12px 20px;
    background:#10b981;
    color:white;
    text-decoration:none;
    border-radius:6px;
    font-weight:bold;
}

.afiliado-box a.btn-afiliado:hover{
    background:#059669;
}

/* FONTE GLOBAL */

body{
    font-family: 'Inter', sans-serif;
}

/* HERO */

.hero{
    text-align:center;
    padding:80px 20px;
}

.hero h1{
    font-size:36px;
    margin-bottom:20px;
}

.hero p{
    font-size:18px;
    color:#555;
    margin-bottom:30px;
}

/* BOTÕES PADRÃO */

.btn{
    padding:14px 30px;
    border-radius:8px;
    text-decoration:none;
    font-weight:bold;
}

.btn-primary{
    background:#2563eb;
    color:white;
}

.btn-primary:hover{
    background:#1d4ed8;
}

/* CARDS */

.cards{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    justify-content:center;
    margin-top:20px;
}

.card{
    background:white;
    padding:20px;
    border-radius:10px;
    width:250px;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
    text-align:center;
}

.card h3{
    margin-bottom:10px;
}

.card p{
    color:#555;
    margin-bottom:15px;
}

.card a{
    text-decoration:none;
    color:#2563eb;
    font-weight:bold;
}

.card a:hover{
    text-decoration:underline;
}

/* FUNDO DARK DA HOME */

body{
    background:#0f172a;
    color:#e2e8f0;
}

/* CONTAINER */

.container{
    background:#0f172a;
}

/* SEÇÕES */

section h2{
    color:#f1f5f9;
}

/* CARDS */

.cards{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    justify-content:center;
    margin-top:20px;
}

.card{
    background:#1e293b;
    border-radius:12px;
    overflow:hidden;
    width:280px;
    transition:0.3s;
    box-shadow:0 4px 15px rgba(0,0,0,0.3);
}

.card:hover{
    transform:translateY(-5px);
}

/* IMAGEM */

.card-img img{
    width:100%;
    height:160px;
    object-fit:cover;
}

/* CONTEÚDO */

.card-content{
    padding:15px;
}

.card-tag{
    font-size:12px;
    color:#38bdf8;
    font-weight:bold;
    display:block;
    margin-bottom:5px;
}

.card h3{
    font-size:18px;
    margin-bottom:10px;
    color:#f8fafc;
}

.card p{
    font-size:14px;
    color:#94a3b8;
    margin-bottom:10px;
}

.card a{
    color:#38bdf8;
    text-decoration:none;
    font-weight:bold;
}

.card a:hover{
    text-decoration:underline;
}

/* HOME SEM SIDEBAR */

.home .sidebar-left,
.home .sidebar-right{
    display:none;
}

.home .container{
    max-width:1200px;
}


/* HERO */

.hero{
    text-align:center;
    padding:100px 20px;
}

.hero h1{
    font-size:42px;
    margin-bottom:20px;
}

.hero p{
    font-size:18px;
    color:#94a3b8;
    margin-bottom:30px;
}

/* BOTÃO */

.btn-primary{
    background:#2563eb;
    color:white;
    padding:15px 30px;
    border-radius:10px;
    text-decoration:none;
    font-weight:bold;
}

.btn-primary:hover{
    background:#1d4ed8;
}

/* CARDS */

.cards{
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap:25px;
    margin-top:20px;
}

.card{
    background:#1e293b;
    border-radius:12px;
    overflow:hidden;
    transition:0.3s;
    box-shadow:0 4px 15px rgba(0,0,0,0.3);
}

.card:hover{
    transform:translateY(-5px);
}

.card-img img{
    width:100%;
    height:160px;
    object-fit:cover;
}

.card-content{
    padding:15px;
}

.card-tag{
    font-size:12px;
    color:#38bdf8;
    font-weight:bold;
}

.card h3{
    font-size:18px;
    margin:10px 0;
}

.card p{
    font-size:14px;
    color:#94a3b8;
}

.card a{
    color:#38bdf8;
    text-decoration:none;
    font-weight:bold;
}

/* ADS */

.ads-horizontal{
    height:100px;
    margin:50px auto;
    max-width:1000px;
    background:#1e293b;
    border-radius:10px;
}

.home .ads-horizontal{
    display:none;
}

/* RESPONSIVO */

@media (max-width: 1000px){
    .sidebar-left,
    .sidebar-right{
        display:none;
    }

    .container{
        max-width:100%;
    }
}

@media (max-width: 768px){

    .header-container{
        flex-direction:column;
        align-items:flex-start;
    }

    .menu{
        margin-top:10px;
    }

    .menu a{
        display:inline-block;
        margin-right:15px;
        margin-left:0;
        margin-top:5px;
    }

    .container{
        padding:15px;
    }

    .artigo h1{
        font-size:28px;
    }

    .descricao{
        font-size:16px;
    }
}

/* ========================= */
/* CORREÇÃO DARK MODE GLOBAL */
/* ========================= */

.caixa-exemplo,
.calc-container,
.afiliado-box,
.ads-box {
    background: #1e293b !important;
    color: #e2e8f0 !important;
}

/* TEXTO INTERNO */

.caixa-exemplo p,
.calc-container p,
.afiliado-box p {
    color: #e2e8f0 !important;
}

/* INPUTS */

.calculadora input {
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #334155;
}

/* BOTÕES */

.btn-calc {
    background: #3b82f6;
}

.btn-calc:hover {
    background: #2563eb;
}

/* RESPOSTA (TAVA ERRADO) */

.resposta {
    color:#22c55e; /* verde destaque */
}

/* ADS (modo dark fake) */

.ads-box {
    border: 1px dashed #334155;
}