/* ================================================================
   FRIDAY AI - Content Tracker Page Styles
   Phase 8.13: YouTube/Kindle/Podcasts tracking
   ================================================================ */

/* ==================== FILTER BAR ==================== */
.ct-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ct-filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ct-filter-btn:hover { border-color: var(--primary); color: var(--text); }
.ct-filter-btn.active {
  background: var(--primary-dim);
  border-color: var(--primary);
  color: var(--primary);
}
.ct-filter-count {
  background: var(--surface2);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 700;
}
.ct-filter-btn.active .ct-filter-count {
  background: rgba(0, 212, 255, 0.2);
}

/* ==================== SEARCH ==================== */
.ct-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.ct-search-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px 8px 36px;
  color: var(--text);
  font-size: 13px;
}
.ct-search-input:focus { border-color: var(--primary); outline: none; }
.ct-search-wrap {
  position: relative;
  flex: 1;
}
.ct-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-dim);
  pointer-events: none;
}

/* ==================== GRID ==================== */
.ct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

/* ==================== CARD ==================== */
.ct-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  transition: all 0.2s;
}
.ct-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.08);
}
.ct-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ct-card-platform {
  font-size: 16px;
}
.ct-card-status {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ct-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ct-card-creator {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Progress bar */
.ct-card-progress-bar {
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.ct-card-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}
.ct-card-progress-text {
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

/* Rating */
.ct-card-rating {
  color: var(--warning);
  font-size: 12px;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

/* Footer */
.ct-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.ct-card-date {
  font-size: 11px;
  color: var(--text-dim);
}
.ct-card-actions {
  display: flex;
  gap: 4px;
}
.ct-card-action {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s;
}
.ct-card-action:hover { background: var(--surface2); }
.ct-card-delete:hover { background: rgba(239, 68, 68, 0.15); }

/* ==================== EMPTY STATE ==================== */
.ct-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}
.ct-empty-icon { font-size: 48px; margin-bottom: 12px; }
.ct-empty-title { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.ct-empty-desc { font-size: 13px; color: var(--text-muted); max-width: 400px; margin: 0 auto; }

/* ==================== ADD MODAL ==================== */
.ct-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ct-modal.open { display: flex; }
.ct-modal-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  padding: 24px;
}
.ct-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.ct-modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}
.ct-modal-close:hover { color: var(--text); }

.ct-form-group {
  margin-bottom: 12px;
}
.ct-form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}
.ct-form-input,
.ct-form-select,
.ct-form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  box-sizing: border-box;
}
.ct-form-input:focus,
.ct-form-select:focus,
.ct-form-textarea:focus {
  border-color: var(--primary);
  outline: none;
}
.ct-form-textarea { resize: vertical; min-height: 60px; }
.ct-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ct-form-submit {
  width: 100%;
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.15s;
}
.ct-form-submit:hover { opacity: 0.9; }

/* ==================== KPI CARDS ==================== */
.ct-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.ct-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.ct-kpi-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.ct-kpi-lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .ct-form-row { grid-template-columns: 1fr; }
}
