/* JetSetLists — Custom styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

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

:root {
  --bg-950:  #0a0a12;
  --bg-900:  #111118;
  --bg-800:  #1a1a26;
  --bg-700:  #242434;
  --bg-600:  #2e2e42;
  --amber:   #f59e0b;
  --amber-l: #fbbf24;
  --blue:    #3b82f6;
  --red:     #ef4444;
  --green:   #22c55e;
  --text:    #f1f5f9;
  --muted:   #94a3b8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-950);
  color: var(--text);
  line-height: 1.6;
}

/* ── Layout ──────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; }

/* ── Navbar ──────────────────────────────────────────────────────────── */
.navbar {
  background: var(--bg-900);
  border-bottom: 1px solid var(--bg-700);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { background: linear-gradient(180deg, var(--bg-900) 0%, var(--bg-950) 100%); }

/* ── Feature cards ───────────────────────────────────────────────────── */
.feature-card {
  background: var(--bg-800);
  border: 1px solid var(--bg-700);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.feature-icon { font-size: 2.5rem; margin-bottom: 12px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber);
  color: #0a0a0a;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--amber-l); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--bg-600);
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.15s, background 0.15s;
}
.btn-outline:hover { border-color: var(--muted); background: var(--bg-800); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s, background 0.15s;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-700); }

.btn-danger {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--red);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(239,68,68,0.4);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s;
}
.btn-danger:hover { background: rgba(239,68,68,0.15); }

/* ── Cards ───────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-800);
  border: 1px solid var(--bg-700);
  border-radius: 12px;
  padding: 24px;
}

/* ── Forms ───────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.form-input {
  display: block;
  width: 100%;
  background: var(--bg-900);
  color: var(--text);
  border: 1px solid var(--bg-600);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s;
  outline: none;
  resize: vertical;
}
.form-input:focus { border-color: var(--amber); }
.form-input::placeholder { color: var(--bg-600); }

/* ── Tabs ────────────────────────────────────────────────────────────── */
.tab, .tab-active {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.tab { color: var(--muted); }
.tab:hover { color: var(--text); background: var(--bg-800); }
.tab-active { color: var(--amber); background: rgba(245,158,11,0.12); }

/* ── Band cards ──────────────────────────────────────────────────────── */
.band-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-800);
  border: 1px solid var(--bg-700);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
  min-height: 120px;
}
.band-card:hover { border-color: var(--amber); transform: translateY(-2px); }

/* ── Role badges ─────────────────────────────────────────────────────── */
.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}
.role-owner  { background: rgba(245,158,11,0.2); color: var(--amber); }
.role-admin  { background: rgba(59,130,246,0.2); color: #93c5fd; }
.role-member { background: rgba(148,163,184,0.15); color: var(--muted); }

/* ── Key badge ───────────────────────────────────────────────────────── */
.key-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(245,158,11,0.15);
  color: var(--amber);
}

/* ── Song rows ───────────────────────────────────────────────────────── */
.song-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-800);
  border: 1px solid var(--bg-700);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.song-row:hover { border-color: var(--bg-600); }

/* ── Setlist rows ────────────────────────────────────────────────────── */
.setlist-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-800);
  border: 1px solid var(--bg-700);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.setlist-row:hover { border-color: var(--bg-600); }

/* ── Setlist song items ──────────────────────────────────────────────── */
.setlist-song-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-800);
  border: 1px solid var(--bg-700);
  border-radius: 8px;
  gap: 8px;
  transition: border-color 0.15s;
}
.setlist-song-item:hover { border-color: var(--bg-600); }
.setlist-song-item.sortable-chosen { border-color: var(--amber); }
.drag-handle { color: var(--bg-600); font-size: 1.1rem; user-select: none; }
.drag-handle:hover { color: var(--muted); }

/* ── Song sheet ──────────────────────────────────────────────────────── */
.song-sheet {
  background: var(--bg-900);
  border: 1px solid var(--bg-700);
  border-radius: 12px;
  padding: 24px;
  overflow-x: auto;
}
.song-content {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  white-space: pre;
  color: var(--text);
  margin: 0;
}

/* ── Flash messages ──────────────────────────────────────────────────── */
.flash-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.4);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.flash-success {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.4);
  color: #86efac;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* ── Empty states ────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* ── Utilities ───────────────────────────────────────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Scrollbar ───────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-900); }
::-webkit-scrollbar-thumb { background: var(--bg-600); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Tailwind-like helpers used in templates ─────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.min-w-0 { min-width: 0; }
.min-w-5 { min-width: 20px; }
.min-w-8 { min-width: 32px; }
.w-24 { width: 96px; }
.max-w-sm { max-width: 384px; }
.max-w-xl { max-width: 576px; }
.max-w-2xl { max-width: 672px; }
.max-w-3xl { max-width: 768px; }
.max-w-4xl { max-width: 896px; }
.max-w-h-\[60vh\] { max-height: 60vh; }
.max-h-\[60vh\] { max-height: 60vh; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.ml-2 { margin-left: 8px; }
.ml-4 { margin-left: 16px; }
.mr-2 { margin-right: 8px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-auto { margin-top: auto; }
.mt-20 { margin-top: 80px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-10 { padding-top: 40px; padding-bottom: 40px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.py-24 { padding-top: 96px; padding-bottom: 96px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.text-white { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-amber-400 { color: var(--amber-l); }
.text-green-500 { color: var(--green); }
.text-red-400 { color: #f87171; }
.text-red-400 { color: #f87171; }
.bg-gray-700 { background-color: var(--bg-700); }
.bg-gray-800 { background-color: var(--bg-800); }
.bg-gray-950 { background-color: var(--bg-950); }
.rounded { border-radius: 6px; }
.rounded-full { border-radius: 9999px; }
.border-red-900 { border-color: rgba(127,29,29,0.5); }
.h-8 { height: 32px; }
.h-9 { height: 36px; }
.h-14 { height: 56px; }
.h-20 { height: 80px; }
.h-24 { height: 96px; }
.w-6 { width: 24px; }
.w-8 { width: 32px; }
.w-20 { width: 80px; }
.w-24 { width: 96px; }
.opacity-30 { opacity: 0.3; }
.opacity-50 { opacity: 0.5; }
.select-none { user-select: none; }
.transition-colors { transition: color 0.15s; }
.no-underline { text-decoration: none; }
a:visited { color: inherit; }
.whitespace-nowrap { white-space: nowrap; }
.cursor-grab { cursor: grab; }
.active\:cursor-grabbing:active { cursor: grabbing; }
.space-y-1 > * + * { margin-top: 4px; }
.space-y-2 > * + * { margin-top: 8px; }
.divide-y > * + * { border-top: 1px solid; }
.divide-gray-700 > * + * { border-color: var(--bg-700); }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.block { display: block; }
.min-h-screen { min-height: 100vh; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.letter-spacing-\[0\.03em\] { letter-spacing: 0.03em; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2; }
}
