/* header-search-bar.css
 *
 * Styling for the header search INPUT BAR (the .header-search-zone wrapper).
 * The dropdown itself (.gs-* classes) is styled by the synced oecta-search.css.
 *
 * Source of truth: ../Event Administration/style2.css lines 9477-9580.
 * This file is member-owned (NOT auto-synced) because admin's bar styles live
 * in their style2.css alongside thousands of admin-only rules. If admin updates
 * the .header-search-* block, manually re-sync by extracting that range here.
 */

.header-search-zone {
    flex: 1;
    max-width: 720px;
    position: relative;
    margin: 0 16px;
}

.header-search-bar {
    display: flex;
    align-items: center;
    position: relative;
    background: #edf2fc;
    border: 1px solid transparent;
    border-radius: 28px;
    height: 44px;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.header-search-bar:focus-within {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06);
    border-color: transparent;
}

.header-search-icon {
    position: absolute;
    left: 16px;
    font-size: 20px;
    color: #5f6368;
    pointer-events: none;
}

.header-search-input {
    width: 100%;
    padding: 10px 48px 10px 48px;   /* member: no tune button on right, so symmetric padding */
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-main, #1a1a1a);
    font-family: inherit;
}

.header-search-input::placeholder {
    color: #5f6368;
}

.header-search-clear {
    position: absolute;
    right: 14px;
    width: 22px;
    height: 22px;
    border: none;
    background: #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.15s;
    flex-shrink: 0;
}

.header-search-clear:hover { background: #94a3b8; }
.header-search-clear .material-icons { font-size: 13px; }
.header-search-clear.hidden { display: none; }

.header-search-dropdown {
    /* position/top/left/width are set by JS after appending to body */
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(32,65,100,0.18);
    z-index: 99999;
    overflow: hidden;
    max-height: 560px;
    overflow-y: auto;
}

.header-search-dropdown.hidden { display: none; }

/* Hide framework's footer hint in Member Portal: it advertises "⌘K to expand"
 * and "See all N results" which both reference admin-only surfaces (modal
 * palette + full-page panel) that don't exist here. */
.gs-footer { display: none !important; }

