/* ============================================
   FULLSCREEN SEARCH OVERLAY
   Modern, clean search with smooth animations
   ============================================ */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    width: 90%;
    max-width: 800px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-overlay-content {
    transform: translateY(0);
}

.search-overlay-close {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-primary);
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10000;
    opacity: 0.7;
}

.search-overlay-close:hover {
    transform: rotate(90deg);
    opacity: 1;
}

.search-overlay-form {
    position: relative;
}

.search-overlay-input {
    width: 100%;
    font-size: 3rem;
    padding: 1rem 1rem 1rem 0;
    border: none;
    border-bottom: 3px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-overlay-input:focus {
    border-color: var(--accent-color);
}

.search-overlay-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.search-overlay-submit {
    position: absolute;
    right: 0;
    bottom: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--accent-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.search-overlay-submit:hover {
    transform: scale(1.1);
}

.search-overlay-hint {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
}

.search-overlay-hint kbd {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.8em;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .search-overlay-input {
        font-size: 2rem;
    }
    
    .search-overlay-close {
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

/* Dark Mode Optimization */
[data-theme="dark"] .search-overlay {
    background: rgba(26, 26, 26, 0.98);
}

/* Prevent body scroll when search is open */
body.search-overlay-open {
    overflow: hidden;
}
