/* style.css — feature-tracker public pages, light theme */
:root {
  --ft-bg: #F9FAFB;
  --ft-bg-card: #FFFFFF;
  --ft-bg-soft: #F3F4F6;
  --ft-border: #E5E7EB;
  --ft-border-strong: #D1D5DB;
  --ft-text: #111827;
  --ft-text-soft: #4B5563;
  --ft-text-muted: #6B7280;
  --ft-accent: #2563EB;
  --ft-accent-bg: #EFF6FF;
  --ft-accent-hover: #1D4ED8;
  --ft-success: #10B981;
  --ft-success-bg: #D1FAE5;
  --ft-warn: #F59E0B;
  --ft-warn-bg: #FEF3C7;
  --ft-danger: #EF4444;
  --ft-danger-bg: #FEE2E2;
  --ft-purple: #A855F7;
  --ft-radius: 8px;
  --ft-radius-sm: 6px;
}
* { box-sizing: border-box; }
.ft-page {
  margin: 0; padding: 0;
  background: var(--ft-bg); color: var(--ft-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px; line-height: 1.5; min-height: 100vh;
}
.ft-page a { color: var(--ft-accent); text-decoration: none; }
.ft-page a:hover { text-decoration: underline; }
.ft-page button { font: inherit; cursor: pointer; }

.ft-header {
  background: var(--ft-bg-card);
  border-bottom: 1px solid var(--ft-border);
  padding: 14px 24px;
  position: sticky; top: 0; z-index: 10;
}
.ft-header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.ft-brand { font-weight: 700; font-size: 16px; color: var(--ft-text); }
.ft-brand-mark {
  display: inline-block; width: 26px; height: 26px;
  border-radius: 6px; vertical-align: middle; margin-right: 8px;
  background: linear-gradient(135deg, var(--ft-accent), var(--ft-purple));
}
.ft-nav { margin-left: auto; display: flex; gap: 4px; }
.ft-nav a {
  padding: 6px 12px; border-radius: var(--ft-radius-sm);
  font-size: 13px; color: var(--ft-text-soft); font-weight: 500;
}
.ft-nav a:hover { background: var(--ft-bg-soft); color: var(--ft-text); text-decoration: none; }
.ft-nav a.active { background: var(--ft-accent-bg); color: var(--ft-accent); }

/* Header CTA — replaces the floating bug dock so the action is always
   accessible at the top of every page rather than hovering at the bottom. */
.ft-header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; margin-left: 12px;
  background: var(--ft-accent); color: white;
  border: none; border-radius: var(--ft-radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: background .15s, transform .05s;
  white-space: nowrap;
}
.ft-header-cta:hover { background: var(--ft-accent-strong, #1D4ED8); }
.ft-header-cta:active { transform: translateY(1px); }
.ft-header-cta-icon { font-size: 14px; line-height: 1; }
@media (max-width: 600px) {
  .ft-header-cta-text { display: none; }
  .ft-header-cta { padding: 8px 10px; }
}

.ft-main { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.ft-page-tracker .ft-main { max-width: none; padding: 0; }
.ft-page-tracker .ft-header { display: none; }

.ft-page-title { font-size: 28px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.02em; }
.ft-page-subtitle { color: var(--ft-text-muted); font-size: 15px; margin: 0 0 28px; }

.ft-loader {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  color: var(--ft-text-muted); font-size: 13px;
}

.ft-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-radius: var(--ft-radius);
  margin-bottom: 24px; font-weight: 600; font-size: 15px;
}
.ft-banner.ft-up       { background: var(--ft-success-bg); color: #065F46; }
.ft-banner.ft-degraded { background: var(--ft-warn-bg); color: #92400E; }
.ft-banner.ft-down     { background: var(--ft-danger-bg); color: #991B1B; }
.ft-banner .ft-dot { width: 12px; height: 12px; border-radius: 999px; background: currentColor; box-shadow: 0 0 0 4px rgba(255,255,255,0.5); }

.ft-section-title {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--ft-text-muted);
  margin: 16px 0 8px;
}
.ft-incident {
  background: var(--ft-bg-card);
  border: 1px solid var(--ft-border);
  border-left: 4px solid var(--ft-warn);
  border-radius: var(--ft-radius);
  padding: 14px 16px; margin-bottom: 8px;
}
.ft-incident.ft-sev-major    { border-left-color: var(--ft-warn); }
.ft-incident.ft-sev-critical { border-left-color: var(--ft-danger); }
.ft-incident-title { font-weight: 600; font-size: 14px; }
.ft-incident-desc { font-size: 13px; color: var(--ft-text-soft); margin-top: 4px; }
.ft-incident-meta { font-size: 12px; color: var(--ft-text-muted); margin-top: 4px; display: flex; gap: 8px; }
.ft-incident-status {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--ft-bg-soft); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.ft-category { margin-bottom: 24px; }
.ft-category-title {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--ft-text-muted);
  margin: 24px 0 8px; padding: 0 4px;
}
.ft-check-list {
  background: var(--ft-bg-card);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius);
  overflow: hidden;
}
.ft-check-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 16px; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--ft-border);
}
.ft-check-row:last-child { border-bottom: none; }
.ft-check-name-row { display: flex; align-items: center; gap: 10px; }
.ft-check-name { font-weight: 500; font-size: 14px; }
.ft-check-meta { font-size: 12px; color: var(--ft-text-muted); margin-top: 2px; }
.ft-status-dot { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }
.ft-status-dot.up       { background: var(--ft-success); box-shadow: 0 0 0 3px var(--ft-success-bg); }
.ft-status-dot.degraded { background: var(--ft-warn); box-shadow: 0 0 0 3px var(--ft-warn-bg); }
.ft-status-dot.down     { background: var(--ft-danger); box-shadow: 0 0 0 3px var(--ft-danger-bg); }
.ft-status-dot.unknown  { background: #9CA3AF; box-shadow: 0 0 0 3px var(--ft-bg-soft); }
.ft-uptime-label { font-size: 12px; font-weight: 500; color: var(--ft-text-soft); }

.ft-empty { text-align: center; padding: 48px 16px; color: var(--ft-text-muted); }
.ft-spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 3px solid var(--ft-border);
  border-top-color: var(--ft-accent);
  border-radius: 999px;
  animation: ft-spin .8s linear infinite;
}
@keyframes ft-spin { to { transform: rotate(360deg); } }

.ft-last-updated { text-align: center; margin-top: 32px; font-size: 12px; color: var(--ft-text-muted); }

.ft-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.ft-toolbar-divider { color: var(--ft-text-muted); font-size: 12px; margin: 0 4px; }
.ft-btn {
  padding: 7px 12px;
  background: var(--ft-bg-card);
  border: 1px solid var(--ft-border-strong);
  border-radius: var(--ft-radius-sm);
  font-size: 13px; font-weight: 500;
  color: var(--ft-text-soft);
}
.ft-btn:hover { background: var(--ft-bg-soft); color: var(--ft-text); }
.ft-btn.active { background: var(--ft-accent-bg); color: var(--ft-accent); border-color: var(--ft-accent); }
.ft-btn-primary {
  background: var(--ft-accent); color: white; border-color: var(--ft-accent);
  margin-left: auto;
}
.ft-btn-primary:hover { background: var(--ft-accent-hover); color: white; }

.ft-feature-list-inner {
  background: var(--ft-bg-card);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius);
  overflow: hidden;
}
.ft-feature-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--ft-border);
  cursor: pointer;
  transition: background .1s ease;
}
.ft-feature-row:last-child { border-bottom: none; }
.ft-feature-row:hover { background: var(--ft-bg-soft); }
.ft-vote-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-width: 56px; padding: 8px 0;
  border: 1px solid var(--ft-border-strong);
  border-radius: var(--ft-radius-sm);
  background: var(--ft-bg-card);
  flex-shrink: 0;
}
.ft-vote-btn:hover { border-color: var(--ft-accent); color: var(--ft-accent); }
.ft-vote-btn.voted { background: var(--ft-accent-bg); border-color: var(--ft-accent); color: var(--ft-accent); }
.ft-vote-arrow { font-size: 14px; line-height: 1; }
.ft-vote-count { font-size: 14px; font-weight: 700; line-height: 1.2; }
.ft-feature-info { flex: 1; min-width: 0; }
.ft-feature-title { font-weight: 500; font-size: 14px; margin-bottom: 4px; }
.ft-feature-meta { font-size: 12px; color: var(--ft-text-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.ft-pill {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px;
  background: var(--ft-bg-soft); color: var(--ft-text-soft);
}
.ft-pill-shipped  { background: var(--ft-success-bg); color: #065F46; }
.ft-pill-progress { background: var(--ft-accent-bg); color: var(--ft-accent); }
.ft-pill-idea     { background: #FAF5FF; color: var(--ft-purple); }

.ft-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--ft-text); color: white;
  padding: 10px 16px; border-radius: var(--ft-radius-sm);
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  z-index: 100;
}
.ft-toast.show { opacity: 1; }

@media (max-width: 640px) {
  .ft-main { padding: 20px 16px; }
}

/* ============ UP/DOWN VOTE (features list) ============ */
.ft-vote-stack {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--ft-bg-card); border: 1px solid var(--ft-border-strong);
  border-radius: var(--ft-radius-sm); padding: 4px 6px; min-width: 56px; flex-shrink: 0;
}
.ft-vote-arrow {
  display: block; width: 28px; height: 22px;
  background: none; border: none; padding: 0;
  font-size: 14px; line-height: 22px; color: var(--ft-text-muted);
  cursor: pointer; transition: color .1s ease, transform .1s ease;
}
.ft-vote-arrow:hover { color: var(--ft-text); transform: scale(1.15); }
.ft-vote-arrow.active.up   { color: var(--ft-accent); }
.ft-vote-arrow.active.down { color: var(--ft-danger); }
.ft-vote-score {
  font-weight: 700; font-size: 14px; line-height: 1.4;
  color: var(--ft-text); padding: 2px 0;
}
.ft-vote-score.positive { color: var(--ft-accent); }
.ft-vote-score.negative { color: var(--ft-danger); }

/* ============ ROADMAP ============ */
.ft-roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.ft-rm-col {
  background: var(--ft-bg-card);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius);
  padding: 16px;
  min-height: 200px;
}
.ft-rm-col-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2px;
}
.ft-rm-col-title { font-weight: 600; font-size: 14px; color: var(--ft-text); }
.ft-rm-col-count {
  font-size: 12px; color: var(--ft-text-muted);
  background: var(--ft-bg-soft); padding: 2px 8px; border-radius: 999px;
  font-weight: 500;
}
.ft-rm-col-subtitle {
  font-size: 12px; color: var(--ft-text-muted);
  margin-bottom: 16px;
}
.ft-rm-col-planning    { border-top: 3px solid var(--ft-purple); }
.ft-rm-col-in-progress { border-top: 3px solid var(--ft-accent); }
.ft-rm-col-shipped     { border-top: 3px solid var(--ft-success); }
.ft-rm-col-body { display: flex; flex-direction: column; gap: 10px; }
.ft-rm-empty {
  text-align: center; padding: 32px 12px;
  color: var(--ft-text-muted); font-size: 13px;
  border: 1px dashed var(--ft-border); border-radius: var(--ft-radius-sm);
}
.ft-rm-card {
  display: flex; gap: 12px;
  background: var(--ft-bg);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-sm);
  padding: 12px;
  transition: border-color .1s ease, box-shadow .1s ease, opacity .1s ease;
}
.ft-rm-card:hover {
  border-color: var(--ft-border-strong);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ft-rm-card.admin-draggable { cursor: grab; }
.ft-rm-card.admin-draggable:active { cursor: grabbing; }
.ft-rm-card.dragging { opacity: 0.45; transform: rotate(1deg); }
.ft-rm-col.drop-target {
  background: var(--ft-accent-bg);
  outline: 2px dashed var(--ft-accent);
  outline-offset: -4px;
}
.ft-rm-col.drop-target .ft-rm-col-header { color: var(--ft-accent); }
.ft-rm-vote {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--ft-bg-card); border: 1px solid var(--ft-border-strong);
  border-radius: var(--ft-radius-sm); padding: 3px 4px; min-width: 40px;
  flex-shrink: 0; align-self: flex-start;
}
.ft-rm-arrow {
  display: block; width: 24px; height: 18px;
  background: none; border: none; padding: 0;
  font-size: 11px; line-height: 18px; color: var(--ft-text-muted);
  cursor: pointer; transition: color .1s ease;
}
.ft-rm-arrow:hover { color: var(--ft-text); }
.ft-rm-arrow.active.up   { color: var(--ft-accent); }
.ft-rm-arrow.active.down { color: var(--ft-danger); }
.ft-rm-score {
  font-weight: 700; font-size: 12px; line-height: 1.3;
  color: var(--ft-text); padding: 1px 0;
}
.ft-rm-score.positive { color: var(--ft-accent); }
.ft-rm-score.negative { color: var(--ft-danger); }
.ft-rm-body { flex: 1; min-width: 0; }
.ft-rm-title { font-weight: 500; font-size: 13.5px; margin-bottom: 6px; line-height: 1.4; }
.ft-rm-meta { font-size: 11.5px; color: var(--ft-text-muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ft-rm-tag {
  display: inline-flex; padding: 1px 7px; border-radius: 999px;
  background: var(--ft-bg-soft); color: var(--ft-text-soft);
  font-size: 11px; font-weight: 500;
}

@media (max-width: 900px) {
  .ft-roadmap { grid-template-columns: 1fr; }
}