/**
 * Search Overlay Styles
 *
 * Full-screen search overlay with input and results.
 */

/* ===========================================
   SEARCH OVERLAY
   =========================================== */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg, rgba(0, 0, 0, 0.5));
    z-index: var(--z-search-overlay, 400);
    padding: 0;
    cursor: pointer;
}

.search-overlay.active {
    display: flex;
    justify-content: flex-start;
}

/* ===========================================
   SEARCH CONTENT PANEL
   =========================================== */
.search-overlay .search-overlay-content {
    width: 55%;
    max-width: 700px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px 30px;
    cursor: default;
    background: rgba(255, 255, 255, 0.98);
}

/* Mobile: Wider panel */
@media (max-width: 768px) {
    .search-overlay .search-overlay-content {
        width: 75%;
    }
}

/* ===========================================
   SEARCH HEADER
   =========================================== */
.search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

/* ===========================================
   SEARCH INPUT
   =========================================== */
.search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid var(--drawer-border, #e5e5e5);
    border-radius: 4px;
    outline: none;
    font-family: var(--font-primary, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
}

.search-input:focus {
    border-color: var(--dropdown-text, #2D1F1F);
}

.search-input::placeholder {
    color: var(--drawer-text-inactive, #999);
}

/* ===========================================
   SEARCH CLOSE BUTTON
   =========================================== */
.search-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: var(--drawer-text, #2d1f1f);
    transition: color var(--transition-fast, 0.15s ease);
}

.search-close:hover {
    color: var(--drawer-text-muted, #666);
}

/* ===========================================
   SEARCH RESULTS
   =========================================== */
#search-results {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for results */
#search-results::-webkit-scrollbar {
    width: 4px;
}

#search-results::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

#search-results::-webkit-scrollbar-track {
    background: transparent;
}
