﻿/* Search Results Section */
.search-results-section {
    padding: 180px 0 100px;
    min-height: 100vh;
    background: radial-gradient(circle at 20% 150%, rgba(222, 39, 31, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% -50%, rgba(202, 180, 137, 0.15) 0%, transparent 50%), linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    position: relative;
    overflow: hidden;
}

    .search-results-section::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        pointer-events: none;
        background: linear-gradient(120deg, transparent 45%, rgba(222, 39, 31, 0.03) 45%, rgba(222, 39, 31, 0.03) 55%, transparent 55%), linear-gradient(-120deg, transparent 45%, rgba(202, 180, 137, 0.03) 45%, rgba(202, 180, 137, 0.03) 55%, transparent 55%);
        background-size: 60px 60px;
        animation: patternFloat 60s linear infinite;
    }

    .search-results-section::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="1" fill="%23de271f" fill-opacity="0.05"/></svg>');
        background-size: 20px 20px;
        opacity: 0.5;
        animation: dotFloat 40s linear infinite;
        pointer-events: none;
    }

.search-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

    .search-header h1 {
        font-size: 3rem;
        color: var(--neutral-black);
        margin-bottom: 1.5rem;
        font-family: 'Archivo Black', sans-serif;
        background: linear-gradient(135deg, var(--neutral-black), var(--primary-red));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: fadeIn 0.8s ease forwards;
    }

.search-stats {
    font-size: 1.1rem;
    color: rgba(29, 29, 27, 0.7);
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease forwards 0.2s;
    opacity: 0;
}

.search-term {
    color: var(--primary-red);
    font-weight: 600;
    position: relative;
}

    .search-term::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--primary-red);
        opacity: 0.3;
    }

.search-bar {
    max-width: 800px;
    margin: 0 auto;
    animation: slideUp 0.8s ease forwards 0.4s;
    opacity: 0;
}

.search-input-wrapper {
    position: relative;
    background: white;
    border-radius: 100px;
    padding: 0.75rem;
    box-shadow: 0 20px 40px rgba(222, 39, 31, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

    .search-input-wrapper:hover {
        transform: translateY(-2px);
        box-shadow: 0 25px 50px rgba(222, 39, 31, 0.15);
    }

    .search-input-wrapper:focus-within {
        border-color: var(--primary-red);
        box-shadow: 0 25px 50px rgba(222, 39, 31, 0.15);
    }

    .search-input-wrapper i {
        font-size: 1.5rem;
        color: var(--primary-red);
        margin: 0 1rem;
    }

.search-input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    background: transparent;
    color: var(--neutral-black);
}

    .search-input:focus {
        outline: none;
    }

    .search-input::placeholder {
        color: rgba(29, 29, 27, 0.5);
    }

.search-clear {
    background: none;
    border: none;
    padding: 0.5rem;
    margin-right: 0.5rem;
    color: rgba(29, 29, 27, 0.5);
    cursor: pointer;
    display: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .search-clear:hover {
        background: rgba(222, 39, 31, 0.1);
        color: var(--primary-red);
        transform: rotate(90deg);
    }

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.result-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(222, 39, 31, 0.1);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

    .result-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 30px 60px rgba(222, 39, 31, 0.15);
    }

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 0;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.8s ease forwards;
}

.no-results-icon {
    font-size: 5rem;
    color: rgba(222, 39, 31, 0.15);
    margin-bottom: 1.5rem;
    animation: float 6s ease-in-out infinite;
}

.no-results h2 {
    font-size: 2.5rem;
    color: var(--neutral-black);
    margin-bottom: 1rem;
    font-family: 'Archivo Black', sans-serif;
    background: linear-gradient(135deg, var(--neutral-black), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.no-results p {
    font-size: 1.2rem;
    color: rgba(29, 29, 27, 0.7);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.suggestion-tag {
    background: rgba(222, 39, 31, 0.1);
    color: var(--primary-red);
    padding: 1rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .suggestion-tag:hover {
        background: var(--primary-red);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(222, 39, 31, 0.15);
    }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes patternFloat {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 60px 60px, 60px 60px;
    }
}

@keyframes dotFloat {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .search-header h1 {
        font-size: 2.5rem;
    }

    .search-stats {
        font-size: 1rem;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .suggestion-tag {
        padding: 0.875rem 1.75rem;
    }
}

@media (max-width: 768px) {
    .search-header h1 {
        font-size: 2rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .suggestions {
        gap: 0.75rem;
    }

    .suggestion-tag {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}
