﻿:root {
    --primary-color: #673ab7;
    --primary-dark: #512da8;
    --danger-color: #e91e63;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 0.75rem;
}

/* ================================================= */
/* =========== SEÇÃO DE FILTROS (VERSÃO 3) =========== */
/* ================================================= */

.filter-section-v3 {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    padding: 2.5rem 1rem;
    color: #fff;
    margin-bottom: 2rem;
}

.search-bar-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    max-width: 800px; /* Limita a largura da barra de busca em telas grandes */
    margin: 0 auto;
}

.main-search-bar {
    display: flex;
    flex-grow: 1;
    background-color: #fff;
    /* Raio de borda mais suave para um look moderno */
    border-radius: 1rem;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.search-segment {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
}

    .search-segment i {
        color: var(--primary-color);
        margin-right: 0.75rem;
    }

    .search-segment .form-control {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0;
        height: auto;
        color: #333;
        width: 100%;
    }

        .search-segment .form-control::placeholder {
            color: #888;
        }

.btn-icon {
    padding: 0 0.5rem;
    color: #999;
}

    .btn-icon:hover {
        color: var(--primary-color);
    }

.action-buttons {
    display: flex;
    gap: 0.75rem;
}

.filter-offcanvas-btn, .search-submit-btn {
    /* Raio de borda suave para combinar com a barra de busca */
    border-radius: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
}

.filter-offcanvas-btn {
    padding: 0 1.25rem;
}

.search-submit-btn {
    width: 52px;
    font-size: 1.2rem;
}

    .filter-offcanvas-btn:hover, .search-submit-btn:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: #fff;
    }

.filter-offcanvas-btn i {
    margin-right: 0.5rem;
}


/* ================================================= */
/* ========= ESTILOS DO PAINEL DE FILTROS ============ */
/* ================================================= */

.offcanvas-header {
    border-bottom: 1px solid #dee2e6;
}

.offcanvas-title {
    font-weight: 600;
    color: var(--primary-color);
}

.offcanvas-footer {
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 0.75rem;
}

    .offcanvas-footer .btn {
        flex-grow: 1;
        padding: 0.6rem;
        font-weight: 600;
    }

.filter-subtitle {
    font-weight: 600;
    color: #555;
    margin-bottom: 1rem;
}

.date-filter-group .form-control {
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quick-filter-item {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 50px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .quick-filter-item:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .quick-filter-item.active {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: #fff;
    }

.category-filters .form-check {
    margin-bottom: 0.75rem;
}

.category-filters .form-check-label {
    cursor: pointer;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.category-filters .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
    /* Muda a cor do texto da categoria quando o checkbox está marcado */
    .category-filters .form-check-input:checked + .form-check-label {
        color: var(--primary-color);
        font-weight: 600;
    }

.category-filters .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(103, 58, 183, 0.25);
}


/* ================================================= */
/* ============= TÍTULOS DE SEÇÃO ================== */
/* ================================================= */

.section-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background-color: var(--primary-color);
    }


/* ================================================= */
/* ========== ESTILOS DOS CARDS DE EVENTO ========== */
/* ================================================= */

.event-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .event-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

.card-img-container {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
}

.card-img-top {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.5em; /* Garante altura mínima para 2 linhas */
}

.event-info {
    font-size: 0.9rem;
    color: #666;
}

.schedule-toggle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

    .schedule-toggle:hover {
        text-decoration: underline;
        color: var(--primary-dark);
    }

    .schedule-toggle .fa-chevron-down {
        transition: transform 0.3s ease;
        font-size: 0.75rem;
    }

    .schedule-toggle[aria-expanded="true"] .fa-chevron-down {
        transform: rotate(180deg);
    }

.schedule-details {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.schedule-list {
    font-size: 0.85rem;
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

    .schedule-list li {
        display: flex;
        justify-content: space-between;
        padding: 0.25rem 0;
    }

    .schedule-list .day {
        font-weight: 500;
        color: #333;
    }

    .schedule-list .time {
        color: #666;
    }

.category-badges {
    margin-top: 0.75rem;
    min-height: 2rem;
}

.category-badge {
    background-color: #e0e0e0;
    color: #555;
    padding: 0.3em 0.6em;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    display: inline-block;
}

.btn-primary-details {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

    .btn-primary-details:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
        color: #fff;
    }

.favorite-btn-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .favorite-btn-overlay:hover {
        background-color: #fff;
        transform: scale(1.1);
    }

    .favorite-btn-overlay i {
        font-size: 1.2rem;
        color: #333;
        transition: color 0.2s ease;
    }

    .favorite-btn-overlay.favorited i {
        color: var(--danger-color);
    }

    .favorite-btn-overlay.favorited .fa-regular {
        display: none;
    }

    .favorite-btn-overlay:not(.favorited) .fa-solid {
        display: none;
    }


/* ================================================= */
/* ========= ESTILOS DOS BOTÕES DE NAVEGAÇÃO DO SWIPER (VERSÃO FINAL) ========= */
/* ================================================= */

.swiper-button-next,
.swiper-button-prev {
    /* ALTERAÇÃO: Fundo com a cor primária por padrão */
    background-color: var(--primary-color);
    /* ALTERAÇÃO: Seta branca por padrão */
    color: #ffffff !important;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 10px;
}

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 1.2rem !important;
        font-weight: bold;
    }

    /* ALTERAÇÃO: Efeito de hover agora usa a cor --primary-dark */
    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background-color: var(--primary-dark);
        color: #fff !important; /* A seta permanece branca */
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    }

/* Regras específicas para posicionamento (sem alteração) */
.swiper-button-prev {
    left: 0;
}

.swiper-button-next {
    right: 0;
}


/* Ajuste para Mobile (sem alteração) */
@media (max-width: 767px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
        margin: 0 5px;
    }

        .swiper-button-next::after,
        .swiper-button-prev::after {
            font-size: 1rem !important;
        }
}

