/* Search / Discovery CSS */

.search-header {
    margin-bottom: 20px;
}

.search-container {
    position: sticky;
    top: 0;
    background: var(--bg-app);
    /* Covers content behind when scrolling */
    z-index: 10;
    padding-bottom: 10px;
}

.search-bar-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    opacity: 0.5;
}

#modern-search-input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    /* Pill shape */
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.2s;
}

#modern-search-input:focus {
    box-shadow: 0 0 0 2px var(--primary-glow);
    border-color: var(--primary);
}

/* Filter Chips (Horizontal Scroll) */
.filter-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    /* Firefox */
}

.filter-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.filter-chip {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-chip.active {
    background: var(--text-main);
    color: var(--bg-app);
    font-weight: 600;
    border-color: var(--text-main);
}

/* Results Grid */
.results-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background 0.2s;
}

.result-card:active {
    background: var(--bg-card-hover);
}

.card-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: var(--text-main);
}

.card-meta {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-rating {
    color: #fbbf24;
    /* Amber/Gold */
    font-weight: 600;
}

.empty-search-state {
    text-align: center;
    padding: 40px;
    opacity: 0.5;
}

.placeholder-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.5;
}