/* Search Overlay Styles */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.96);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    flex-direction: column;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

.search-overlay.active {
    display: flex;
}

.search-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 2rem;
}

.search-overlay-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-main);
    transition: transform 0.2s;
}

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

.search-input-wrapper {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.search-input-overlay {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem 4rem 1.5rem 1.5rem;
    font-size: 1.5rem;
    color: var(--text-main);
    transition: all 0.2s;
    outline: none;
}

.search-input-overlay:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: #fff;
}

.search-icon-overlay {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: #94a3b8;
}

.search-overlay-results {
    max-width: 900px;
    margin: 2rem auto;
    width: 100%;
    overflow-y: auto;
    flex: 1;
    padding-right: 1rem;
}

/* Custom Scrollbar */
.search-overlay-results::-webkit-scrollbar {
    width: 6px;
}

.search-overlay-results::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.no-results-overlay {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.search-result-overlay-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
    display: block;
    text-decoration: none;
    color: inherit;
}

.search-result-overlay-card:hover {
    border-color: #3b82f6;
    transform: translateX(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.search-result-overlay-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.search-result-overlay-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.search-result-overlay-meta {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #475569;
    margin-top: 1rem;
}

.search-overlay-footer {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
    color: #64748b;
}

.search-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-tip kbd {
    background: #f1f5f9;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    border: 1px solid #e2e8f0;
    font-size: 0.75rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .search-overlay {
        padding: 1rem;
    }

    .search-overlay-header h2 {
        font-size: 1.25rem;
    }

    .search-input-overlay {
        padding: 1rem 3rem 1rem 1rem;
        font-size: 1rem;
    }

    .search-result-overlay-title {
        font-size: 1.1rem;
    }
}