/* Search Overlay Fullscreen */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 35, 50, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.search-overlay-content {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.search-overlay-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

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

.search-overlay-inner {
    text-align: center;
}

.search-overlay-logo {
    margin-bottom: 2rem;
    animation: fadeIn 0.6s ease 0.2s backwards;
}

.search-overlay-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    animation: fadeIn 0.6s ease 0.3s backwards;
}

.search-overlay-form {
    animation: fadeIn 0.6s ease 0.4s backwards;
}

.search-overlay-input-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-overlay-input-wrapper i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8b9aaf;
    font-size: 1.5rem;
    pointer-events: none;
}

.search-overlay-input {
    width: 100%;
    padding: 1.5rem 1.5rem 1.5rem 4rem;
    font-size: 1.25rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a2332;
    transition: all 0.3s ease;
}

.search-overlay-input:focus {
    outline: none;
    border-color: #0cc0df;
    background: white;
    box-shadow: 0 10px 40px rgba(12, 192, 223, 0.2);
}

.search-overlay-input::placeholder {
    color: #8b9aaf;
}

.search-overlay-suggestions {
    animation: fadeIn 0.6s ease 0.5s backwards;
}

.search-overlay-suggestions p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.search-overlay-suggestions .badge {
    text-decoration: none;
    transition: all 0.3s ease;
}

.search-overlay-suggestions .badge:hover {
    background: #0cc0df !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 192, 223, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .search-overlay-content {
        padding: 1.5rem;
    }
    
    .search-overlay-close {
        top: 1rem;
        right: 1rem;
    }
    
    .search-overlay-title {
        font-size: 1.5rem;
    }
    
    .search-overlay-input {
        font-size: 1rem;
        padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    }
    
    .search-overlay-input-wrapper i {
        font-size: 1.25rem;
        left: 1.25rem;
    }
}

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