/* ================================================= */
/* ============== RESPONSIVIDADE GERAL ============= */
/* ================================================= */

@media (max-width: 767px) {
    .filter-section-v3 {
        padding: 2rem 1rem;
    }

    .search-bar-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .main-search-bar {
        border-radius: 1rem;
        padding: 0.75rem 1.25rem;
    }

    .filter-offcanvas-btn span {
        display: none; /* Esconde o texto "Filtros" em telas pequenas */
    }

    .filter-offcanvas-btn {
        flex-grow: 1;
    }

    .search-submit-btn {
        flex-grow: 1;
    }

    .display-5 {
        font-size: 2.2rem;
    }

    .event-card .card-body {
        padding: 0.75rem;
    }

    .event-title {
        font-size: 1.1rem;
    }

    .event-info, .category-badge {
        font-size: 0.85rem;
    }

    .favorite-btn-overlay {
        width: 35px;
        height: 35px;
        top: 8px;
        right: 8px;
    }

        .favorite-btn-overlay i {
            font-size: 1rem;
        }
}


/* ================================================= */
/* ==== NOVOS ESTILOS PARA EFEITO COVERFLOW RESPONSIVO ==== */
/* ================================================= */

.event-carousel .swiper-slide {
    /* Define a aparência PADRÃO para os slides (os laterais) */
    opacity: 0.4;
    transform: scale(0.92);
    transition: transform 0.4s ease, opacity 0.4s ease;
    width: 80%; /* No mobile, um slide ocupa 80% da tela */
    max-width: 350px; /* Largura máxima de um card */
}

.event-carousel .swiper-slide-active,
.event-carousel .swiper-slide-duplicate-active {
    /* Define a aparência para o slide que está no CENTRO */
    opacity: 1;
    transform: scale(1);
}

/* Ajustes para Desktop para um layout mais limpo */
@media (min-width: 1200px) {
    .event-carousel .swiper-slide {
        /* Remove a limitação de largura no desktop, pois o slidesPerView já controla isso */
        width: auto;
        max-width: none;
    }
}


/* ================================================= */
/* ==== ESTILOS PARA CENTRALIZAR "VER HORÁRIOS" ==== */
/* ================================================= */

/* O container principal já tem a classe text-center do Bootstrap,
   mas podemos adicionar mais estilos se necessário. */
.schedule-container {
    /* (Vazio por enquanto, mas pronto para futuros estilos) */
}

/* Ajusta o painel que se expande */
.schedule-details {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

/* Faz a lista de horários se comportar corretamente com a centralização */
.schedule-list {
    display: inline-block; /* Faz a lista ter apenas a largura do seu conteúdo */
    text-align: left; /* Alinha o texto DENTRO da lista de volta para a esquerda */
}