/* Calendário */

/* Banner */
.calendar-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    margin-top: 80px;
}


.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    color: white;
    width: 80%;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 1.5em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Filtros */
.calendar-filters {
    padding: 34px 0;
    background-color: #202020;
    border-bottom: 1px solid rgba(255, 40, 0, 0.18);
}

.filtros-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.filtros-titulo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    white-space: nowrap;
}

.filtros-titulo i {
    color: var(--primary-color);
}

.filtros-botoes,
.extra-filtros {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.extra-filtros {
    width: 100%;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.extra-filtros[hidden] {
    display: none;
}

.filtro-btn,
.filtro-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 18px;
    background-color: #171717;
    color: var(--light-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    font-weight: 700;
}

.filtro-btn i,
.filtro-toggle i {
    color: var(--primary-color);
}

.filtro-btn:hover,
.filtro-btn.active,
.filtro-toggle:hover,
.filtro-toggle.open {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.filtro-btn:hover i,
.filtro-btn.active i,
.filtro-toggle:hover i,
.filtro-toggle.open i {
    color: white;
}

.filtro-toggle.open i {
    transform: rotate(180deg);
}

/* Calendário */
.events-calendar {
    padding: 60px 20px;
    background-color: var(--dark-color);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.calendar-header h2 {
    font-size: 2.5em;
    position: relative;
    display: inline-block;
}

.calendar-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.calendar-view {
    display: flex;
    gap: 15px;
}

.view-btn {
    padding: 12px 28px;
    background-color: var(--medium-dark-color);
    color: var(--light-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.view-btn.active {
    background-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 40, 0, 0.3);
}

.calendar-month-view {
    background-color: var(--medium-dark-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow-light);
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.calendar-nav button {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.calendar-nav button:hover {
    background-color: rgba(255, 40, 0, 0.2);
    color: var(--primary-color);
}

.calendar-nav h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.week-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    margin-bottom: 15px;
    padding: 15px 0;
    border-bottom: 2px solid rgba(255, 40, 0, 0.3);
    color: var(--primary-color);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    background-color: var(--dark-color);
    min-height: 110px;
    padding: 10px;
    border-radius: var(--border-radius);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.calendar-day:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 40, 0, 0.2);
}

.calendar-day.prev-month,
.calendar-day.next-month {
    opacity: 0.4;
}

.calendar-day .day-number {
    position: absolute;
    top: 8px;
    right: 12px;
    font-weight: 700;
    font-size: 1rem;
}

.calendar-day.today {
    border: 2px solid var(--primary-color);
    background-color: rgba(255, 40, 0, 0.1);
}

.calendar-day.today .day-number {
    background-color: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 5px;
    right: 8px;
}

.calendar-day.has-events::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.day-events {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.day-event {
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.day-event:hover {
    transform: translateX(3px);
}

.event-f1,
.event-formula1,
.event-formula-1 {
    background-color: rgba(255, 70, 85, 0.2);
    border-left: 3px solid var(--primary-color);
}

.event-wrc {
    background-color: rgba(0, 123, 255, 0.2);
    border-left: 3px solid #007bff;
}

.event-motogp {
    background-color: rgba(255, 193, 7, 0.2);
    border-left: 3px solid #ffc107;
}

.event-wec {
    background-color: rgba(46, 204, 113, 0.18);
    border-left: 3px solid #2ecc71;
}

.event-indycar {
    background-color: rgba(52, 152, 219, 0.18);
    border-left: 3px solid #3498db;
}

.event-nascar {
    background-color: rgba(241, 196, 15, 0.18);
    border-left: 3px solid #f1c40f;
}

.calendar-list-view {
    background-color: var(--medium-dark-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow-light);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-event {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: var(--dark-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.list-event:hover {
    transform: translateX(8px);
    box-shadow: var(--box-shadow-light);
}

.list-event::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
}

.list-event-date {
    min-width: 80px;
    text-align: center;
    margin-right: 25px;
    padding: 10px;
    background-color: var(--medium-dark-color);
    border-radius: var(--border-radius);
}

.list-event-day {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.list-event-month {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--grey-color);
    display: block;
    margin-top: 5px;
}

.list-event-info {
    flex-grow: 1;
}

.list-event-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 8px;
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(255, 40, 0, 0.1);
    border-radius: 20px;
}

.list-event-name {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--light-color);
}

.list-event-location {
    font-size: 0.9rem;
    color: var(--grey-color);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-event-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--grey-color);
}

.list-event-time i {
    color: var(--primary-color);
}

.featured-events {
    padding: 60px 20px;
    background-color: var(--medium-dark-color);
}

.featured-events h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.featured-events h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.featured-card {
    display: flex;
    background-color: var(--dark-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(255, 40, 0, 0.2);
}

.featured-card .event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    background: linear-gradient(135deg, var(--primary-color), #ff5c33);
    color: white;
    padding: 20px 15px;
}

.featured-card .date-day {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.featured-card .date-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 5px;
}

.featured-card .event-info {
    padding: 20px;
    flex-grow: 1;
}

.featured-card .event-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 8px;
    display: inline-block;
}

.featured-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--light-color);
}

.featured-card .event-location {
    font-size: 0.9rem;
    color: var(--grey-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-card .event-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--grey-color);
}

.featured-card .event-time i {
    color: var(--primary-color);
}

.no-events {
    text-align: center;
    padding: 60px;
    color: var(--grey-color);
    font-size: 1.2rem;
}

.no-events i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Efeitos */
@media (max-width: 992px) {
    .calendar-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .calendar-day {
        min-height: 90px;
    }
    
    .day-event {
        font-size: 0.6rem;
    }
}

@media (max-width: 768px) {
    .calendar-hero {
        height: 40vh;
        min-height: 350px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .calendar-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .calendar-header h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .calendar-nav {
        flex-direction: column;
        text-align: center;
    }
    
    .calendar-nav h3 {
        order: -1;
    }
    
    .calendar-day {
        min-height: 70px;
    }
    
    .day-events {
        display: none;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .list-event {
        flex-direction: column;
        text-align: center;
    }
    
    .list-event-date {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .filtros-wrapper {
        justify-content: center;
    }

    .filtros-botoes,
    .extra-filtros {
        justify-content: center;
        width: 100%;
    }

    .filtros-titulo {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .calendar-hero {
        height: 35vh;
        min-height: 300px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .calendar-day {
        min-height: 60px;
        font-size: 0.7rem;
    }
    
    .calendar-nav h3 {
        font-size: 1.2rem;
    }
    
    .filtro-btn,
    .filtro-toggle {
        min-height: 36px;
        padding: 0 14px;
        font-size: 0.8rem;
    }
    
    .featured-card {
        flex-direction: column;
    }
    
    .featured-card .event-date {
        flex-direction: row;
        gap: 10px;
        padding: 12px;
    }
    
    .featured-card .date-day {
        font-size: 1.5rem;
    }
}

.destaques {
    background-color: rgba(255, 40, 0, 0.05) !important;
    border-radius: 40px;
    margin: 40px auto;
    max-width: 1400px;
}


.content-section h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}
