/*
Theme Name: AondeVamos 2026
Theme URI: https://aondevamos.pt
Author: Aonde Vamos
Description: Tema base para o portal de eventos AondeVamos.pt
Version: 0.1
Text Domain: aondevamos
*/

 
    :root {
        /* Cores Principais */
        --yellow-primary: #FFD500;
        --yellow: #FFD500;
        --black: #000000;
        --blue-primary: #2563EB;
        --blue: #2563EB;

        /* Categorias */
        --category-festivais: #FF1493;
        --category-feiras: #F97316;
        --category-espetaculos: #7C3AED;
        --category-miudos: #00BCD4;
        --category-diversos: #00A86B;
        --color-recomendado: #9C27B0;

        /* Tipografia */
        --font-heading: 'Poppins', sans-serif;
        --font-body: 'Inter', sans-serif;
    }

    /* LIGHT MODE */
    :root,
    html[data-theme="light"] {
        --white: #FFFFFF;
        --gray-light: #F5F5F5;
        --gray-medium: #E0E0E0;
        --gray-dark: #1A1A1A;
        --text-primary: #1A1A1A;
        --text-secondary: #666666;
        --text-tertiary: #999999;
        --border-color: #E0E0E0;
    }

    /* DARK MODE - EXATAMENTE como estava funcionando */
    html[data-theme="dark"] {
        --white: #0F0F0F;
        --gray-light: #1A1A1A;
        --gray-medium: #2D2D2D;
        --gray-dark: #F5F5F5;
        --text-primary: #FFFFFF;
        --text-secondary: #E0E0E0;
        --text-tertiary: #BDBDBD;
        --border-color: #404040;
    }


    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    body {
        font-family: var(--font-body);
        background: var(--white);
        color: var(--text-primary);
    }

    /* ==========================================
       SIDEBAR ESQUERDA
       ========================================== */
    .left-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        border-right: 1px solid var(--border-color);
        padding: 20px 16px;
        display: flex;
        flex-direction: column;
        z-index: 1000;
        overflow-y: auto;
    }
