/* Search Overlay Styles */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    flex-direction: column;
    padding: 10vh 10% 2rem;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.search-input-container {
    flex-grow: 1;
    position: relative;
    margin-right: 2rem;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    outline: none;
    font-family: var(--font-sans);
}

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

.search-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.search-close:hover {
    transform: rotate(90deg);
}

.search-results {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

/* Hide scrollbar */
.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.search-section {
    margin-bottom: 2rem;
}

.search-section-title {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 179, 71, 0.3);
    padding-bottom: 0.5rem;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    transition: background 0.2s ease;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.search-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-item__img {
    width: 80px;
    height: 45px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    background-color: #222;
    flex-shrink: 0;
}

.search-item__img--circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.search-item__info {
    display: flex;
    flex-direction: column;
}

.search-item__title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.search-item__meta {
    color: #888;
    font-size: 0.85rem;
}

.no-results {
    color: #555;
    font-size: 1.2rem;
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 0;
}