@charset "UTF-8";

/* ========== CSS VARIABLES ========== */

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #111111;
    --accent-orange: #ff6b35;
    --accent-gold: #ffd700;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --card-bg: rgba(17, 17, 17, 0.9);
    --card-border: rgba(255, 107, 53, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.3);
}


/* ========== OVERRIDE GERAL.CSS CONFLICTS ========== */


/* Override h1 styles from geral.css */

.events-hero h1,
.events-section h2 {
    border-bottom: none !important;
    border-image: none !important;
    animation: none !important;
}

.events-hero h1::after,
.events-section h2::after {
    display: none !important;
}


/* ========== EVENTS PAGE STYLES ========== */

.events-page {
    min-height: 100vh;
    background: var(--primary-bg);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}


/* ========== HERO SECTION ========== */

.events-hero {
    min-height: 70vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 69, 0, 0.05) 50%, rgba(0, 0, 0, 0.9) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
    margin-top: 0 !important;
}

.events-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/background.png') center/cover;
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem !important;
    font-weight: 900 !important;
    color: var(--text-primary) !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 0 40px rgba(255, 107, 53, 0.6) !important;
    letter-spacing: 2px !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    display: block !important;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 107, 53, 0.5);
}

.stat i {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

.stat span {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 600;
}


/* ========== EVENTS SECTION ========== */

.events-section {
    padding: 80px 20px;
    background: white;
    /* Fundo branco atrás dos cards */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 20px;
    margin: 40px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
}


/* Pseudo-elemento para criar fundo branco atrás da seção */

.events-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: white;
    border-radius: 25px;
    z-index: -1;
}


/* Ajustar cores do texto para fundo branco */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem !important;
    color: #333333 !important;
    /* Texto escuro para fundo branco */
    margin-bottom: 1rem !important;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5) !important;
}

.section-header p {
    font-size: 1.2rem;
    color: #666666;
    /* Texto cinza escuro para fundo branco */
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}


/* ========== EVENTS GRID ========== */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    justify-items: center;
}


/* ========== EVENT CARDS ========== */

.event-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    width: 100%;
    max-width: 400px;
    height: fit-content;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.event-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 107, 53, 0.6);
    box-shadow: var(--shadow-glow);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: rgba(0, 0, 0, 0.1);
    padding: 10px;
    transition: var(--transition-smooth);
}

.card-image img:hover {
    transform: scale(1.05);
}

.event-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    text-align: center;
    align-self: center;
    margin-bottom: 0.5rem;
}

.event-status.active {
    background: rgba(76, 175, 80, 0.9);
    color: white;
}

.event-status.coming-soon {
    background: rgba(255, 193, 7, 0.9);
    color: #333;
}

.event-status.completed {
    background: rgba(158, 158, 158, 0.9);
    color: white;
}

.event-status.ongoing {
    background: rgba(33, 150, 243, 0.9);
    color: white;
}

.event-status.recurring {
    background: rgba(156, 39, 176, 0.9);
    color: white;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.event-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    text-align: center;
    flex-grow: 1;
}

.event-date {
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.card-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-orange), #ff8c42);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    text-align: center;
    min-width: 120px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff8c42, var(--accent-orange));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
    color: white;
}

.btn-disabled {
    background: rgba(158, 158, 158, 0.3);
    color: #9e9e9e;
    padding: 12px 24px;
    border: 1px solid rgba(158, 158, 158, 0.5);
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: not-allowed;
    text-align: center;
    min-width: 120px;
}


/* ========== BACK TO TEAMS SECTION ========== */

.back-section {
    padding: 80px 20px;
    text-align: center;
    background: var(--primary-bg);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.back-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--accent-orange), #ff8c42);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 107, 53, 0.3);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.back-button:hover {
    background: linear-gradient(135deg, #ff8c42, var(--accent-orange));
    transform: translateX(-8px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
    color: white;
}

.back-button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-4px);
}

.back-button span {
    font-weight: 600;
    letter-spacing: 0.5px;
}


/* ========== SCROLL REVEAL ========== */

.scroll-reveal {
    opacity: 1 !important;
    /* Forçar visibilidade temporariamente */
    transform: translateY(0) !important;
    /* Forçar posição normal */
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


/* Forçar visibilidade dos cards temporariamente */

.event-card {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.events-grid {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
}


/* ========== RESPONSIVE DESIGN ========== */


/* Tablet Styles */

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem !important;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .section-header h2 {
        font-size: 2.5rem !important;
    }
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
        padding: 0 15px;
    }
    .event-card {
        max-width: 100%;
    }
}


/* Mobile Styles */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    .hero-stats {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    .stat {
        padding: 1rem;
    }
    .stat i {
        font-size: 2rem;
    }
    .section-header h2 {
        font-size: 2.2rem !important;
    }
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
    }
    .event-card {
        max-width: 100%;
    }
    .card-content {
        padding: 1.5rem;
    }
    .card-content h3 {
        font-size: 1.5rem;
    }
    .back-section {
        padding: 40px 15px;
    }
}


/* Small Mobile Styles */

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem !important;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    .stat {
        width: 100%;
        max-width: 250px;
    }
    .section-header h2 {
        font-size: 1.8rem !important;
    }
    .section-header p {
        font-size: 1rem;
    }
    .events-grid {
        padding: 0 10px;
    }
    .card-content {
        padding: 1rem;
    }
    .card-content h3 {
        font-size: 1.3rem;
    }
    .btn-primary,
    .btn-disabled {
        padding: 10px 20px;
        font-size: 0.8rem;
        min-width: 100px;
    }
}


/* Landscape Mobile Styles */

@media (max-width: 768px) and (orientation: landscape) {
    .events-hero {
        min-height: 50vh;
        padding: 60px 20px 40px;
    }
    .hero-content h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem;
    }
    .hero-subtitle {
        margin-bottom: 1.5rem;
    }
    .hero-stats {
        margin-top: 1rem;
    }
    .events-section {
        padding: 40px 20px;
    }
    .back-section {
        padding: 40px 20px;
    }
}