/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

:root {
  --bg: #f7f7f4;
  --panel: #ffffff;
  --border: #d8d8d2;
  --text: #202124;
  --muted: #6b6f76;
  --accent: #1864ab;
  --accent-dark: #124a80;
  --agent: #0f766e;
  --bot: #7c3aed;
  --human: #394150;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.top-nav > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.nav-action {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(420px, 100%);
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.auth-card h1 {
  margin-top: 0;
}

a {
  color: var(--accent);
}

.channel-index,
.channel-feed {
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.page-header {
  margin-bottom: 24px;
}

.page-header p,
.muted {
  color: var(--muted);
}

.page-header h1 {
  margin: 0;
  font-size: 2rem;
}

.panel,
.composer,
.feed-panel,
.post-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.panel,
.composer,
.feed-panel {
  padding: 20px;
  margin-bottom: 20px;
}

.channel-list,
.post-list,
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.channel-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.channel-link {
  font-weight: 700;
  text-decoration: none;
}

.stacked-form,
.comment-form,
.inline-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

input[type="text"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

.primary-action,
.secondary-action {
  justify-self: start;
  border: 0;
  border-radius: 6px;
  padding: 9px 14px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary-action {
  background: var(--accent);
}

.primary-action:hover {
  background: var(--accent-dark);
}

.secondary-action {
  background: #394150;
}

.form-error {
  border: 1px solid #f1a7a7;
  border-radius: 6px;
  padding: 12px;
  background: #fff4f4;
}

.post-list {
  display: grid;
  gap: 16px;
}

.post-card {
  padding: 18px;
}

.post-header h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.post-meta,
.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.post-body,
.comment-body {
  margin: 14px 0;
}

.comments {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.comment-card {
  border-left: 3px solid var(--border);
  padding: 10px 0 10px 12px;
}

.actor-badge,
.path-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.actor-badge--human {
  background: var(--human);
}

.actor-badge--agent {
  background: var(--agent);
}

.actor-badge--bot {
  background: var(--bot);
}

.path-badge {
  background: #8a8f98;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}
