/* ARQUIVO: public/css/style_Eventos.css */
/* EVENTOS CAAC - ONDE A VELOCIDADE GANHA FORMA */

:root {
    --street-glow: rgba(0, 188, 212, 0.3);
    --offroad-glow: rgba(255, 87, 34, 0.3);
    --mixed-glow: rgba(255, 69, 0, 0.3);
}

/* ============================================ */
/* HERO SECTION - IMPACTO MÁXIMO */
/* ============================================ */

/* ARQUIVO: public/css/style_Eventos.css */
/* FUNDO DINÂMICO - MARCA REGISTRADA DO CAAC */

/* --- CONTAINER COM FUNDO DINÂMICO --- */
.eventos-body {
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.85)), 
                url('/public/img/fundo.jpg');
    background-size: cover;
    background-position: 50% center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    transition: background-position 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Estados do Fundo - Deslizamento característico do CAAC */
body.eventos-body.bg-street-focus {
    background-position: 15% center !important;
}

body.eventos-body.bg-offroad-focus {
    background-position: 85% center !important;
}

.eventos-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow: hidden;
}

.eventos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1533105079780-92b9be482077?q=80&w=2000') center/cover no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.eventos-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.eventos-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 69, 0, 0.2);
    border: 1px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--street-neon), var(--dirt-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.hero-stat .stat-label {
    font-size: 0.7rem;
    color: #888;
    letter-spacing: 1px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
}

.hero-scroll-indicator span {
    display: block;
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 5px;
}

.hero-scroll-indicator i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ============================================ */
/* FILTROS */
/* ============================================ */

.filtros-container {
    position: sticky;
    top: 70px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
    padding: 15px 20px;
}

.filtros-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filtros-tribo {
    display: flex;
    gap: 10px;
}

.filtro-btn {
    background: transparent;
    border: 1px solid #444;
    padding: 8px 20px;
    border-radius: 30px;
    color: #ccc;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.filtro-btn i {
    margin-right: 8px;
}

.filtro-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.filtro-btn:active {
    transform: scale(0.95);
}

.filtros-tipo {
    display: flex;
    gap: 10px;
}

.filtro-tipo-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    color: #888;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.filtro-tipo-btn i {
    margin-right: 5px;
}

.filtro-tipo-btn.active {
    background: #2a2a2a;
    color: #fff;
}

/* ============================================ */
/* SEÇÃO DE EVENTOS */
/* ============================================ */

.eventos-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 20px;
}

.eventos-section {
    margin-bottom: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    background: rgba(255, 69, 0, 0.15);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-tag.muted {
    background: rgba(255,255,255,0.05);
    color: #666;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-title span {
    color: var(--primary-color);
}

.section-subtitle {
    color: #aaa;
    font-size: 0.9rem;
}

/* ============================================ */
/* GRID DE EVENTOS (OS FODAS) */
/* ============================================ */

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.evento-card {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.08);
}

.evento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.evento-card.street {
    border-top: 3px solid var(--street-neon);
}

.evento-card.offroad {
    border-top: 3px solid var(--dirt-color);
}

.evento-card.mixed {
    border-top: 3px solid var(--primary-color);
}

.evento-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.evento-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.evento-card:hover .evento-card-image img {
    transform: scale(1.05);
}

.evento-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0,0,0,0.8);
}

.badge-street {
    color: var(--street-neon);
    border: 1px solid var(--street-neon);
}

.badge-offroad {
    color: var(--dirt-color);
    border: 1px solid var(--dirt-color);
}

.badge-mixed {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.evento-card-hot {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff0000;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% { opacity: 0.8; }
    50% { opacity: 1; box-shadow: 0 0 10px #ff0000; }
    100% { opacity: 0.8; }
}

.evento-card-content {
    display: flex;
    gap: 15px;
    padding: 20px;
}

.evento-data {
    text-align: center;
    min-width: 60px;
    background: rgba(0,0,0,0.4);
    border-radius: 12px;
    padding: 10px;
}

.evento-dia {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.evento-mes {
    font-size: 0.7rem;
    color: #aaa;
    text-transform: uppercase;
}

.evento-info {
    flex: 1;
}

.evento-titulo {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}

.evento-subtitulo {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 12px;
}

.evento-meta {
    display: flex;
    gap: 15px;
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 12px;
}

.evento-meta i {
    margin-right: 4px;
    color: var(--primary-color);
}

.evento-vagas {
    margin-top: 10px;
}

.vagas-bar {
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.vagas-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
}

.vagas-text {
    font-size: 0.65rem;
    color: #ffaa00;
}

.evento-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.evento-preco {
    text-align: left;
}

.preco-valor {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.preco-label {
    font-size: 0.7rem;
    color: #666;
}

.btn-inscrever {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-inscrever:active {
    transform: scale(0.95);
}

/* ============================================ */
/* EVENTOS PASSADOS - FOMO PURA */
/* ============================================ */

.eventos-past-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.evento-past-card {
    background: rgba(10, 10, 10, 0.7);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    filter: grayscale(0.3);
}

.evento-past-card:hover {
    filter: grayscale(0);
    transform: translateY(-4px);
}

.past-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.past-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.past-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.past-overlay i {
    font-size: 2rem;
    color: var(--primary-color);
}

.past-card-content {
    padding: 15px;
}

.past-card-date {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 8px;
}

.past-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.past-card-desc {
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 12px;
    line-height: 1.4;
}

.past-card-stats {
    display: flex;
    gap: 15px;
    font-size: 0.7rem;
    color: #777;
    margin-bottom: 15px;
}

.btn-saiba-mais {
    width: 100%;
    background: transparent;
    border: 1px solid #444;
    padding: 8px;
    border-radius: 8px;
    color: #ccc;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-saiba-mais:active {
    background: rgba(255,255,255,0.1);
}

/* ============================================ */
/* CTA - NÃO PERCA */
/* ============================================ */

.cta-nao-perca {
    margin-top: 60px;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,69,0,0.3);
}

.cta-content {
    text-align: center;
    padding: 50px 30px;
}

.cta-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cta-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.cta-content p {
    color: #aaa;
    margin-bottom: 25px;
}

.btn-notificar {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-notificar:active {
    transform: scale(0.95);
}

/* ============================================ */
/* CALENDÁRIO */
/* ============================================ */

.calendario-section {
    margin-top: 60px;
}

.calendario-card {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    flex-wrap: wrap;
    gap: 30px;
    border: 1px solid rgba(255,255,255,0.08);
}

.calendario-info {
    flex: 2;
}

.calendario-info i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.calendario-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.calendario-info p {
    color: #aaa;
    margin-bottom: 20px;
}

.calendario-meses {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.calendario-meses span {
    background: #222;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
}

.calendario-stats {
    flex: 1;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.cal-stat {
    text-align: center;
}

.cal-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.cal-label {
    font-size: 0.7rem;
    color: #888;
}

/* ============================================ */
/* RESPONSIVO */
/* ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        gap: 25px;
    }
    
    .hero-stat .stat-number {
        font-size: 1.5rem;
    }
    
    .filtros-wrapper {
        flex-direction: column;
    }
    
    .eventos-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .calendario-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .calendario-meses {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .eventos-container {
        padding: 30px 15px;
    }
    
    .evento-card-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .evento-meta {
        justify-content: center;
    }
    
    .evento-card-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-inscrever {
        width: 100%;
        justify-content: center;
    }
}