/* Enhanced Search Styles */

/* Homepage Search Form */
.search-form {
    position: relative;
}

/* Premium Pulsing Gradient Shimmer Effect */
.search-form.is-loading .search-box {
    position: relative;
    overflow: hidden;
}

.search-form.is-loading .search-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.05);
    z-index: 5;
}

.search-form.is-loading .search-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 200%;
    height: 2px;
    background: linear-gradient(
        90deg, 
        transparent 0%,
        rgba(59, 130, 246, 0.2) 25%, 
        rgba(59, 130, 246, 1) 50%, 
        rgba(139, 92, 246, 1) 75%, 
        transparent 100%
    );
    animation: shimmer 2s infinite ease-in-out;
    z-index: 10;
}

/* Search Page Loading State */
.search-page-loading .search-container {
    position: relative;
    overflow: hidden;
}

.search-page-loading .search-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.05);
    z-index: 5;
}

.search-page-loading .search-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 200%;
    height: 2px;
    background: linear-gradient(
        90deg, 
        transparent 0%,
        rgba(59, 130, 246, 0.2) 25%, 
        rgba(59, 130, 246, 1) 50%, 
        rgba(139, 92, 246, 1) 75%, 
        transparent 100%
    );
    animation: shimmer 2s infinite ease-in-out;
    z-index: 10;
}

/* Premium Shimmer Animation */
@keyframes shimmer {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(50%);
    }
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.search-box {
    position: relative;
    width: 300px;
    transition: all 0.3s ease;
}

.search-box.searching {
    position: relative;
    overflow: hidden;
}

.search-box.searching::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.05);
    z-index: 5;
}

.search-box.searching::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 200%;
    height: 2px;
    background: linear-gradient(
        90deg, 
        transparent 0%,
        rgba(59, 130, 246, 0.2) 25%, 
        rgba(59, 130, 246, 1) 50%, 
        rgba(139, 92, 246, 1) 75%, 
        transparent 100%
    );
    animation: shimmer 2s infinite ease-in-out;
    z-index: 10;
}

/* Search Input Enhancement */
.search-input {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: #3B82F6;
    box-shadow: 0 0 0 1px #3B82F6;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Animation for search results */
.result-card {
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

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

/* Staggered animation for search results */
.results-grid > div:nth-child(1) .result-card { animation-delay: 0.05s; }
.results-grid > div:nth-child(2) .result-card { animation-delay: 0.1s; }
.results-grid > div:nth-child(3) .result-card { animation-delay: 0.15s; }
.results-grid > div:nth-child(4) .result-card { animation-delay: 0.2s; }
.results-grid > div:nth-child(5) .result-card { animation-delay: 0.25s; }
.results-grid > div:nth-child(6) .result-card { animation-delay: 0.3s; }
.results-grid > div:nth-child(7) .result-card { animation-delay: 0.35s; }
.results-grid > div:nth-child(8) .result-card { animation-delay: 0.4s; }
.results-grid > div:nth-child(9) .result-card { animation-delay: 0.45s; }