/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:           #0f1216;
  --surface:      #131821;
  --muted:        #9aa4b2;
  --text:         #e6ebf2;
  --accent:       #6be675;
  --accent-strong:#3dd65a;
  --outline:      #232a36;
  --shadow:       0 6px 24px rgba(0,0,0,0.35);
  --radius:       14px;
  --radius-sm:    10px;
}

/* ─── Reset / Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(107,230,117,0.10), transparent 60%),
    radial-gradient(900px 400px at -10%  30%, rgba(86,156,214,0.10),  transparent 60%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }

/* ─── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Header / Nav ──────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: linear-gradient(to bottom, rgba(15,18,22,0.92), rgba(15,18,22,0.60));
  border-bottom: 1px solid var(--outline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 16px;
}

.brand .disc {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #1a202c, #2b3545, #1a202c);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 2px #2b3545, inset 0 0 0 6px #11151c;
  flex-shrink: 0;
}

.brand small {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  font-size: 13px;
}

/* Nav links & buttons */
a.nav-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}

a.nav-link:hover { color: var(--text); }

.nav-user {
  color: var(--muted);
  font-size: 13px;
  padding: 0 10px;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: #151a23;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}

.btn:hover { border-color: var(--accent); color: var(--accent); }

.btn.ghost {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}

.btn.ghost:hover { border-color: var(--outline); }

.btn.primary {
  background: var(--accent);
  color: #0f1216;
  border-color: var(--accent);
  font-weight: 700;
}

.btn.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #0f1216;
}

/* Logout is a button that looks like a nav link */
.btn-nav {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.btn-nav:hover { color: var(--text); }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero { padding: 64px 0 32px; }

.kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 8px;
}

h1 {
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.06;
  margin: 10px 0 16px;
}

h2 {
  font-size: clamp(22px, 4vw, 30px);
  margin: 0 0 20px;
}

h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

.lead {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 72ch;
  line-height: 1.6;
}

p { line-height: 1.6; }

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent), var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* ─── Grid / Sections ───────────────────────────────────────── */
.section  { padding: 24px 0 8px; }
.features { padding: 24px 0 8px; }

.grid,
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 680px) {
  .grid,
  .features-grid { grid-template-columns: 1fr; }
}

/* Block content inside cards (support / privacy pages) */
.block p,  .feature p  { margin: 0 0 8px; color: var(--muted); }
.block ul, .feature ul { margin: 0; padding: 0 0 0 20px; color: var(--muted); }
.block li, .feature li { margin: 6px 0; line-height: 1.5; }

/* ─── Code ──────────────────────────────────────────────────── */
code {
  color: var(--accent);
  background: rgba(107,230,117,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  word-break: break-all;
}

/* ─── Contact block ─────────────────────────────────────────── */
.contact {
  text-align: center;
  margin: 26px 0 8px;
  color: var(--muted);
}

.contact a { color: var(--accent); }
.contact a:hover { color: var(--accent-strong); }

/* ─── Forms ─────────────────────────────────────────────────── */
.form-page {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 20px 80px;
}

.form-card {
  width: 100%;
  max-width: 420px;
}

.form-card h2 { margin-bottom: 28px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107,230,117,0.15);
}

.field-error,
.field-validation-error {
  display: block;
  color: #f87171;
  font-size: 13px;
  margin-top: 5px;
}

/* asp-validation-summary emits .validation-summary-errors */
.validation-summary-errors {
  color: #f87171;
  font-size: 14px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(248,113,113,0.3);
  border-radius: var(--radius-sm);
  background: rgba(248,113,113,0.06);
}

.validation-summary-errors ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.validation-summary-valid { display: none; }

.form-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Releases Search Page ─────────────────────────────────── */
.releases-page {
  padding: 28px 0 72px;
}

.releases-container {
  max-width: none;
}

.releases-card {
  display: block;
}

.releases-lead {
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 78ch;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.search-controls {
  display: grid;
  grid-template-columns: minmax(170px, 220px) 1fr;
  gap: 12px;
  align-items: end;
}

.scope-field {
  margin-bottom: 0;
}

.scope-field select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.scope-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107,230,117,0.15);
}

.search-field {
  margin-bottom: 0;
}

.search-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.result-count {
  margin: 12px 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.empty-results {
  margin-top: 10px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--outline);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
}

.results-table-wrap {
  margin-top: 10px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

.results-grid {
  width: 100%;
  min-width: 950px;
  border-collapse: collapse;
}

.results-grid thead th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #c7d0dc;
  background: #111722;
  border-bottom: 1px solid var(--outline);
  padding: 12px;
}

.results-grid tbody td {
  padding: 12px;
  border-bottom: 1px solid rgba(35,42,54,0.9);
  vertical-align: top;
  line-height: 1.45;
}

.results-grid tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.015);
}

.results-grid tbody tr:hover td {
  background: rgba(107,230,117,0.08);
}

.results-grid tbody tr:last-child td {
  border-bottom: 0;
}

.release-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.stacked-cell {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.stacked-cell strong {
  color: var(--text);
  font-size: 12px;
}

.tracks-cell {
  max-width: 320px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .search-form {
    grid-template-columns: 1fr;
  }

  .search-controls {
    grid-template-columns: 1fr;
  }

  .search-actions {
    width: 100%;
  }

  .search-actions .btn {
    flex: 1 1 auto;
  }
}

/* ─── Footer ────────────────────────────────────────────────── */
footer {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  border-top: 1px solid var(--outline);
}
