/**
 * Search Overlay Component
 * Search functionality styles
 */

/* Search Styles */
.search-icon {
    background: none;
    border: none;
    color: var(--color-black);
    cursor: pointer;
    padding: 5px 10px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    margin-left: 1em;
    transition: opacity 0.2s ease;
}

.dark-mode .search-icon {
    color: var(--color-white);
}

.search-icon:hover {
    opacity: 0.7;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    display: block;
    z-index: 1000;
    pointer-events: none;
    transition: all 0.5s ease;
    opacity: 0;
}

.search-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none;
    border-radius: 0;
    padding: 0.5em 0;
    box-shadow: none;
    isolation: isolate;
}

.search-input {
    width: 100%;
    padding: 0.75em 0;
    font-size: 1.75em;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    outline: none;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    font-family: var(--font-family-heading);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.search-input:focus {
    border-bottom-color: rgba(93, 143, 179, 0.8);
    opacity: 1;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.7;
}

.search-active {
    display: block;
}

.search-results {
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.75rem 0;
    margin-top: 1rem;
    font-family: var(--font-family-heading);
}

.search-result-item {
    margin-bottom: 1rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: transparent;
    transform: translateX(5px);
    box-shadow: none;
}

.search-result-item a {
    text-decoration: none;
    color: inherit;
}

.search-result-item h3 {
    margin: 0 0 0.4rem 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 1.1em;
    letter-spacing: -0.01em;
}

.search-result-item p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.search-no-results,
.search-error {
    padding: 1rem;
    text-align: center;
    color: #666;
}

.dark-mode .search-result-item h3 {
    color: rgba(255, 255, 255, 0.95);
}

.dark-mode .search-no-results,
.dark-mode .search-error {
    color: #999;
}

.search-active.search-overlay {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    pointer-events: auto;
    opacity: 1;
}

.search-active.search-container {
    opacity: 1;
    pointer-events: auto;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

