/*
  FeedCommentary UI — dark, high-contrast shell inspired by modern developer consoles
  (Supabase / Atlas-like: sidebar, restrained accent, monospace accents).
*/

:root {
  --fc-bg: #0b0c0f;
  --fc-panel: #12131a;
  --fc-panel-2: #181a22;
  --fc-border: rgba(255, 255, 255, 0.08);
  --fc-text: #e8e9ef;
  --fc-muted: #9aa3b2;
  --fc-accent: #3ecf8e;
  --fc-accent-dim: rgba(62, 207, 142, 0.15);
  --fc-danger: #ff6b6b;
  --fc-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fc-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --fc-radius: 12px;
  --fc-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

.fc-body {
  font-family: var(--fc-font);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(62, 207, 142, 0.08), transparent),
    radial-gradient(800px 400px at 90% 0%, rgba(120, 160, 255, 0.06), transparent), var(--fc-bg);
  color: var(--fc-text);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.fc-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.fc-sidebar {
  border-right: 1px solid var(--fc-border);
  background: linear-gradient(180deg, #0f1016, #0b0c0f 40%);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.fc-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.fc-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--fc-accent), #2aa876);
  box-shadow: 0 8px 30px rgba(62, 207, 142, 0.25);
}

.fc-brand-title {
  font-weight: 650;
  letter-spacing: -0.02em;
}

.fc-brand-sub {
  font-size: 12px;
  color: var(--fc-muted);
}

.fc-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fc-nav-link {
  color: var(--fc-muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.fc-nav-link:hover {
  color: var(--fc-text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--fc-border);
}

.fc-sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fc-main {
  padding: 36px 40px 64px;
}

.fc-page {
  max-width: 1100px;
}

.fc-page-header {
  margin-bottom: 28px;
}

.fc-hero {
  max-width: 900px;
}

.fc-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--fc-muted);
  margin: 0 0 12px;
}

.fc-h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.fc-h2 {
  font-size: 20px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.fc-h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.fc-lead {
  font-size: 18px;
  color: var(--fc-muted);
  margin: 0 0 28px;
}

.fc-hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
}

.fc-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.fc-card {
  background: var(--fc-panel);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 20px 22px;
  box-shadow: var(--fc-shadow);
}

.fc-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.fc-table-wrap {
  overflow: auto;
}

.fc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.fc-table th,
.fc-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--fc-border);
  text-align: left;
}

.fc-table th {
  color: var(--fc-muted);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fc-right {
  text-align: right;
}

.fc-muted {
  color: var(--fc-muted);
}

.fc-small {
  font-size: 12px;
}

.fc-link {
  color: var(--fc-accent);
  text-decoration: none;
}

.fc-link:hover {
  text-decoration: underline;
}

.fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.fc-btn:active {
  transform: translateY(1px);
}

.fc-btn-primary {
  background: linear-gradient(180deg, #47e1a4, var(--fc-accent));
  color: #04120b;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 40px rgba(62, 207, 142, 0.25);
}

.fc-btn-secondary {
  background: rgba(62, 207, 142, 0.12);
  color: var(--fc-accent);
  border-color: rgba(62, 207, 142, 0.35);
}

.fc-btn-ghost {
  background: transparent;
  color: var(--fc-text);
  border-color: var(--fc-border);
}

.fc-btn-block {
  width: 100%;
}

.fc-inline {
  display: inline;
}

.fc-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.fc-label {
  font-size: 12px;
  color: var(--fc-muted);
}

.fc-input,
select.fc-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--fc-border);
  background: var(--fc-panel-2);
  color: var(--fc-text);
  font-size: 14px;
  outline: none;
}

.fc-input:focus {
  border-color: rgba(62, 207, 142, 0.55);
  box-shadow: 0 0 0 3px var(--fc-accent-dim);
}

.fc-error {
  color: var(--fc-danger);
  font-size: 13px;
}

.fc-messages {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc-flash {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--fc-border);
  background: var(--fc-panel-2);
  font-size: 14px;
}

.fc-flash-success {
  border-color: rgba(62, 207, 142, 0.35);
}

.fc-flash-error {
  border-color: rgba(255, 107, 107, 0.45);
}

.fc-flash-warning {
  border-color: rgba(255, 200, 120, 0.45);
}

.fc-auth {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.fc-auth-card {
  width: min(440px, 100%);
}

.fc-narrow {
  max-width: 640px;
}

.fc-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--fc-border);
  color: var(--fc-text);
  background: rgba(255, 255, 255, 0.03);
}

.fc-pill-muted {
  color: var(--fc-muted);
}

.fc-code {
  display: block;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--fc-border);
  background: #0d0f14;
  color: #d6dcf5;
  font-family: var(--fc-mono);
  font-size: 12px;
  overflow: auto;
}

code {
  font-family: var(--fc-mono);
  font-size: 12px;
  color: #d6dcf5;
}

.fc-search-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.fc-search-row .fc-input {
  flex: 1 1 220px;
}

.fc-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.fc-media-card {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--fc-border);
  border-radius: 10px;
  background: var(--fc-panel-2);
  text-align: center;
  font-size: 12px;
  color: var(--fc-muted);
}

.fc-media-card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 960px) {
  .fc-shell {
    grid-template-columns: 1fr;
  }
  .fc-sidebar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .fc-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .fc-main {
    padding: 24px 18px 48px;
  }
}
