/* search-page-modern.css */

.search-page-modern {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 20px;
}

.search-header-modern {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-lg);
}

.search-input-wrapper-modern {
    position: relative;
    width: 100%;
    margin-top: 15px;
}

.search-input-wrapper-modern input {
    width: 100%;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dark-mode .search-input-wrapper-modern input {
    background: rgba(0, 0, 0, 0.2);
}

.search-input-wrapper-modern input:focus {
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.search-input-wrapper-modern .search-icon-modern {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.search-input-wrapper-modern input:focus+.search-icon-modern {
    transform: translateY(-50%) scale(1.2);
    color: var(--accent-color);
}

/* Centered Empty State */
#searchPage {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

#searchPage::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.results-container-modern {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.results-container-modern::-webkit-scrollbar {
    display: none;
}

.search-empty-state-centered {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    padding: 40px;
    text-align: center;
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.search-empty-state-centered i {
    font-size: 5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    filter: drop-shadow(0 10px 15px rgba(var(--primary-rgb), 0.3));
}

.search-empty-state-centered h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 700;
}

.search-empty-state-centered p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 300px;
    line-height: 1.6;
}

/* Results grid adjustments */
.results-container-modern {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}