/* ========================================
   SEARCH MODAL STYLES
   ======================================== */

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(41, 74, 112, 0.98);
    backdrop-filter: blur(15px);
    z-index: 10002;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.search-modal-content {
    width: 90%;
    max-width: 800px;
    position: relative;
    transform: translateY(-50px) scale(0.9);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.search-modal.active .search-modal-content {
    transform: translateY(0) scale(1);
}

.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    font-size: 32px;
    color: #294a70;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.search-close:hover {
    background: #ff4757;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.search-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-icon {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: #6c757d;
    animation: pulse 2s ease-in-out infinite;
}

.search-input {
    width: 100%;
    padding: 25px 30px 25px 80px;
    border: none;
    border-radius: 60px;
    font-size: 1.3rem;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 20px 60px rgba(26, 115, 232, 0.4);
    transform: scale(1.02);
}

.search-input::placeholder {
    color: #adb5bd;
}

.search-results {
    background: white;
    border-radius: 25px;
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.search-results.active {
    opacity: 1;
    transform: translateY(0);
}

.search-result-item {
    padding: 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.search-result-item:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item a {
    text-decoration: none;
    color: #294a70;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.search-result-item a:hover {
    color: #1a73e8;
}

.search-result-item small {
    display: block;
    color: #6c757d;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.search-result-item .badge {
    font-size: 11px;
    padding: 4px 10px;
    margin-right: 5px;
}

.search-no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.search-no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

/* Custom scrollbar for search results */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #294a70, #1a73e8);
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1a73e8, #0b3d91);
}

@media (max-width: 768px) {
    .search-input {
        padding: 20px 20px 20px 70px;
        font-size: 1.1rem;
    }
    
    .search-icon {
        left: 25px;
        font-size: 1.5rem;
    }
    
    .search-results {
        max-height: 50vh;
    }
}
