/* Social Realtr — Feature Backlog shared styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #4F46E5;
  --green: #2a9d60;
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-300: #d4d4d8;
  --gray-500: #71717a;
  --gray-700: #3f3f46;
  --gray-900: #18181b;
  --red: #dc2626;
  --amber: #d97706;
  --emerald: #059669;
  --blue: #2563eb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  --radius: 10px;
  --radius-lg: 14px;
}

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  color: var(--black);
  background: var(--gray-50);
  line-height: 1.5;
  font-size: 15px;
}

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1280px; margin: 0 auto; padding: 32px 24px; }

.hero {
  background:
    radial-gradient(1100px 360px at 90% -10%, rgba(236, 72, 153, 0.35), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(42, 157, 96, 0.30), transparent 55%),
    linear-gradient(135deg, var(--black) 0%, #1a1a1a 100%);
  color: var(--white);
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.55;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.hero p { font-size: 17px; color: rgba(255,255,255,0.75); max-width: 720px; }
.hero .stats { display: flex; gap: 32px; margin-top: 24px; flex-wrap: wrap; }
.hero .stat { display: flex; flex-direction: column; }
.hero .stat-value { font-size: 28px; font-weight: 800; color: var(--white); }
.hero .stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); margin-top: 4px; }

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  position: sticky;
  top: 16px;
  z-index: 10;
}
.toolbar input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.toolbar input:focus { outline: 2px solid var(--purple); outline-offset: -1px; }
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gray-100);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}
.chip:hover { background: var(--gray-200); }
.chip.active {
  background: var(--black);
  color: var(--white);
}

.category {
  margin-bottom: 32px;
}
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 4px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
}
.category-header h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.category-header .count {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: 0 10px 28px rgba(15, 12, 50, 0.06), 0 2px 6px rgba(15, 12, 50, 0.04);
  transform: translateY(-1px);
  border-color: rgba(79, 70, 229, 0.18);
}

.card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.priority {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.p0 { background: #fee2e2; color: var(--red); }
.p1 { background: #fef3c7; color: var(--amber); }
.p2 { background: #d1fae5; color: var(--emerald); }
.p3 { background: var(--gray-100); color: var(--gray-700); }
.id {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
}
.tag {
  font-size: 11px;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500;
}
.tag.bug { background: #fee2e2; color: var(--red); }
.tag.dupe { background: #ede9fe; color: var(--purple); }
.tag.confirm { background: #fef3c7; color: var(--amber); }
.tag.dropped { background: var(--gray-200); color: var(--gray-500); text-decoration: line-through; }
.tag.done { background: #d1fae5; color: var(--emerald); }
.tag.staff { background: #dbeafe; color: var(--blue); }

.card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
  line-height: 1.35;
}
.card .desc {
  font-size: 13.5px;
  color: var(--gray-700);
  margin-bottom: 10px;
  line-height: 1.55;
}
.card .why, .card .tip {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-top: 6px;
  line-height: 1.5;
}
.card .why strong, .card .tip strong { color: var(--gray-700); font-weight: 600; }

.card-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--black);
  color: var(--white);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: transform 0.15s;
}
.btn-view:hover { text-decoration: none; transform: scale(1.03); }
.btn-view.disabled {
  background: var(--gray-200);
  color: var(--gray-500);
  cursor: not-allowed;
  pointer-events: none;
}

.note {
  background: #fef9c3;
  border-left: 3px solid var(--amber);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #713f12;
  margin: 8px 0;
}
.note strong { font-weight: 700; }

.intro-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.intro-card h2 { font-size: 18px; margin-bottom: 12px; }
.intro-card p { font-size: 14.5px; color: var(--gray-700); margin-bottom: 8px; }
.intro-card ul { padding-left: 20px; font-size: 14px; color: var(--gray-700); }
.intro-card li { margin-bottom: 4px; }

.legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--gray-700);
  flex-wrap: wrap;
  align-items: center;
}
.legend-item { display: flex; align-items: center; gap: 6px; }

@media (max-width: 640px) {
  .hero { padding: 32px 20px; }
  .hero h1 { font-size: 28px; }
  .toolbar { position: static; }
  .cards { grid-template-columns: 1fr; }
}
