/* ===== Shared styles for content modules (forum + learning) ===== */

.content-layout {
  max-width: 760px;
  margin: 0 auto;
}

.content-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.pill.active {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}

.search-input {
  flex: 1;
  min-width: 180px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.create-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  margin-bottom: 16px;
}

.create-form input,
.create-form select,
.create-form textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 10px;
}

.form-actions { display: flex; gap: 10px; }

.content-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.content-card:hover { border-color: var(--gold-dim); }

.unread-notif { border-color: var(--teal); background: rgba(79, 176, 174, 0.06); }

.content-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.content-card-top h3 { margin: 0; font-size: 15px; font-weight: 600; }

.category-badge {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.excerpt { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.content-meta {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.empty-state {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 30px 0;
}

/* ---------- Detail view ---------- */
.link-back {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--teal);
  cursor: pointer;
  font-size: 13.5px;
}

.detail-view {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
}

.detail-header h2 { margin: 8px 0 4px; font-family: var(--font-head); font-size: 20px; }

.detail-body {
  margin: 16px 0;
  white-space: pre-wrap;
  font-size: 14.5px;
  line-height: 1.7;
}

.detail-actions { display: flex; gap: 10px; align-items: center; }

.fav-btn {
  background: none;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  border-radius: 5px;
  padding: 8px 14px;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
}

.fav-btn.active { background: rgba(201, 162, 39, 0.1); }

/* ---------- Replies ---------- */
.replies-list { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }

.reply-card {
  background: var(--surface-2);
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 13.5px;
}

.reply-meta { font-size: 11px; color: var(--muted); margin-bottom: 4px; display: flex; justify-content: space-between; }

.reply-body { line-height: 1.5; }

.btn-tiny {
  background: none;
  border: none;
  color: #e0897a;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}
