@import url('faq_theme.css?v=20261101');

/* ==========================================================================
   EVERGREEN HYDRA - GLOBAL FAQ SEARCH COMPONENT
   ========================================================================== */

.faq-global-search-wrap {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 0;
}

.faq-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 0 14px;
    height: 42px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.faq-search-box:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(15, 23, 42, 0.95);
}

.faq-search-box.is-focused {
    border-color: #38bdf8;
    background: #0f172a;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.faq-search-icon {
    color: #64748b;
    font-size: 14px;
    margin-right: 10px;
    transition: color 0.15s ease;
}

.faq-search-box.is-focused .faq-search-icon {
    color: #38bdf8;
}

.faq-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13.5px;
    font-family: inherit;
    padding: 0;
}

.faq-search-input::placeholder {
    color: #64748b;
    font-size: 13px;
}

.faq-search-clear-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 13px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

.faq-search-clear-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.faq-search-kbd {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #64748b;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    pointer-events: none;
    margin-left: 8px;
}

/* ==========================================================================
   SEARCH RESULTS DROPDOWN
   ========================================================================== */

.faq-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 520px;
    max-width: calc(100vw - 32px);
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 10000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: faqSearchFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes faqSearchFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.faq-search-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(30, 41, 59, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-search-results-list {
    max-height: 420px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px 0;
}

.faq-search-results-list::-webkit-scrollbar {
    width: 6px;
}

.faq-search-results-list::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

.faq-search-results-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
}

.faq-search-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
    transition: background 0.12s ease, border-left-color 0.12s ease;
    border-left: 3px solid transparent;
}

.faq-search-item:last-child {
    border-bottom: none;
}

.faq-search-item:hover,
.faq-search-item.is-selected {
    background: rgba(56, 189, 248, 0.09);
    border-left-color: #38bdf8;
}

.faq-search-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-search-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
}

.faq-search-item-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

.faq-search-item-snippet {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.55;
    margin-top: 2px;
}

.faq-search-item-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 11.5px;
    font-weight: 600;
    color: #38bdf8;
    gap: 4px;
    margin-top: 4px;
    opacity: 0.85;
}

.faq-search-item:hover .faq-search-item-footer {
    opacity: 1;
}

/* ==========================================================================
   TERM HIGHLIGHT STYLING
   ========================================================================== */

mark.faq-search-hl {
    background: rgba(250, 204, 21, 0.28) !important;
    color: #fef08a !important;
    font-weight: 700;
    border-radius: 3px;
    padding: 1px 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* ==========================================================================
   EMPTY STATE & FOOTER
   ========================================================================== */

.faq-search-empty {
    padding: 36px 24px;
    text-align: center;
    color: #94a3b8;
}

.faq-search-empty-icon {
    font-size: 28px;
    color: #475569;
    margin-bottom: 12px;
}

.faq-search-empty-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.faq-search-empty-sub {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
}

.faq-search-dropdown-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    color: #64748b;
}

.faq-search-dropdown-footer kbd {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    padding: 1px 4px;
    font-family: monospace;
    font-size: 10px;
    color: #cbd5e1;
}

/* Brand Header with Search Bar */
.faq-brand-header,
.faq-brand-header-with-search {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
    margin-bottom: 24px !important;
}

@media (max-width: 768px) {
    .faq-global-search-wrap {
        max-width: 100%;
        width: 100%;
        margin-top: 10px;
    }
    .faq-search-dropdown {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
    .faq-search-kbd {
        display: none;
    }
}
