/* CONTENT PAGE STYLES (v3 — simplified) */

.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.filter-bar .select {
  width: auto;
  min-width: 150px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.search-input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
}

.search-input-wrap input {
  padding-left: 38px;
}

.active-filters {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.content-table-title {
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.content-table-topic {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
}

.row-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
}

/* Platform picker (inside Add/Edit Video modal) */
.platform-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.platform-check {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-3) var(--space-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--bg-surface);
  transition: border-color 0.15s ease, background 0.15s ease;
  user-select: none;
}

.platform-check:hover {
  border-color: var(--brand-primary);
}

.platform-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.platform-check-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
}

.platform-check-icon svg {
  width: 100%;
  height: 100%;
}

.platform-check-label {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

.platform-check.is-checked {
  border-color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 12%, var(--bg-surface));
}

.platform-check.is-checked .platform-check-icon,
.platform-check.is-checked .platform-check-label {
  color: var(--brand-primary);
}

/* Platform badges (table / calendar display) */
.platform-badges {
  display: flex;
  gap: 6px;
  align-items: center;
}

.platform-badge {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
}

.platform-badge svg {
  width: 100%;
  height: 100%;
}
