/* StreamSearch — Media Monitoring UI */

html, body {
    height: 100%;
}

/* Panels */
.search-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 380px;
    background: #1e293b;
    border-right: 1px solid #334155;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
}

.search-panel.active {
    transform: translateX(0);
}

.faces-panel,
.stories-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    background: #1e293b;
    border-left: 1px solid #334155;
    z-index: 40;
    transform: translateX(100%);
    transition: transform 0.2s ease;
}

.faces-panel.active,
.stories-panel.active {
    transform: translateX(0);
}

/* Channel tiles */
.channel-tile {
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.channel-tile:hover {
    transform: scale(1.02);
    z-index: 2;
}

/* Channel strip items in expanded view */
.strip-tile {
    aspect-ratio: 16/9;
    cursor: pointer;
    border: 1px solid #334155;
    border-radius: 0.375rem;
    overflow: hidden;
    position: relative;
    transition: border-color 0.15s ease;
}

.strip-tile:hover {
    border-color: #3b82f6;
}

.strip-tile.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* Alert items */
.alert-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 9999px;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.alert-item:hover {
    border-color: #3b82f6;
}

.alert-item.alert-face {
    border-left: 3px solid #dc2626;
}

.alert-item.alert-keyword {
    border-left: 3px solid #7c3aed;
}

.alert-item.alert-story {
    border-left: 3px solid #d97706;
}

.alert-item.alert-sentiment {
    border-left: 3px solid #059669;
}

/* Badges */
.badge {
    font-size: 0.65rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-ocr { background: #7c3aed; color: white; }
.badge-speech { background: #059669; color: white; }
.badge-face { background: #dc2626; color: white; }

/* Sentiment bars */
.sentiment-bar {
    height: 6px;
    border-radius: 3px;
    background: #334155;
    overflow: hidden;
}

.sentiment-fill-positive { background: #059669; }
.sentiment-fill-neutral { background: #6b7280; }
.sentiment-fill-negative { background: #dc2626; }

/* Face chips */
.face-chip {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.375rem;
    font-size: 0.75rem;
}

.face-chip img {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    object-fit: cover;
}

/* Search results */
.search-result {
    padding: 0.75rem;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.search-result:hover {
    border-color: #3b82f6;
}

/* Story card */
.story-card {
    padding: 0.75rem;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.5rem;
}

/* Dimmed grid when panel is open */
#monitor-area.dimmed {
    opacity: 0.4;
    pointer-events: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
