/* ===== RESET ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #0b1220;
    color: #fff;
}

/* ===== TIPOGRAFIA ===== */

h1 {
    font-size: 42px;
    font-weight: 700;
}

h2 {
    font-size: 28px;
    font-weight: 600;
}

h3 {
    font-size: 18px;
    font-weight: 500;
}

p {
    font-size: 16px;
    line-height: 1.6;
    color: #cbd5e1;
}

/* ===== HEADER ===== */

header {
    display: flex;
    justify-content: space-between;
    padding: 20px 50px;
    background: #0e1628;
    align-items: center;
}

.logo img {
    height: 50px;
}

nav a {
    color: #aaa;
    text-decoration: none;
    margin-left: 25px;
    transition: 0.3s;
    font-size: 15px;
}

nav a:hover,
nav .active {
    color: #f5b942;
}


.stage a {
    color: inherit !important;
    text-decoration: none !important;
    display: block;
}
html {
    scroll-behavior: smooth;
}
.stage a:visited {
    color: inherit !important;
}

.stage a:hover {
    color: inherit !important;
}
.stage-link:hover {
    opacity: 0.8;
    cursor: pointer;
}


.hero {
    height: 400px;
    padding-top: 50px;
    padding-left: 20px;
    padding-right: 20px;

    text-align: center; /* 👈 ISSO resolve */
    
    background: linear-gradient(340deg, #374e34, #000000, #eed500);
}
.heros {
    height: 250px;
    padding-top: 50px;
    padding-left: 20px;
    padding-right: 20px;

    text-align: center; /* 👈 ISSO resolve */
    
    background: linear-gradient(340deg, #374e34, #000000, #eed500);
}

.hero-content {
    max-width: 1200px;
    margin: auto;
}

.season-badge {
    display: inline-block;
    padding: 6px 15px;
    background: #1f2937;
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #f5b942;
    letter-spacing: 1px;
}

.hero h1 {
    margin-bottom: 15px;
}

.subtitle {
    margin-bottom: 50px;
}

/* ===== CALENDÁRIO TEMPORADA ===== */

.season-wrapper {
    margin-top: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    
}


.progress-line {
    position: relative;
    height: 6px;
    background: #1f2937;
    border-radius: 10px;
    margin-bottom: 40px;
}

.progress-fill {
    width: 66.6%; /* ajustar conforme etapa */
    height: 100%;
    background: #f5b942;
    border-radius: 10px;
    
}


.dots {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.dot {
    width: 14px;
    height: 14px;
    background: #334155;
    border-radius: 50%;
    transition: 0.3s;
    

}

.dot.completed {
    background: #94a3b8;
}

.dot.active {
    background: #f5b942;
    transform: scale(1.2);
}


.stage-labels {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 19px;
}

.stage {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    min-width: 80px;
     text-decoration: none;
     transform: translateX(-30px);
}

.stage .name {
    font-weight: 500;
}

.stage .date {
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.7;
}

.stage.completed {
    color: #94a3b8;
}

.stage.active {
    color: #f5b942;
    font-weight: 600;
    text-decoration: none;
}
.stage:hover {
    color: #ffffff;
    transform: translateY(-2px);
    transform: translateX(-30px);
    cursor: pointer;
}
/* ===== STATS ===== */

.stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 60px 20px;
    flex-wrap: wrap;
}

.stat-card {
    background: #111827;
    padding: 30px 25px;
    border-radius: 16px;
    width: 230px;
    text-align: center;
    box-shadow: 0 0 25px rgba(0,0,0,0.35);
    transition: 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.highlight {
    font-size: 32px;
    font-weight: 700;
    margin-top: 12px;
}

.red {
    color: #ff4d4d;
}

.blue {
    color: #4da6ff;
}

/* ===== CAIXA GRANDE PRÊMIO ===== */

.gp-box {
    scroll-margin-top: 10vh;
    background: #0f172a;
    margin: 30px auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

.gp-title {
    text-align: center;
    margin-bottom: 35px;
    color: #f5b942;
}

.gp-images {
    display: flex;
    gap: 35px;
    justify-content: center;
    flex-wrap: wrap;
}

.gp-images img {
    width: 100%;
    max-width: 320px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.gp-images img:hover {
    transform: scale(1.03);
}

.gp-description {
    margin-top: 35px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER ===== */

footer {
    text-align: center;
    padding: 25px;
    background: #0e1628;
    margin-top: 60px;
    font-size: 14px;
    color: #9ca3af;
}
/* ===== CLASSIFICAÇÃO ===== */

.classification-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

/* ===== PODIUM ===== */

.top3 {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.podium {
    width: 240px;
     border-radius: 25px;
    padding: 25px;
}

.first {
    background: linear-gradient(135deg, #f5b942, #d89c2f);
    color: #000;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.second {
    background: #9ca3af;
    color: #000;
    height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.third {
    background: #cd7f32;
    color: #000;
    height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* ===== TABELA ===== */

.table-wrapper {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    background: #111827;
    border-radius: 12px;
    overflow: hidden;
}

.standings-table thead {
    background: #1f2937;
}

.standings-table th,
.standings-table td {
    padding: 15px;
    text-align: center;
}

.standings-table tbody tr {
    border-bottom: 1px solid #1f2937;
    transition: 0.3s;
}

.standings-table tbody tr:hover {
    background: #1a2235;
}

/* ===== NAVIGATION ===== */

nav {
    display: flex;
    gap: 10px;
}

.nav-link {
    text-decoration: none;
    color: white;
    padding: 10px 18px;
    border-radius: 20px; 
    transition: 0.3s ease;
    position: relative;
}


.nav-link:hover {
    background: rgba(255,255,255,0.1);
}


.nav-link.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* ===== INFRAÇÕES ===== */

.infractions-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.infraction-card {
    background: #0f172a;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

.infraction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.penalty {
    background: #ef4444;
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 14px;
}

.penalty.drive {
    background: #f97316;
}

.penalty.warning {
    background: #000;
    color: #fff;
}
/* ===== BAIANAGENS ===== */

.baianagens-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.video-card {
    background: #0f172a;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0,0,0,0.4);
}

.video-card h3 {
    margin-bottom: 20px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border-radius: 15px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-description {
    margin-top: 20px;
}


.stat-card,
.gp-box,
.video-card,
.infraction-card,
.podium,
.standings-table {
    border: 2px solid rgba(255,255,255,0.05);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 10px 30px rgba(0,0,0,0.4);
}

/* MODELO CELULAR */

@media (max-width: 768px) {

    /* HEADER */
    header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        margin-left: 0;
    }


    .hero {
        height: auto;
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 30px;
    }


    .season-wrapper {
        overflow-x: auto;
    }

    .progress-line {
        min-width: 900px;
    }

    .stage-labels {
        min-width: 900px;
    }


    .stage {
        transform: none !important;
    }

    .stage:hover {
        transform: translateY(-2px) !important;
    }


    .top3 {
        flex-direction: column;
        align-items: center;
    }

    .podium {
        width: 100%;
        max-width: 320px;
    }


    .standings-table {
        font-size: 14px;
    }

}



@media (max-width: 768px) {

    .top3 {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .podium {
        width: 100%;
        max-width: 340px;
        height: auto !important;
        padding: 25px 20px;
    }

    .first,
    .second,
    .third {
        height: auto !important;
    }

    .podium h2 {
        font-size: 22px;
    }

}


@media (max-width: 768px) {

    .season-wrapper {
        overflow-x: auto;
        padding: 0 0px;
    }

    .progress-line,
    .stage-labels {
        min-width: 1200px;
    }


    .progress-line {
        margin-left: 35px;
        background: none;
        position: relative;
    }

  
    .progress-line::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 7px;
        height: 6px;
        background: #1f2937;
        border-radius: 10px;
        z-index: 0; 
    }


    .progress-fill {
        position: absolute;
        left: 0;
        top: 7px;
        height: 6px;
        z-index: 1; 
    }


    .dots {
        position: absolute;
        z-index: 3;
    }

    .dot {
        position: relative;
        z-index: 4;
    }


    .progress-fill,
    .dots {
        margin-left: 0;
        transform: none;
    }


    .stage {
        transform: none !important;
    }

    .stage:hover {
        transform: translateY(-2px) !important;
    }

}


















