/* ====== ESTILO GERAL DO INDEX ====== */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #0d0b1f;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ====== NAVBAR ====== */
.navbar {

    background: rgba(255,255,255,0.05);
    padding: 15px 20px; /* 🔥 corrigido */
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    overflow: hidden; /* 🔥 impede qualquer expansão */
}

.navbar .logo {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
}

.navbar .menu {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.navbar .menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    white-space: nowrap; /* 🔥 impede quebra bizarra */
}

.navbar .menu li a:hover {
    color: #a871ff;
    text-shadow: 0 0 6px #a871ff;
}

/* Toggle */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
}

/* ====== RESPONSIVIDADE ====== */
@media (max-width: 650px) {

    .menu-toggle {
        display: block;
    }

    .navbar {
        padding: 15px 15px; /* 🔥 reduz ainda mais no mobile */
    }

    .navbar .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(255,255,255,0.06);
        margin-top: 12px;
        padding: 10px 0;
        border-radius: 8px;
        text-align: center;
        overflow: hidden; /* 🔥 evita estourar */
    }

    .navbar .menu.menu-open {
        display: flex;
        animation: fadeIn 0.3s;
    }

    .navbar .menu li {
        padding: 10px 0;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ====== TÍTULO ====== */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 25px;
    color: #fff;
}

/* ====== CARDS DOS EVENTOS ====== */
.event-list {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Tablets – 2 colunas */
@media (max-width: 950px) {
    .event-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Celulares – 1 coluna */
@media (max-width: 650px) {
    .event-list {
        grid-template-columns: 1fr;
    }
}

.event-card {
    background: rgba(255,255,255,0.07);
    padding: 18px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: 0.3s;
    cursor: pointer;
}

.event-card:hover {
    transform: scale(1.03);
}

.event-date {
    font-weight: bold;
    color: #ddd;
    margin-bottom: 10px;
}

.event-img {
    width: 100%;
    height: 400px;

    border-radius: 10px;
    margin-bottom: 12px;
}

.event-title {
    font-size: 20px;
    font-weight: bold;
}

.event-local {
    color: #bfbfbf;
    margin: 5px 0 15px;
}

.btn-inscrever {
    display: block;
    
    text-align: center;
    background: #6a00ff;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-inscrever:hover {
    background: #8e2bff;
}

/* GRID DAS INFORMAÇÕES DO EVENTO */
.event-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.info-box {
    background: rgba(255,255,255,0.07);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.info-icon {
    font-size: 30px;
    color: #8e2bff;
    margin-bottom: 8px;
}

/* SEÇÕES DE TEXTO */
.event-section {
    margin-bottom: 35px;
}

.event-section h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.event-box {
    background: rgba(255,255,255,0.06);
    padding: 20px;
    border-radius: 10px;
    line-height: 1.6;
}

/* ===== BLOCO SUPERIOR ===== */
.event-top {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
}

/* Imagem lateral vertical */
.event-img-side {
    width: 380px;
    height: 410px;
    
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.45);
}

/* Grid das caixas */
.event-info-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Caixas */
.info-box {
    background: rgba(255,255,255,0.07);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 10px rgba(0,0,0,0.35);
    text-align: center;
}

.info-box i {
    font-size: 28px;
    color: #8e2bff;
    margin-bottom: 8px;
}

/* ===== RESPONSIVIDADE ===== */

@media (max-width: 900px) {
    .event-top {
        flex-direction: column;
        align-items: center;
    }

    .event-img-side {
        width: 100%;
        height: 350px;
    }

    .event-info-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .event-info-grid {
        grid-template-columns: 1fr; /* uma por linha */
    }

    .event-img-side {
        height: 300px;
    }
}


/* MODALIDADES */
.mod-line {
    background: rgba(255,255,255,0.06);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .event-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .event-info-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== MENU DE AÇÕES DO EVENTO ===== */
.event-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 40px 0;
}

.action-btn {
    background: rgba(255,255,255,0.08);
    padding: 18px 25px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(8px);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    transition: 0.3s;
    width: 180px;
}

.action-btn i {
    font-size: 28px;
    color: #8e2bff;
    display: block;
    margin-bottom: 8px;
}

.action-btn:hover {
    background: rgba(106,0,255,0.3);
    transform: translateY(-4px);
}

.action-btn-login {
    background: #06402b;
    padding: 18px 25px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(8px);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    transition: 0.3s;
    width: 180px;
}

.action-btn-login i {
    font-size: 28px;
    color: #ffffff;
    display: block;
    margin-bottom: 8px;
}

.action-btn-login:hover {
    background: rgba(106,0,255,0.3);
    transform: translateY(-4px);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 850px) {
    .event-actions {
        flex-wrap: wrap;
    }
    .action-btn {
        width: 45%;
    }
}

@media (max-width: 550px) {
    .action-btn {
        width: 100%;
    }
}


/* ===== ORGANIZADOR DO EVENTO ===== */
.organizer-box {
    background: rgba(255,255,255,0.07);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.organizer-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.organizer-item i {
    font-size: 28px;
    color: #8e2bff;
}

.organizer-item strong {
    font-size: 15px;
}

.organizer-item p {
    margin: 2px 0 0;
    color: #e4e4e4;
}

.insta-link {
    color: #a871ff;
    text-decoration: none;
    font-weight: bold;
}

.insta-link:hover {
    color: #fff;
    text-shadow: 0 0 6px #a871ff;
}

/* RESPONSIVO */
@media (max-width: 700px) {
    .organizer-box {
        grid-template-columns: 1fr;
    }
}


/* Botão de inscrições encerradas */
.btn-encerrado {
    background: #b30000 !important;
    font-weight: bold;
    opacity: 0.8;
    cursor: not-allowed;
    padding: 18px 25px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(8px);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    transition: 0.3s;
    width: 180px;
}

/* Mensagem de encerramento */
.alert-encerrado {
    background: rgba(255,0,0,0.2);
    padding: 12px;
    border-left: 4px solid #ff4444;
    border-radius: 6px;
    margin-bottom: 20px;
    color: #ffcccc;
    font-weight: bold;
    display: flex;
    gap: 10px;
    align-items: center;
}

.alert-encerrado i {
    color: #ff7777;
    font-size: 20px;
}



/* BARRA SUPERIOR DE SAUDAÇÃO */
.topbar-atleta {
    background: #6a00ff;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    flex-wrap: wrap;
}

/* Links */
.topbar-links a {
    color: #ffffff;
    margin-left: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.topbar-links a:hover {
    color: #d7b0ff;
}

/* Responsividade */
@media (max-width: 600px) {

    .topbar-atleta {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .topbar-links a {
        display: inline-block;
        margin: 5px 10px;
    }
}



.event-img-wrapper {
    position: relative;
}

/* Badge do evento gratuito */
.event-free {
    position: absolute;
    top: 10px;
    right: 10px;

    background: #27ae60;
    color: #fff;

    padding: 4px 10px;
    border-radius: 20px;

    font-size: 12px;
    font-weight: 600;

    display: inline-flex;
    align-items: center;
    gap: 5px;

    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 10;
}



/* ====== FOOTER ====== */
footer {
    margin-top: auto;
    background: rgba(255,255,255,0.05);
    text-align: center;
    padding: 18px;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.1);
}
footer a, .footer a {
    color: #ffffff !important;
    margin-left: 15px;
    text-decoration: none;
    font-weight: 600;
}


footer a:hover {
    color: #d7b0ff;
}
