/* ==========================================================================
   Página de Arquivo de Eventos
   ========================================================================== */

/* Remove body padding — hero starts from top like homepage */
body.post-type-archive-evento {
    padding-top: 0;
}

/* Hero */
.eventos-hero {
    position: relative;
    min-height: 380px;
    padding-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: transparent;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.eventos-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, var(--eventos-hero-overlay, 0.6));
    z-index: 1;
}

.eventos-hero .container {
    position: relative;
    z-index: 2;
}

.eventos-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}

.eventos-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Clip-path bottom */
.eventos-hero-clip {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

/* ==========================================================================
   Search Bar
   ========================================================================== */

.eventos-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 16px 20px;
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
    position: relative;
    z-index: 3;
    margin-bottom: 40px;
}

.eventos-search-input-wrapper {
    position: relative;
    flex: 1;
}

.eventos-search-input-wrapper svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #999;
    pointer-events: none;
}

.eventos-search-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm, 6px);
    font-size: 14px;
    font-family: inherit;
    color: var(--color-text-dark, #333);
    transition: border-color 0.2s ease;
    outline: none;
}

.eventos-search-input:focus {
    border-color: var(--color-primary-blue, #0078D4);
}

.eventos-search-input::placeholder {
    color: #aaa;
}

.eventos-filter-select {
    padding: 12px 36px 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm, 6px);
    font-size: 14px;
    font-family: inherit;
    color: var(--color-text-dark, #333);
    background: #fff;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 160px;
}

.eventos-filter-select:focus {
    border-color: var(--color-primary-blue, #0078D4);
}

/* ==========================================================================
   Events Grid
   ========================================================================== */

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.eventos-grid .event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.eventos-grid .event-card {
    height: 100%;
}

/* Card filter transition */
.eventos-grid .event-card-wrapper {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.eventos-grid .event-card-wrapper.hidden {
    display: none;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.eventos-empty {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.eventos-empty.visible {
    display: block;
}

.eventos-empty svg {
    width: 48px;
    height: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

.eventos-empty p {
    font-size: 16px;
    margin: 0;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.eventos-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 48px;
    padding-bottom: 20px;
}

.eventos-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm, 6px);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-dark, #333);
    text-decoration: none;
    background: #f5f5f5;
    transition: all 0.2s ease;
}

.eventos-pagination .page-numbers:hover {
    background: var(--color-primary-blue, #0078D4);
    color: #fff;
}

.eventos-pagination .page-numbers.current {
    background: var(--color-primary-blue, #0078D4);
    color: #fff;
}

.eventos-pagination .page-numbers.prev,
.eventos-pagination .page-numbers.next {
    width: auto;
    padding: 0 16px;
    gap: 6px;
}

.eventos-pagination .page-numbers.dots {
    background: transparent;
    cursor: default;
}

.eventos-pagination .page-numbers.dots:hover {
    background: transparent;
    color: var(--color-text-dark, #333);
}

/* ==========================================================================
   Archive Section Padding
   ========================================================================== */

.eventos-archive-section {
    padding: 0 0 80px;
    background: transparent;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .eventos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .eventos-hero {
        min-height: 240px;
    }

    .eventos-hero-title {
        font-size: 30px;
    }

    .eventos-hero-subtitle {
        font-size: 15px;
    }

    .eventos-search-bar {
        flex-direction: column;
        margin-top: -20px;
        padding: 14px;
    }

    .eventos-search-input-wrapper {
        width: 100%;
    }

    .eventos-filter-select {
        width: 100%;
        min-width: unset;
    }

    .eventos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .eventos-hero {
        min-height: 200px;
    }

    .eventos-hero-title {
        font-size: 26px;
    }
}
