/**
 * communityThoughts.css
 * Page chrome for the Community Thoughts page (filter bar, chips, search,
 * sort, sentiment toggle, results loading/empty). Card and modal styles
 * live in `/movies/app/common/components/communityCards/communityCards.css`.
 */

/* Filter chrome */
.ct-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 10px 0 14px;
    border-bottom: 1px solid var(--mv-border-color, #dee2e6);
    margin-bottom: 1rem;
}

.ct-search-wrap {
    position: relative;
    width: 240px;
    max-width: 100%;
}
.ct-search-wrap i {
    position: absolute;
    left: 10px; top: 50%; transform: translateY(-50%);
    color: var(--mv-text-muted, #adb5bd);
    pointer-events: none;
}
.ct-search-wrap input {
    padding-left: 30px;
}

.ct-sort {
    width: auto;
    min-width: 160px;
    margin-left: auto;
}

/* Reviews-only sentiment toggle. Hidden on Lists tab via inline display:none */
.ct-sentiment .btn.active { color: #fff; }
.ct-sentiment .btn-outline-success.active {
    background: var(--mv-accent-success, #198754);
    border-color: var(--mv-accent-success, #198754);
}
.ct-sentiment .btn-outline-danger.active {
    background: var(--mv-accent-danger, #dc3545);
    border-color: var(--mv-accent-danger, #dc3545);
}

/* Entity-type chips */
.ct-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ct-chip {
    background: var(--mv-bg-surface, #f1f3f5);
    color: var(--mv-text-secondary, #6c757d);
    border: 1px solid var(--mv-border-color, #dee2e6);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    user-select: none;
}

.ct-chip:hover {
    background: var(--mv-bg-hover, #e9ecef);
}

.ct-chip.active {
    background: var(--mv-accent-primary, #0d6efd);
    color: #fff;
    border-color: var(--mv-accent-primary, #0d6efd);
}

.ct-chip i {
    font-size: 0.85em;
    margin-right: 3px;
}

/* Results */
.ct-results {
    min-height: 320px;
}

.ct-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.ct-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: var(--mv-text-muted, #6c757d);
    text-align: center;
    border: 1px dashed var(--mv-border-color, #dee2e6);
    border-radius: 10px;
}
.ct-empty i { font-size: 2.4rem; opacity: 0.4; margin-bottom: 0.5rem; }
.ct-empty p { margin: 0; }

[data-bs-theme="dark"] .ct-empty { background: var(--mv-bg-surface); }

@media (max-width: 575px) {
    .ct-search-wrap { width: 100%; }
    .ct-sort { width: 100%; margin-left: 0; }
}
