/* Extraído de partials/eventos_vitrine.php: manter idêntico ao PHP. */
/* =========================================================
   ESTILOS PREMIUM DA VITRINE DE EVENTOS — GLOBALFIRE HUB
   Design System: Alta sofisticação, visual SaaS/Luxo moderno
   ========================================================= */

body {
    overflow-x: hidden;
}

.hub-events-page {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: var(--hub-font-sans, Inter, system-ui, -apple-system, sans-serif);
    color: var(--hub-text);
}

/* Proteção global de tamanho de ícones SVG na página de eventos */
.hub-events-page svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    max-width: 100%;
}

/* 1. Header / Banner Full-Bleed (de fora a fora) com Vídeo e Fade para Transparência */
.hub-events-header {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -28px; /* encosta no topo caso o .site-content tenha padding-top */
    margin-bottom: 36px;
    padding: 64px 20px 44px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Container do vídeo com máscara de transparência gradual para baixo */
.hub-events-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.85) 55%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.85) 55%, rgba(0, 0, 0, 0) 100%);
}

.hub-events-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0.72;
}

/* Película escura + brilho laranja + transição suave para o fundo da página */
.hub-events-bg-fade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 25%, rgba(243, 106, 39, 0.22) 0%, transparent 60%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.65) 65%, rgba(0, 0, 0, 0.98) 100%);
}

.hub-events-header-inner {
    position: relative;
    z-index: 2;
    max-width: 1160px;
    margin: 0 auto;
}

.hub-events-header-top {
    max-width: 860px;
}

.hub-events-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(12, 12, 14, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(243, 106, 39, 0.38);
    color: var(--hub-orange, #F36A27);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hub-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hub-orange, #F36A27);
    box-shadow: 0 0 8px rgba(243, 106, 39, 0.8);
}

/* Título com estilo tipográfico da referência: mistura de palavras grossas (Anton) e finas (Barlow Condensed) + degradê */
.hub-events-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.18em;
    font-size: clamp(2.8rem, 5.8vw, 4.6rem);
    text-transform: uppercase;
    line-height: 0.94;
    margin: 0 0 16px 0;
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.8));
}

.hub-events-title .w-bold {
    font-family: 'Anton', Impact, 'Arial Black', sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: 0.015em;
}

.hub-events-title .w-thin {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 300 !important;
    letter-spacing: 0.02em;
    transform: scaleY(1.03);
    display: inline-block;
}

.hub-events-title .word-white {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

.hub-events-title .word-accent {
    background: linear-gradient(90deg, #FFE2C2 0%, #F2A86B 55%, #F36A27 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

.hub-events-subtitle {
    color: #cbd5e1;
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0 0 28px 0;
    max-width: 720px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

/* 2. Toolbar: Filtros Rápidos + Busca (Efeito Vidro Translúcido sobre o final do vídeo) */
.hub-events-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: rgba(12, 12, 14, 0.62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 10px 14px;
    box-sizing: border-box;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.hub-events-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.hub-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.hub-filter-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.hub-filter-pill.is-active {
    background: var(--hub-orange, #F36A27);
    border-color: var(--hub-orange, #F36A27);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(243, 106, 39, 0.35);
}

.hub-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.68rem;
    font-weight: 800;
}

.hub-filter-pill.is-active .hub-filter-count {
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

.hub-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(9, 9, 11, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0 14px;
    min-height: 38px;
    width: 260px;
    box-sizing: border-box;
    color: #a1a1aa;
    transition: all 0.2s ease;
}

.hub-search-box:focus-within {
    border-color: var(--hub-orange, #F36A27);
    box-shadow: 0 0 0 3px rgba(243, 106, 39, 0.2);
    color: #ffffff;
}

.hub-search-box svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.hub-search-box input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.84rem;
    padding: 6px 0;
}

.hub-search-box input::placeholder {
    color: #8c8c94;
}

/* 3. Hero Feature Card (Destaque Principal) */
.hub-event-hero-wrap {
    margin-bottom: 38px;
}

.hub-event-hero-card {
    background: #0c0c0e;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hub-event-hero-card:hover {
    border-color: rgba(243, 106, 39, 0.35);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.7), 0 0 30px rgba(243, 106, 39, 0.1);
}

.hub-hero-media {
    position: relative;
    min-height: 340px;
    background: #141417;
    overflow: hidden;
}

.hub-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hub-event-hero-card:hover .hub-hero-img {
    transform: scale(1.02);
}

.hub-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 12, 14, 0.1) 0%, rgba(12, 12, 14, 0.75) 100%);
}

.hub-hero-tag-floating {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    z-index: 2;
}

.hub-hero-content {
    padding: 30px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    background: #0c0c0e;
}

.hub-hero-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--hub-orange, #F36A27);
    font-size: 0.82rem;
}

.hub-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hub-meta-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.hub-hero-title {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.015em;
}

.hub-hero-desc {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

.hub-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 6px 0;
}

.hub-highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
}

.hub-highlight-badge svg {
    width: 12px;
    height: 12px;
    color: var(--hub-orange, #F36A27);
    flex-shrink: 0;
}

.hub-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 6px;
}

/* 4. Botões e Ações */
.hub-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--hub-orange, #F36A27);
    border: 1px solid var(--hub-orange, #F36A27);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(243, 106, 39, 0.3);
    transition: all 0.2s ease;
}

.hub-btn-primary svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.hub-btn-primary:hover {
    background: #d9581c;
    border-color: #d9581c;
    box-shadow: 0 6px 20px rgba(243, 106, 39, 0.45);
    transform: translateY(-1px);
}

.hub-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e4e4e7;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hub-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    transform: translateY(-1px);
}

