/* Search Modal Styles */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    display: flex;
    opacity: 1;
}

.search-modal-content {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-search-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-search-btn:hover {
    background-color: var(--bg-light);
    color: var(--text-main);
}

.search-header {
    padding: 2.5rem 2rem 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.search-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.search-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.search-input-wrapper {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--bg-light);
}

.search-input-wrapper i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: none;
    font-size: 1.1rem;
    color: var(--text-main);
    outline: none;
    font-family: 'Outfit', sans-serif;
}

.search-input-wrapper input::placeholder {
    color: var(--text-light);
}

.search-results {
    padding: 1.5rem 2rem;
    max-height: 50vh;
    overflow-y: auto;
}

.search-hint {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    padding: 2rem 0;
}

.search-result-item {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.search-result-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.search-result-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.search-result-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
}

.no-results i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results p {
    color: var(--text-light);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .search-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .search-header {
        padding: 2rem 1.5rem 1rem 1.5rem;
    }
    
    .search-header h2 {
        font-size: 1.5rem;
    }
    
    .search-input-wrapper {
        padding: 1rem 1.5rem;
    }
    
    .search-results {
        padding: 1rem 1.5rem;
    }
}