body.logged-in.admin-bar .left-sidebar {
    top: 32px;
}

    .logo-section {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 24px;
    }

    .hamburger-btn {
        width: 40px;
        height: 40px;
        background: var(--gray-light);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        transition: all 0.3s ease;
    }

    .hamburger-btn:hover {
        background: var(--yellow-primary);
    }

    .hamburger-line {
        width: 20px;
        height: 2px;
        background: var(--black);
        border-radius: 2px;
    }

    .logo-container {
        background: var(--yellow-primary);
        padding: 12px 20px;
        border-radius: 12px;
        flex: 1;
    }

    .logo-container img {
        height: 32px;
        width: 100%;
        object-fit: contain;
    }

    .districts-dropdown {
        position: fixed;
        left: 16px;
        top: 80px;
        width: 420px;
        max-height: 0;
        overflow: hidden;
        background: var(--white);
        border: 2px solid var(--border-color);
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        transition: max-height 0.4s ease, opacity 0.3s ease;
        opacity: 0;
        z-index: 2000;
    }

    .districts-dropdown.active {
        max-height: 600px;
        opacity: 1;
    }

    .districts-header {
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 16px;
    }

    .districts-grid {
        padding: 20px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .district-link {
        padding: 12px;
        text-align: center;
        background: var(--gray-light);
        border-radius: 8px;
        text-decoration: none;
        color: var(--text-primary);
        font-weight: 600;
        font-size: 14px;
        transition: all 0.2s ease;
    }

    .district-link:hover {
        background: var(--yellow-primary);
        transform: scale(1.05);
    }

    .sidebar-search {
        margin-bottom: 24px;
    }

    .search-wrapper {
        position: relative;
    }

    .search-input {
        width: 100%;
        padding: 14px 16px 14px 44px;
        border: 2px solid var(--border-color);
        border-radius: 50px;
        font-size: 15px;
        background: var(--gray-light);
        transition: all 0.3s ease;
    }

    .search-input:focus {
        outline: none;
        border-color: var(--yellow-primary);
        background: var(--white);
    }

    .search-icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        opacity: 0.5;
    }

    .categories-section {
        flex: 1;
    }

    .section-title {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 13px;
        text-transform: uppercase;
        color: var(--text-tertiary);
        margin-bottom: 16px;
        padding: 0 8px;
    }

    .nav-list {
        list-style: none;
    }

    .nav-item {
        margin-bottom: 4px;
    }

    .nav-link {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        border-radius: 50px;
        text-decoration: none;
        color: var(--text-primary);
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 17px;
        transition: all 0.2s ease;
    }
    .nav-link:hover {
        background: var(--gray-light);
        padding-left: 20px;
    }
    html[data-theme="dark"] .nav-link:hover {
        background: #2d2d2d;
        padding-left: 20px;
    }

    .nav-icon {
        font-size: 24px;
        width: 24px;
    }

    .sidebar-filters {
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
        margin-bottom: 20px;
    }

    .filters-scroll {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .filter-chip {
        padding: 14px 20px;
        background: var(--white);
        border: 2px solid var(--border-color);
        border-radius: 50px;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 15px;
        color: var(--text-primary);
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
    }

    .filter-chip:hover {
        border-color: var(--yellow-primary);
        background: var(--yellow-primary);
    }

    .filter-chip.active {
        background: var(--yellow-primary);
        border-color: var(--yellow-primary);
    }

    /* ==========================================
       LAYOUT PRINCIPAL
       ========================================== */
    .page-wrapper {
        margin-left: 280px;
        display: grid;
        grid-template-columns: 1fr 360px;
        gap: 0;
        min-height: 100vh;
    }

    .main-content {
        background: var(--white);
        min-height: 100vh; 
    }

    /* BREADCRUMB COM ANIMAÇÃO AO SCROLL */
    .breadcrumb-wrapper {
        position: sticky;
        top: 0;
        z-index: 999;
        background: var(--white);
        transition: all 0.3s ease;
    }

    .breadcrumb-wrapper.scrolled {
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border-bottom: 1px solid var(--border-color);
    }

    .breadcrumb {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        padding: 20px 0px;
        transition: all 0.3s ease;
    }

    /* BREADCRUMB SCROLLED - Mais compacto */
    .breadcrumb-wrapper.scrolled .breadcrumb {
        padding: 8px 0px;
        gap: 8px;
    }

    .breadcrumb a {
        font-size: 15px;
        font-weight: 600;
        color: var(--text-secondary);
        text-decoration: none;
        padding: 6px 12px;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

    .breadcrumb a:hover {
        color: var(--text-primary);
        background: var(--gray-light);
    }

    .breadcrumb .separator {
        font-size: 14px;
        color: var(--border-color);
        user-select: none;
    }

    .breadcrumb .current {
        font-size: 15px;
        font-weight: 700;
        color: var(--text-primary);
        padding: 6px 12px;
    }

    /* Breadcrumb scrolled - Estilo compacto com underline */
    .breadcrumb-wrapper.scrolled .breadcrumb a {
        font-size: 13px;
        padding: 4px 8px;
        border-radius: 0;
        background: transparent;
        font-weight: normal; 
    }

    .breadcrumb-wrapper.scrolled .breadcrumb a:hover {
        background: transparent;
        text-decoration: underline;
        color: var(--text-primary);
    }

    .breadcrumb-wrapper.scrolled .breadcrumb .current {
        font-size: 13px;
        padding: 4px 8px;
    }

    .breadcrumb-wrapper.scrolled .breadcrumb .separator {
        font-size: 12px;
    }

    .leaderboard-ad {
        background: var(--gray-light);
        border: 2px dashed var(--border-color);
        padding: 60px 20px;
        text-align: center;
        color: var(--text-tertiary);
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 14px;
        margin: 0 auto 40px;
        max-width: 970px;
        border-radius: 12px;
    }

    .main-container {
        max-width: 970px;
        margin: 0 auto;
        padding: 0 0px 0px;
    }

    .events-feed {
        padding: 40px;
        max-width: 1200px;
        margin: 0 auto;
    }
 
    /* ==========================================
       RIGHT SIDEBAR
       ========================================== */
    .right-sidebar {
        background: var(--white);
        border-left: 1px solid var(--border-color);
        padding: 24px;
    }

    .sidebar-ctas {
        margin-bottom: 24px;
    }

    .cta-button {
        width: 100%;
        padding: 16px;
        border: none;
        border-radius: 50px;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-bottom: 10px;
    }

    .cta-primary {
        background: var(--yellow-primary);
        color: var(--text-primary);
    }

    .cta-primary:hover {
        background: var(--black);
        color: var(--yellow-primary);
        transform: translateY(-2px);
    }

    .cta-secondary {
        background: transparent;
        color: var(--text-primary);
        border: 2px solid var(--border-color);
    }

    .cta-secondary:hover {
        border-color: var(--text-primary);
        background: var(--gray-light);
    }

    .ad-space {
        background: var(--gray-light);
        border: 2px dashed var(--border-color);
        border-radius: 16px;
        padding: 80px 20px;
        margin-bottom: 24px;
        text-align: center;
        color: var(--text-tertiary);
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 14px;
    }

    .signup-banner {
        background: linear-gradient(135deg, var(--yellow-primary) 0%, #FFC700 100%);
        border-radius: 16px;
        padding: 28px 24px;
        margin-bottom: 24px;
        text-align: center;
    }

    .signup-banner h3 {
        font-family: var(--font-heading);
        font-weight: 800;
        font-size: 22px;
        margin-bottom: 12px;
    }

    .signup-banner p {
        font-size: 15px;
        margin-bottom: 20px;
        opacity: 0.9;
        line-height: 1.5;
    }

    .signup-banner button {
        width: 100%;
        padding: 16px;
        background: var(--black);
        color: var(--yellow-primary);
        border: none;
        border-radius: 50px;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 17px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .signup-banner button:hover {
        transform: scale(1.05);
    }

    .stats-widget {
        background: linear-gradient(135deg, #2563EB 0%, #60A5FA 100%);
        color: white;
        border-radius: 16px;
        padding: 40px 24px;
        text-align: center;
    }

    .stats-number {
        font-family: var(--font-heading);
        font-weight: 900;
        font-size: 56px;
        margin-bottom: 12px;
        line-height: 1;
    }

    .stats-label {
        font-size: 17px;
        font-weight: 600;
    }
 

    /* ==========================================
       MOBILE
       ========================================== */
    .mobile-wrapper {
        display: none;
    }

    .mobile-top-bar {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border-color);
        padding: 12px 16px;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-logo-container {
        background: var(--yellow-primary);
        padding: 8px 16px;
        border-radius: 10px;
    }

    .mobile-logo-img {
        height: 24px;
        display: block;
    }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        background: var(--gray-light);
        border: none;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        cursor: pointer;
    }

    .mobile-menu-line {
        width: 18px;
        height: 2px;
        background: var(--black);
        border-radius: 2px;
    }

    .mobile-overlay-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        z-index: 2000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding: 20px;
    }

    .mobile-overlay-menu.active {
        transform: translateX(0);
    }

    .overlay-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 24px;
    }

    .close-menu-btn {
        width: 40px;
        height: 40px;
        background: var(--gray-light);
        border: none;
        border-radius: 50%;
            font-size: 29px;
    cursor: pointer;
    font-weight: bold;
    }

    .mobile-search {
        margin-bottom: 24px;
    }

    .mobile-search-input {
        width: 100%;
        padding: 16px 20px 16px 50px;
        border: 2px solid var(--border-color);
        border-radius: 50px;
        font-size: 16px;
        background: var(--gray-light);
    }

    .mobile-search-icon {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        opacity: 0.5;
    }

    .mobile-ctas {
        background: linear-gradient(135deg, var(--yellow-primary) 0%, #FFC700 100%);
        border-radius: 16px;
        padding: 24px;
        margin-bottom: 24px;
        text-align: center;
    }

    .mobile-ctas h3 {
        font-family: var(--font-heading);
        font-weight: 800;
        font-size: 20px;
        margin-bottom: 12px;
    }

    .mobile-ctas p {
        font-size: 14px;
        margin-bottom: 20px;
        opacity: 0.9;
    }

    .mobile-cta-btn {
        width: 100%;
        padding: 16px;
        border: none;
        border-radius: 50px;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 16px;
        cursor: pointer;
        margin-bottom: 10px;
    }

    .mobile-cta-primary {
        background: var(--black);
        color: var(--yellow-primary);
    }

    .mobile-cta-secondary {
        background: var(--white);
        color: var(--black);
    }

    /* Botão Distritos - Layout Melhorado */
    .district-selector-btn {
        width: 100%;
        padding: 16px 20px;
        background: var(--white);
        border: 2px solid var(--border-color);
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        margin-bottom: 24px;
        transition: all 0.3s ease;
    }

    .district-selector-btn:active {
        transform: scale(0.98);
    }

    .district-selector-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .district-icon {
        width: 40px;
        height: 40px;
        background: var(--blue-primary);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }

    .district-text {
        text-align: left;
    }

    .district-label {
        font-size: 12px;
        color: var(--text-secondary);
        font-weight: 600;
        text-transform: uppercase;
        display: block;
        margin-bottom: 2px;
    }

    .district-value {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 16px;
        color: var(--text-secondary);
    }

    .district-arrow {
        font-size: 20px;
        color: var(--text-tertiary);
    }

    .mobile-categories {
        margin-bottom: 24px;
    }

    .mobile-section-title {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 14px;
        text-transform: uppercase;
        color: var(--text-tertiary);
        margin-bottom: 16px;
    }

    .mobile-category-link {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px;
        background: var(--gray-light);
        border-radius: 12px;
        text-decoration: none;
        color: var(--black);
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 16px;
        margin-bottom: 10px;
    }

    .mobile-category-icon {
        font-size: 28px;
    }

    /* Filtros Mobile - Chips Horizontais */
    .mobile-filters {
        margin-bottom: 24px;
    }

    .mobile-filters-scroll {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 12px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mobile-filters-scroll::-webkit-scrollbar {
        display: none;
    }

    .mobile-filter-chip {
        flex-shrink: 0;
        padding: 12px 24px;
        background: var(--white);
        border: 2px solid var(--border-color);
        border-radius: 50px;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 15px;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-filter-chip.active {
        background: var(--yellow-primary);
        border-color: var(--yellow-primary);
    }

    /* Bottom Sheet */
    .districts-bottom-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        border-radius: 20px 20px 0 0;
        max-height: 70vh;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 3000;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
    }

    .districts-bottom-sheet.active {
        transform: translateY(0);
    }

    .sheet-handle {
        width: 40px;
        height: 4px;
        background: var(--border-color);
        border-radius: 2px;
        margin: 12px auto;
    }

    .sheet-header {
        padding: 0 20px 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .sheet-title {
        font-family: var(--font-heading);
        font-weight: 800;
        font-size: 20px;
        margin-bottom: 12px;
    }

    .sheet-search {
        position: relative;
    }

    .sheet-search input {
        width: 100%;
        padding: 12px 16px 12px 44px;
        border: 2px solid var(--border-color);
        border-radius: 50px;
        font-size: 15px;
        background: var(--gray-light);
    }

    .sheet-search-icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        opacity: 0.5;
    }

    .sheet-content {
        padding: 20px;
        max-height: calc(70vh - 140px);
        overflow-y: auto;
    }

    .district-item {
        padding: 16px;
        background: var(--gray-light);
        border-radius: 12px;
        margin-bottom: 10px;
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 16px;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .district-item:active {
        background: var(--yellow-primary);
        transform: scale(0.98);
    }

    .sheet-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 2999;
    }

    .sheet-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .mobile-content {
        padding-top: 60px;
        padding-bottom: 20px;
    }

    .mobile-leaderboard {
        background: var(--gray-light);
        border: 2px dashed var(--border-color);
        padding: 40px 20px;
        margin: 16px;
        border-radius: 12px;
        text-align: center;
        color: var(--text-tertiary);
        font-size: 12px;
    }

    .mobile-demo {
        padding: 20px;
        text-align: center;
    }

    /* ==========================================
       RESPONSIVE BREAKPOINTS
       ========================================== */
    @media (max-width: 1400px) {
        .page-wrapper {
            grid-template-columns: 1fr;
        }

        .right-sidebar {
            display: none;
        }
    }

    

    @media (max-width: 768px) {
        
        
        .left-sidebar,
        .districts-dropdown,
        .right-sidebar {
            display: none !important;
        }

        .leaderboard-ad {
            margin: 20px;
        }
        .main-container {
            padding: 0 20px
        }
        .mobile-wrapper {
            display: block;
        }

        .page-wrapper {
            margin-left: 0;
            margin-top: 57px;
        }

        .breadcrumb {
            padding: 20px 0px 0 20px;
        }

        .breadcrumb-wrapper.scrolled .breadcrumb {
            padding: 8px 8px;
        }
    }
 
     @media (min-width: 769px) {  
        .main-content { 
            padding: 0 16px;
        }
    }

    /* ================================================
       CORREÇÕES ESPECÍFICAS DARK MODE
       (Mantendo btn-ver-mais separado do btn-outline)
       ================================================ */

    /* Botão Ver Mais - Estado Normal em Dark */
    html[data-theme="dark"] .btn-ver-mais {
        background: transparent;
        color: #FFFFFF;
        border: 2px solid #FFFFFF;
    }

    html[data-theme="dark"] .btn-ver-mais:hover {
        background: #FFD500;
        border-color: #FFD500;
        color: #000000;
    }

    /* Botão Outline - mantém seu próprio estilo */
    html[data-theme="dark"] .btn-outline {
        background: transparent;
        border: 2px solid #FFFFFF;
        color: #FFFFFF;
    }

    html[data-theme="dark"] .btn-outline:hover {
        background: #FFD500;
        border-color: #FFD500;
        color: #000000;
    }

    /* Botões Primary hover */
    html[data-theme="dark"] .btn-primary:hover,
    html[data-theme="dark"] .cta-primary:hover,
    html[data-theme="dark"] .btn-buy-info:hover {
        background: #000000;
        color: #FFD500 !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }

    /* Secondary button hover */
    html[data-theme="dark"] .btn-secondary:hover {
        background: #1E40AF;
        color: #FFFFFF;
    }

    /* CTA Secondary hover */
    html[data-theme="dark"] .cta-secondary {
        color: #FFFFFF;
        border-color: #FFFFFF;
    }

    html[data-theme="dark"] .cta-secondary:hover {
        background: #2D2D2D;
        border-color: #FFFFFF;
        color: #FFFFFF;
    }

    /* Filter chips */
    html[data-theme="dark"] .filter-chip {
        background: #2D2D2D;
        border-color: #404040;
        color: #FFFFFF;
    }

    html[data-theme="dark"] .filter-chip:hover {
        background: #FFD500;
        border-color: #FFD500;
        color: #000000;
    }

    html[data-theme="dark"] .filter-chip.active {
        background: #FFD500;
        border-color: #FFD500;
        color: #000000 !important;
        font-weight: 700;
    }

    /* District links */
    html[data-theme="dark"] .districts-header,
    html[data-theme="dark"] .district-link {
        color: #FFFFFF;
    }

    html[data-theme="dark"] .district-link:hover {
        background: #FFD500;
        color: #000000 !important;
    }

    /* Breadcrumb */
    html[data-theme="dark"] .breadcrumb a {
        color: #FFFFFF;
    }

    html[data-theme="dark"] .breadcrumb a:hover {
        background: #2D2D2D;
        color: #FFFFFF;
    }

    /* Hamburger e Mobile menu */
    html[data-theme="dark"] .hamburger-line,
    html[data-theme="dark"] .mobile-menu-line {
        background: #FFFFFF;
    }

    html[data-theme="dark"] .hamburger-btn:hover {
        background: #FFD500;
    }

    html[data-theme="dark"] .hamburger-btn:hover .hamburger-line,
    html[data-theme="dark"] .mobile-menu-btn:hover .mobile-menu-line {
        background: #000000;
    }

    /* Search */
    html[data-theme="dark"] .search-icon,
    html[data-theme="dark"] .mobile-search-icon {
        color: #FFFFFF;
        opacity: 0.7;
    }

    html[data-theme="dark"] .search-input::placeholder,
    html[data-theme="dark"] .mobile-search-input::placeholder {
        color: #999999;
    }

    /* Signup banner e Mobile CTAs */
    html[data-theme="dark"] .signup-banner,
    html[data-theme="dark"] .signup-banner h2,
    html[data-theme="dark"] .signup-banner h3,
    html[data-theme="dark"] .signup-banner p,
    html[data-theme="dark"] .mobile-ctas,
    html[data-theme="dark"] .mobile-ctas h3,
    html[data-theme="dark"] .mobile-ctas p {
        color: #000000 !important;
    }

    html[data-theme="dark"] .signup-banner button,
    html[data-theme="dark"] .mobile-cta-primary {
        background: #000000;
        color: #FFD500 !important;
    }

    html[data-theme="dark"] .signup-banner a,
    html[data-theme="dark"] .signup-banner .cta-secondary,
    html[data-theme="dark"] .mobile-cta-secondary {
        color: #000000 !important;
        border-color: #000000 !important;
    }

    html[data-theme="dark"] .signup-banner a:hover,
    html[data-theme="dark"] .signup-banner .cta-secondary:hover {
        background: rgba(0,0,0,0.1);
    }

    /* Close menu button */
    html[data-theme="dark"] .close-menu-btn {
        color: #FFFFFF;
        background: transparent;
        border: 2px solid #FFFFFF;
    }

    html[data-theme="dark"] .close-menu-btn:hover {
        background: #2D2D2D;
    }

    /* Mobile filter chips */
    html[data-theme="dark"] .mobile-filter-chip {
        background: #2D2D2D;
        border-color: #404040;
        color: #FFFFFF;
    }

    html[data-theme="dark"] .mobile-filter-chip:hover,
    html[data-theme="dark"] .mobile-filter-chip.active {
        background: #FFD500;
        border-color: #FFD500;
        color: #000000 !important;
        font-weight: 700;
    }

    /* Mobile categories */
    html[data-theme="dark"] .mobile-category-link {
        color: #FFFFFF;
    }

    /* Inputs e forms */
    html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
    html[data-theme="dark"] textarea,
    html[data-theme="dark"] select {
        background: #1A1A1A;
        color: #FFFFFF;
        border-color: #404040;
    }

    /* Links */
    html[data-theme="dark"] a:not(.btn):not(.nav-link):not(.cta-button):not(.district-link) {
        color: var(--text-tertiary);
    }

    html[data-theme="dark"] a:not(.btn):not(.nav-link):not(.cta-button):not(.district-link):hover {
        color: #93C5FD;
    }

    
    /* Scrollbar */
    html[data-theme="dark"] ::-webkit-scrollbar-track {
        background: #1A1A1A;
    }

    html[data-theme="dark"] ::-webkit-scrollbar-thumb {
        background: #404040;
    }

    html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
        background: #505050;
    }

    /* Verde FREE */
    html[data-theme="dark"] .info-value.free,
    html[data-theme="dark"] .event-card-price .price-value.free {
        color: #22C55E;
    }

    /* Tabelas */
    html[data-theme="dark"] .usage-table th {
        color: #E0E0E0;
    }
 

    /* THEME TOGGLE */
    .theme-toggle-wrapper {
        display: flex;
        align-items: center;
        margin-left: auto;
        padding: 8px;
        justify-content: flex-end;
    }

    .theme-toggle {
        display: flex;
        background: var(--gray-light);
        border: 1px solid var(--border-color);
        border-radius: 50px;
        padding: 4px;
        gap: 4px;
    }

    .theme-btn {
        width: 32px;
        height: 32px;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        font-size: 16px;
        background: transparent;
        color: var(--text-tertiary);
        transition: all 0.2s ease;
    }

    .theme-btn:hover {
        background: var(--gray-medium);
    }

    .theme-btn.active {
        background: var(--yellow-primary);
        color: #000000;
    }

    @media (max-width: 768px) {
        .theme-toggle-wrapper {
            position: absolute;
            top: 12px;
            right: 60px;
            z-index: 1001;
        }
    } 








    /* Shell principal da página de conta */
.page-section--user {
    padding: 32px 0 48px;
}

.user-shell {
    max-width: 960px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 24px;
    border: 1px solid #E5E5E5;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    padding: 24px 24px 28px;
}

/* Cabeçalho do card */
.user-shell__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.user-shell__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

/* Tabs (seguindo lógica dos filtros) */
.user-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-tab {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #E0E0E0;
    background: #F7F7F7;
    font-size: 0.85rem;
    color: #333;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.user-tab:hover {
    background: #FFD600;
    border-color: #FFD600;
    color: #000;
}

.user-tab--active {
    background: #111111;
    border-color: #111111;
    color: #FFFFFF;
}

.user-tab--highlight {
    background: #FFD600;
    border-color: #FFD600;
    color: #000000;
}

/* Bloco utilizador + métricas */
.user-shell__body {
    border-top: 1px solid #F0F0F0;
    padding-top: 20px;
}

.user-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.user-header__avatar img {
    border-radius: 50%;
}

.user-header__name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}

.user-header__role {
    font-size: 0.8rem;
    color: #888888;
}

/* Métricas em linha */
.user-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.user-metric {
    background: #FAFAFA;
    border-radius: 12px;
    border: 1px solid #EDEDED;
    padding: 12px 14px;
}

.user-metric__value {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.user-metric__label {
    font-size: 0.8rem;
    color: #888888;
}

/* Secção de favoritos */
.user-section {
    margin-top: 8px;
}

.user-section__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 14px;
}

/* Estado vazio */
.user-empty {
    padding: 16px 0 4px;
}

.user-empty__title {
    font-weight: 600;
    margin-bottom: 4px;
}

.user-empty__text {
    font-size: 0.85rem;
    color: #777777;
    margin-bottom: 10px;
}

/* Responsivo */
@media (max-width: 768px) {
    .user-shell {
        padding: 18px 16px 22px;
    }
    .user-shell__header {
        align-items: flex-start;
    }
}



/* Shell de login mais leve */
.user-shell--login {
    max-width: 520px;
    margin: 0 auto;
}

/* Remove o box interno extra */
.login-container {
    padding: 24px 0 0;
    border: none;
    background: transparent;
}

/* Título e subtítulo */
.user-shell__title {
    font-size: 1.4rem;
    font-weight: 700;
}

.user-shell__subtitle {
    font-size: 0.9rem;
    color: #666666;
    margin-top: 4px;
}

/* Form fields alinhados com o resto do site */
.user-login-form .form-group {
    margin-bottom: 16px;
}

.user-login-form .form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 6px;
}

.user-login-form .form-control {
    width: 100%;
    padding: 12px 14px;
    /*border-radius: 999px;              /* mesmo look dos filtros/busca */
    border: 1px solid #E0E0E0;
    font-size: 0.95rem;
    background: #FFFFFF;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.user-login-form .form-control:focus {
    outline: none;
    border-color: #FFD500;
    box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.15);
}

/* Lembrar-me + link */
.form-row--login {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 20px;
    gap: 16px;
    font-size: 0.85rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #444;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
}

.forgot-password {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
}

.forgot-password:hover {
    color: #000;
}
 

/* Rodapé do login */
.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.login-footer__link {
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

.login-footer__link:hover {
    color: #FFD500;
}

/* Alertas */
.alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.alert-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
}


 /* BOTÕES */
        .btn { font-family: var(--font-heading); font-weight: 700; border-radius: 50px; border: 2px solid transparent; cursor: pointer; transition: all 0.2s ease; text-align: center; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
        .btn-sm { padding: 9px 19px; font-size: 14px; min-height: 44px; }
        .btn-md { padding: 12px 24px; font-size: 15px; min-height: 48px; }
        .btn-lg { padding: 16px 32px; font-size: 17px; min-height: 52px; }
        .btn-primary { background: var(--yellow-primary); color: #000000; border-color: var(--yellow-primary); }
        .btn-primary:hover { background: #000000; color: var(--yellow-primary); border-color: #000000;  }
        html[data-theme="dark"] .btn-primary:hover { border-color: var(--yellow-primary); }
        .btn-outline { background: transparent; }
        html[data-theme="light"] .btn-outline { border-color: #e0e0e0; color: #1A1A1A; }
        html[data-theme="dark"] .btn-outline { border-color: #FFFFFF; color: #FFFFFF; }
        html[data-theme="light"] .btn-outline:hover{ background: var(--yellow-primary); border-color: var(--yellow-primary); color: #000000;  }
        html[data-theme="light"] .btn-outline-2:hover{ background: #f5f5f5; border-color:#1A1A1A; color: #000000;  }
        html[data-theme="dark"] .btn-outline-2:hover{ background: none; border-color:#f5f5f5; color: #f5f5f5;  }
        
        html[data-theme="dark"] .btn-outline:hover { border-color: var(--yellow-primary); color: #1A1A1A; background-color: var(--yellow-primary);; }
 
        .btn-secondary { background: var(--blue-primary); color: #350202; border-color: var(--blue-primary); }
        .btn-secondary:hover { background: #1E40AF; border-color: #1E40AF;  }
.btn-block {
    width: 100%;display: block; text-align: center;
}

.alert-evento {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    border: 1px solid transparent;
    background: #ecfdf3;
    color: #14532d;
}

.alert-evento__icon {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.alert-evento__content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.alert-evento__content p {
    margin: 0;
    font-size: 14px;
}

/* Versão de erro */
.alert-evento.alert-error {
    background: #fef2f2;
    color: #7f1d1d;
    border-color: #fecaca;
}

.alert-evento.alert-error .alert-evento__icon {
    background: #ef4444;
}
.alert-evento__link {
    margin-left: 8px;
    font-weight: 600;
    text-decoration: underline;
}
















.poster-example {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
    min-height: 520px;
    width: 100%;
}

 

/* quando não houver imagem */
.poster-example.is-placeholder {
       background: var(--gray-light);
    border: 2px dashed var(--border-color);
    
    text-align: center;
    color: var(--text-tertiary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px; 
    
    border-radius: 12px;
}
 
.event-occurrences-note, .event-schedule-compact{
    font-size: 14px;
    margin-bottom: 3px;
    letter-spacing: 0.5px;

}




















































/* TIPOGRAFIA BASE */
body {
    font-family: var(--font-body, 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary, #1A1A1A);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading, 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-weight: 700;
    color: var(--text-primary, #1A1A1A);
    margin: 0 0 16px;
}

/* SEÇÃO GENÉRICA (guide-section) */
.guide-section  {
    padding: 40px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
  .event-content {
    padding: 0px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.event-content p{
    margin-bottom: 20px;

}
  /* primeira não tem borda em cima */
.event-info-block .info-item:first-of-type {
    border-top: none;
}

/* última não tem borda em baixo */
.event-info-block .info-item:last-of-type {
    border-bottom: none;
}
/* BLOCO DE HERO / INFO (ajusta às tuas classes) */

.poster_info {
    display: flex;
    gap: 30px;
    align-items: center;
}
 .poster-example {
   
}
.event-info-block .btn-block {
padding: 14px;
     margin-top: 20px;
}
.poster-example {
     max-width: 460px; margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.poster-example img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.event-info-block {
   
    border-radius: 12px;
   
}
.event-hero-example h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 16px;
     text-align: center;
}

.event-info-block {
    background: var(--card-bg, #FFFFFF);
    border-radius: 24px;
    padding: 24px 28px;
    box-shadow: 0 12px 30px rgba(15,23,42,0.08);
    border: 1px solid var(--border-color, #E0E0E0);
     padding: 20px 30px;
    max-width: 450px;
    width: 100%;
}
.guide-section h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
}
.info-block-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
}

/* ITENS DE INFORMAÇÃO */
.info-item {
    padding: 10px 0;
    border-top: 1px solid var(--border-subtle, #E5E7EB);
}

.info-item:last-of-type {
    border-bottom: 1px solid var(--border-subtle, #E5E7EB);
}

.info-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}
.info-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.3;
}
.info-value.free {
    color: #00A86B;
}

/* RESPONSIVO */
@media (max-width: 1219.9px) {
    .poster_info {
        flex-direction: column;
    }
 

    .poster-example {
        max-width: 480px;
        margin: 0 auto;
    }
}
@media (min-width: 1401px) and (max-width: 1555px) {
 
.poster_info {
        flex-direction: column;
    }
}

 
@media (max-width: 640px) {
    .guide-section {
        padding: 32px 16px;
    }

    .event-info-block {
        border-radius: 20px;
        padding: 20px;
    }
}
