/* ==========================================================
   SEARCH BAR LAYOUT (GLOBAL)
   ========================================================== */

#globoevent-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}


/* ==========================================================
   GENERIC INPUT + SELECT (SAFE, SCOPED)
   ========================================================== */
#globoevent-wrapper input[type="text"],
#globoevent-wrapper input[type="search"],
#globoevent-wrapper input[type="number"],
#globoevent-wrapper input[type="date"],
#globoevent-wrapper select,
.ge-input {
    border: 1px solid #ccc !important;
    padding: 8px !important;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 !important;
    height: 38px;
}


/* ==========================================================
   ROW SPACING
   ========================================================== */
#globoevent-wrapper .ge-row {
    margin-bottom: 26px !important;
    padding-bottom: 6px !important;
    width: 100%;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}


/* ==========================================================
   FLEX ROWS
   ========================================================== */
.ge-category-row,
.ge-search-bar,
.ge-filter-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
}


/* ==========================================================
   CATEGORY BUTTONS
   ========================================================== */
.ge-cat-btn {
    padding: 6px 12px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    cursor: pointer;
    border-radius: 0 !important;
    font-size: 14px;
}

.ge-cat-btn:hover {
    background: #e6e6e6;
}


/* ==========================================================
   FILTER / SEARCH BUTTONS
   ========================================================== */
.ge-filter-small,
.ge-btn {
    padding: 6px 12px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    cursor: pointer;
    border-radius: 0 !important;
    font-size: 14px;
}

.ge-search-btn {
    background: #0c74d5 !important;
    color: #fff !important;
    border: none !important;
}


/* ==========================================================
   RESET BUTTON
   ========================================================== */
.ge-reset-row {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.ge-reset {
    background: #222 !important;
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 0 !important;
}


/* ==========================================================
   MODAL
   ========================================================== */
.ge-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ge-modal.hidden {
    display: none;
}

.ge-modal-content {
    background: #fff;
    padding: 20px;
    width: 90%;
    max-width: 420px;
    border-radius: 0 !important;
}


/* ==========================================================
   EVENT RESULTS GRID
   ========================================================== */
.ge-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}


/* ==========================================================
   EVENT CARD
   ========================================================== */
.ge-event-card {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: box-shadow .18s, transform .18s;
}

.ge-event-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.ge-event-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.ge-event-body {
    padding: 15px 18px;
}

.ge-event-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.ge-event-description {
    font-size: 14px;
    color: #444;
    margin-bottom: 12px;
}

.ge-event-meta {
    font-size: 13px;
    color: #666;
    margin: 3px 0;
}

.ge-event-footer {
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* ==========================================================
   EVENT BADGES (GLOBAL — FIXED)
   ========================================================== */
.ge-event-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: flex;
    gap: 6px;
}

.ge-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.ge-badge-featured {
    background: linear-gradient(135deg, #ffb347, #ffcc33);
    color: #000;
}

.ge-badge-sponsored {
    background: linear-gradient(135deg, #7f5cff, #5f27cd);
    color: #fff;
    position: relative;
}


/* ==========================================================
   SPONSORED CARD GLOW (GLOBAL)
   ========================================================== */
.ge-event-card.is-sponsored {
    animation: ge-sponsored-glow 2.8s ease-in-out infinite;
}

.ge-event-card.is-sponsored:hover {
    animation-duration: 1.6s;
}

@keyframes ge-sponsored-glow {
    0% {
        box-shadow: 0 0 0 rgba(127,92,255,0.0);
    }
    50% {
        box-shadow:
            0 0 0 2px rgba(127,92,255,0.45),
            0 0 14px rgba(127,92,255,0.55);
    }
    100% {
        box-shadow: 0 0 0 rgba(127,92,255,0.0);
    }
}


/* ==========================================================
   SPONSORED BADGE PULSE
   ========================================================== */
.ge-badge-sponsored::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 6px;
    background: rgba(127, 92, 255, 0.35);
    z-index: -1;
    animation: ge-sponsored-pulse 2.4s ease-out infinite;
}

@keyframes ge-sponsored-pulse {
    0% {
        transform: scale(0.85);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.35);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}


/* ==========================================================
   PIN BUTTON
   ========================================================== */
.ge-pin-button {
    cursor: pointer;
    color: #cc0000;
    font-size: 18px;
}

.ge-pin-button.pinned {
    color: #ff4444;
}


/* ==========================================================
   MOBILE TWEAKS ONLY
   ========================================================== */
@media (max-width: 550px) {
    .ge-search-container {
        margin: 20px;
    }
}