/* 5. Status Badges */
.hub-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hub-status-badge.badge-open {
    background: rgba(243, 106, 39, 0.95);
    color: #ffffff;
}

.hub-status-badge.badge-free {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.hub-status-badge.badge-limited {
    background: rgba(234, 179, 8, 0.2);
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #fde047;
}

.hub-status-badge.badge-closed {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #a1a1aa;
}

.hub-badge-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
    animation: hubPulseDot 1.4s infinite ease-in-out;
}

@keyframes hubPulseDot {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.hub-cat-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hub-cat-label-subtle {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: #cbd5e1;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* 6. Barra de Título da Grade */
.hub-section-bar {
    margin-bottom: 20px;
}

.hub-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

/* 7. Grid de Cards de Eventos */
.hub-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 22px;
    margin-bottom: 44px;
}

.hub-event-card {
    background: #0c0c0e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hub-event-card:hover {
    transform: translateY(-3px);
    border-color: rgba(243, 106, 39, 0.35);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 20px rgba(243, 106, 39, 0.08);
}

.hub-card-thumb {
    position: relative;
    height: 180px;
    background: #141417;
    overflow: hidden;
}

.hub-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hub-event-card:hover .hub-card-thumb img {
    transform: scale(1.04);
}

.hub-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    z-index: 2;
}

.hub-card-body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.hub-card-main-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hub-card-date-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hub-orange, #F36A27);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hub-card-date-row svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.hub-card-event-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.01em;
}

.hub-card-event-desc {
    color: #8c8c94;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hub-card-bottom-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hub-card-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #71717a;
    font-size: 0.78rem;
    font-weight: 600;
}

.hub-card-location svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.hub-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
}

.hub-card-btn-action,
.hub-card-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 16px;
    box-sizing: border-box;
    border-radius: 999px;
    font-size: 0.82rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.hub-card-btn-action svg,
.hub-card-btn-secondary svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* Ação principal */
.hub-card-btn-action {
    flex: 1 1 auto;
    background: var(--hub-orange, #F36A27);
    border: 1px solid var(--hub-orange, #F36A27);
    color: #ffffff;
    font-weight: 800;
}

.hub-card-btn-action:hover {
    background: #d9581c;
    border-color: #d9581c;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Ação secundária */
.hub-card-btn-secondary {
    flex: 0 1 auto;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    font-weight: 700;
}

.hub-card-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* 8. Empty State */
.hub-events-empty {
    text-align: center;
    padding: 48px 20px;
    background: #0c0c0e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 40px;
}

.hub-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #71717a;
    margin-bottom: 12px;
}

.hub-empty-icon svg {
    width: 24px;
    height: 24px;
}

.hub-events-empty h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.hub-events-empty p {
    color: #8c8c94;
    font-size: 0.9rem;
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.5;
}

/* 9. Banner CTA Notificações / WhatsApp */
.hub-events-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, #0e0e11 0%, #17110e 60%, #1c120a 100%);
    border: 1px solid rgba(243, 106, 39, 0.25);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    padding: 26px 32px;
    flex-wrap: wrap;
}

.hub-cta-content {
    flex: 1;
    min-width: 0;
}

.hub-cta-badge {
    display: inline-block;
    color: var(--hub-orange, #F36A27);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.hub-cta-content h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
}

.hub-cta-content p {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
    max-width: 580px;
}

.hub-cta-actions {
    flex-shrink: 0;
}

.hub-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    border: 1px solid #25D366;
    color: #000000;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
    transition: all 0.2s ease;
}

.hub-btn-whatsapp svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.hub-btn-whatsapp:hover {
    background: #20ba5a;
    border-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-1px);
}

/* Responsividade & Usabilidade Mobile */
@media (max-width: 860px) {
    .hub-event-hero-card {
        grid-template-columns: 1fr;
    }

    .hub-hero-media {
        min-height: 240px;
    }

    .hub-hero-content {
        padding: 24px 20px;
    }
}

@media (max-width: 768px) {
    .hub-events-page {
        margin: 0 auto 40px;
        padding: 0 16px;
    }

    .hub-events-header {
        padding: 44px 16px 32px;
    }

    .hub-events-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
    }

    .hub-search-box {
        width: 100%;
        order: 1;
    }

    .hub-events-filters {
        order: 2;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .hub-events-filters::-webkit-scrollbar {
        display: none;
    }

    .hub-events-cta-banner {
        padding: 22px 18px;
    }

    .hub-cta-actions,
    .hub-cta-actions a {
        width: 100%;
    }
}
