/* ===== CONFIGURAÇÕES GERAIS ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #f5f8ff;
    color: #1f2937;
    min-height: 100vh;
}


/* ===== LINKS ===== */

a {
    text-decoration: none;
    color: inherit;
}


/* ===== HEADER ===== */

header {

    width: 100%;
    padding: 15px 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: linear-gradient(135deg, #2563eb, #ef4444);

    color: white;

    position: sticky;
    top: 0;

    z-index: 100;

}


.logo {

    font-size: 25px;
    font-weight: 800;

}


.logo span {

    color: white;

}


.menu-btn {

    display: none;

    background: rgba(255,255,255,0.2);

    border: none;

    color: white;

    font-size: 25px;

    padding: 8px 12px;

    border-radius: 12px;

    cursor: pointer;

}



/* ===== MENU ===== */

nav {

    display: flex;

    gap: 25px;

}


nav a {

    color: white;

    font-weight: 500;

    transition: .3s;

}


nav a:hover {

    transform: translateY(-3px);

}



/* ===== BOTÕES ===== */


button,
.btn-principal,
.btn-secundario,
.perfil-btn {


    border: none;

    cursor: pointer;

    padding: 12px 22px;

    border-radius: 30px;

    font-size: 15px;

    font-weight: 600;

    transition: .3s;

}



button:hover,
.btn-principal:hover,
.btn-secundario:hover,
.perfil-btn:hover {

    transform: scale(1.05);

}



/* botão principal */

.btn-principal {

    background: linear-gradient(135deg,#2563eb,#ef4444);

    color:white;

}



/* botão secundário */

.btn-secundario {

    background:white;

    color:#2563eb;

}


/* botão voltar */

.voltar {

    background:white;

    color:#2563eb;

}



/* ===== HERO ===== */


.hero {

    padding: 80px 8%;

    text-align:center;

}


.hero h1 {

    font-size:42px;

    margin-bottom:20px;

}


.hero h1 span {

    background:linear-gradient(135deg,#2563eb,#ef4444);

    -webkit-background-clip:text;

    color:transparent;

}


.hero p {

    max-width:700px;

    margin:auto;

    font-size:18px;

    color:#555;

}


.hero-botoes {

    margin-top:30px;

    display:flex;

    justify-content:center;

    gap:15px;

}


/* ===== SEÇÕES ===== */

section {

    padding: 50px 8%;

}


h2 {

    text-align:center;

    font-size:32px;

    margin-bottom:15px;

    color:#1e3a8a;

}


.subtitulo {

    text-align:center;

    color:#666;

    margin-bottom:30px;

}



/* ===== GRID ===== */

.grid,
.cards {

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:25px;

}



/* ===== CARDS ===== */


.card {

    background:white;

    padding:25px;

    border-radius:25px;

    text-align:center;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

    transition:.3s;

    border:2px solid transparent;

}



.card:hover {

    transform:translateY(-8px);

    border-color:#2563eb;

}



/* emoji dos cards */

.card:first-letter {

    font-size:35px;

}



/* ===== CARDS DE ANOS ===== */


.anos {

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));

    gap:20px;

}


.ano-card {


    background:linear-gradient(135deg,#2563eb,#ef4444);

    color:white;

    padding:25px;

    border-radius:25px;

    text-align:center;

    cursor:pointer;

    transition:.3s;

}


.ano-card:hover {

    transform:scale(1.05);

}



.ano-icone {

    font-size:50px;

}





/* ===== PROGRESSO ===== */


.progresso-preenchido {

    height:100%;

    width:0%;

    background:linear-gradient(90deg,#2563eb,#ef4444);

    border-radius:20px;

}



.barra-progresso,
.barra {

    height:15px;

    background:#ddd;

    border-radius:20px;

    overflow:hidden;

    margin:20px 0;

}



.barra .progresso-preenchido {

    width:0%;

}



.texto-progresso {

    text-align:center;

}



/* ===== MISSÕES ===== */


.missoes .card {

    background:linear-gradient(135deg,#ffffff,#eef4ff);

}



/* ===== JOGOS ===== */


.desafio {

    max-width:500px;

    margin:auto;

}



/* ===== PERFIL ===== */


.perfil-card {

    max-width:500px;

    margin:auto;

}



.perfil-card .icone {

    font-size:60px;

}



/* ===== DOWNLOADS ===== */


.downloads .card {

    cursor:pointer;

}



/* ===== FOOTER ===== */


footer {

    background:linear-gradient(135deg,#2563eb,#ef4444);

    color:white;

    text-align:center;

    padding:30px;

    margin-top:40px;

}


.footer-logo {

    font-size:25px;

    margin-bottom:10px;

}


/* ===== MOBILE ===== */

@media (max-width: 768px) {



header {

    padding:15px 5%;

}



.logo {

    font-size:21px;

}



.menu-btn {

    display:block;

}



nav {

    position:absolute;

    top:70px;

    left:0;

    width:100%;

    background:linear-gradient(135deg,#2563eb,#ef4444);

    flex-direction:column;

    align-items:center;

    gap:20px;

    padding:25px;

    display:none;

}



nav.ativo {

    display:flex;

}



.acoes {

    display:none;

}



/* HERO CELULAR */


.hero {

    padding:50px 5%;

}



.hero h1 {

    font-size:30px;

}



.hero p {

    font-size:15px;

}



.hero-botoes {

    flex-direction:column;

    align-items:center;

}



.btn-principal,
.btn-secundario {

    width:90%;

    max-width:300px;

}



/* SEÇÕES */


section {

    padding:35px 5%;

}



h2 {

    font-size:26px;

}



/* GRID */

.grid,
.cards {

    grid-template-columns:1fr;

    gap:18px;

}



/* CARDS */


.card {

    padding:20px;

    border-radius:20px;

}



.card h3 {

    font-size:20px;

}



.card p {

    font-size:14px;

}



/* ANOS */


.ano-card {

    padding:20px;

}



.ano-icone {

    font-size:40px;

}



/* BOTÕES GERAIS */


button {

    padding:10px 18px;

    font-size:14px;

}



/* FOOTER */


footer {

    padding:25px 15px;

    font-size:14px;

}



}


/* ===== MATÉRIAS ===== */


.materias-grid {

    margin-top:30px;

}


.materia-card {

    background:white;

    min-height:220px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

}


.materia-icone {

    font-size:60px;

    margin-bottom:15px;

}


.materia-card h3 {

    color:#2563eb;

    font-size:24px;

}


.materia-card p {

    color:#666;

    font-size:14px;

}


.materia-card:hover {

    background:linear-gradient(135deg,#2563eb,#ef4444);

    color:white;

}


.materia-card:hover h3,
.materia-card:hover p {

    color:white;

}


.card{
display:block;
text-decoration:none;
color:inherit;
}





