/* ===============================
   EVENTOS PAGE
================================= */
input, textarea, select {
    font-size: 16px;
}

.secao-eventos, .secao-acompanhar , .secao-votar {
    padding:20px 20px;
    background:#0d0d0d;
    width: 100%;
    margin: 40px auto;   /* centraliza a seção */
    border-radius: 20px; /* opcional: deixa visual mais premium */
}


/* DESKTOP */
@media (min-width: 900px) {
    .secao-eventos, .secao-acompanhar , .secao-votar {
        max-width: 1200px;
        margin: 60px auto;
        border-radius: 20px;
        padding: 60px 40px;
    }
}

.grid-eventos {
    display:grid;
    grid-template-columns:1fr;
    gap:30px;
    
}

.card-evento {
    background:#111;
    border:1px solid #1f1f1f;
    border-radius:18px;
    overflow:hidden;
    transition:0.3s ease;
}

.card-evento:hover {
    transform:translateY(-6px);
    border-color:#e50914;
}

.card-evento img {
    width:100%;
    height:220px;
    object-fit:cover;
}

.evento-conteudo {
    padding:25px;
}

.descricao-evento {
    font-size:14px;
    color:#ccc;
    margin:15px 0;
}

.datas-evento {
    font-size:13px;
    color:#aaa;
    margin-bottom:10px;
}

.status-evento {
    font-size:12px;
    font-weight:700;
    padding:5px 12px;
    border-radius:20px;
    display:inline-block;
    margin-bottom:15px;
}

.status-evento.aberto {
    background:#28a745;
}

.status-evento.encerrado {
    background:#dc3545;
}

@media (min-width:900px){
    .grid-eventos{
        grid-template-columns:repeat(3,1fr);
    }
}


.grid-fotos{
    display:grid;
    grid-template-columns:1fr;
    gap:30px;
    margin-top:40px;
}

.card-foto{
    background:#111;
    border:1px solid #1f1f1f;
    border-radius:18px;
    padding:20px;
    text-align:center;
    transition:0.3s;
}

.card-foto:hover{
    transform:translateY(-6px);
    border-color:#e50914;
}

.card-foto img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:12px;
    margin-bottom:15px;
}

@media(min-width:900px){
    .grid-fotos{
        grid-template-columns:repeat(3,1fr);
    }
}

.media-card {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.grid-fotos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.media-item {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1; /* deixa tudo quadrado */
    overflow: hidden;
    border-radius: 12px;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vencedor-box {
    margin-top: 15px;
}

.vencedor-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.btn-ver-vencedor {
    background: #e60000;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-ver-vencedor:hover {
    background: #b30000;
}


.lista-acompanhamento {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.item-acompanhamento {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #1c1c1c;
    padding: 15px;
    border-radius: 10px;
}

.item-acompanhamento.lider {
    border: 2px solid #e60000;
    background: #2a1111;
}

.thumb-acompanhamento {
    width: 90px;
    height: 90px;
    overflow: hidden;
    border-radius: 8px;
}

.thumb-acompanhamento img,
.thumb-acompanhamento video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-empate {
    color: #ffcc00;
    font-weight: bold;
}

.badge-lider {
    color: #00ff66;
    font-weight: bold;
}

.modal-votacao {
    display: none; /* ISSO É OBRIGATÓRIO */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.grid-eventos-home {
    display: grid;
    grid-template-columns: 1fr; /* celular */
    gap: 20px;
}

@media (min-width: 768px) {
    .grid-eventos-home {
        grid-template-columns: repeat(3, 1fr); /* desktop */
    }
}

.card-evento-home img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.datas-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.status-home {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
}

.status-home.aberto {
    background: #28a745;
    color: #fff;
}

.status-home.encerrado {
    background: #dc3545;
    color: #fff;
}

.evento-destaque {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 50px;
}

.evento-destaque img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.evento-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.8),
        rgba(0,0,0,0.2),
        transparent
    );
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.evento-info .btn-principal {
    width: auto;
    align-self: flex-start;
}

/* ===============================
   EVENTOS – FIX BOTÕES CARD
================================= */

.card-evento .btn-principal,
.card-evento .btn-secundario {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

/* Espaço entre os dois */
.card-evento .btn-secundario {
    margin-top: 8px;
}

/* ===============================
   ACOMPANHAR VOTAÇÃO – AJUSTE PREMIUM
================================= */

.lista-acompanhamento {
    max-width: 700px;   /* controla largura */
    margin: 0 auto;     /* centraliza */
}

.item-acompanhamento {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #151515;
    padding: 18px 22px;
    border-radius: 16px;
    border: 1px solid #222;
    transition: 0.3s ease;
}

.item-acompanhamento.lider {
    border: 1px solid #e50914;
    background: #1a0f0f;
}

.item-acompanhamento:hover {
    transform: translateY(-4px);
}

.thumb-acompanhamento {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.thumb-acompanhamento img,
.thumb-acompanhamento video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-acompanhamento h4 {
    margin: 0 0 6px 0;
    font-size: 18px;
}

.badge-empate,
.badge-lider {
    font-size: 13px;
}
