/* style.css — SvADBK shared design system */

/* ── Variables (Dark — default) ───────────────────────────────── */
:root {
  --bg-gradient: linear-gradient(180deg, #1e3a5f 0%, #0f172a 100%);
  --bg-base: #0f172a;
  --card-bg: rgba(15, 23, 42, 0.88);
  --card-border: rgba(148, 163, 184, 0.4);
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.25);
  --text-main: #e5e7eb;
  --text-subtle: #9ca3af;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --transition-fast: 150ms ease-out;
  --transition-med: 220ms ease;
}

/* ── Light theme — redesigned 2026-04-19 ─────────────────────────
   Goal: clean, minimal, professional — no pastell-gradient, no glass,
   high contrast. Think Linear / GitHub / Vercel, not iOS Big Sur.
   The dark mode stays atmospheric; light mode goes content-first. */
:root[data-theme="light"] {
  --bg-gradient: none;
  --bg-base: #f8fafc;
  --bg-elevated: #ffffff;
  --card-bg: #ffffff;
  --card-bg-subtle: #f8fafc;
  --card-border: #e2e8f0;
  --card-border-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-border: rgba(37, 99, 235, 0.25);
  --text-main: #0f172a;
  --text-subtle: #64748b;
  --text-muted: #94a3b8;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
}

/* ── Reset ─────────────────────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Body ──────────────────────────────────────────────────────── */
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--bg-gradient);
  background-attachment: fixed;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
}

/* ── Page shell ────────────────────────────────────────────────── */
.page-shell {
  width: 100%;
  max-width: 1200px;
}

/* ── Card ──────────────────────────────────────────────────────── */
.card {
  position: relative;
  width: 100%;
  min-height: 480px;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow:
    0 26px 60px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(22px);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateY(0) translateZ(0);
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    border-color var(--transition-med);
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  border-radius: var(--radius-pill);
  filter: blur(26px);
  opacity: 0.6;
  pointer-events: none;
}

.card::before {
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.6), transparent 70%);
  top: -40px;
  left: 40px;
}

.card::after {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.75), transparent 70%);
  bottom: -60px;
  right: 40px;
}

.card:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow:
    0 36px 80px rgba(15, 23, 42, 1),
    0 0 0 1px rgba(56, 189, 248, 0.45);
  border-color: rgba(56, 189, 248, 0.7);
}

/* ── Header ────────────────────────────────────────────────────── */
header {
  z-index: 1;
}

.header-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  z-index: 1;
}

.title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.title-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-subtle);
}

.title-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
}

.title {
  font-size: clamp(1.5rem, 1.7vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.subtitle {
  font-size: 0.9rem;
  color: var(--text-subtle);
  line-height: 1.5;
}

.subtitle strong {
  color: var(--text-main);
  font-weight: 500;
}

/* ── Actions & Pills ───────────────────────────────────────────── */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.95);
  font-size: 0.78rem;
  color: var(--text-subtle);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pill strong {
  color: var(--accent);
  font-weight: 500;
}

/* ── Card body & footer ────────────────────────────────────────── */
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 4px;
  z-index: 1;
}

/* ── Status dot ────────────────────────────────────────────────── */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
  margin-right: 6px;
  vertical-align: middle;
}

/* ── Tables (shared base) ──────────────────────────────────────── */
.table-wrapper {
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

/* ── Sections (trait blocks, etc.) ─────────────────────────────── */
.section {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.98);
  padding: 12px 14px 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ── Muted / No data ───────────────────────────────────────────── */
.muted {
  color: var(--text-subtle);
  font-size: 0.85rem;
}

.no-details {
  color: #6b7280;
  font-style: italic;
}

/* ── Buttons ───────────────────────────────────────────────────── */
button, .btn {
  font-family: inherit;
  cursor: pointer;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .card {
    padding: 22px 16px;
    border-radius: 26px;
  }
  .card-header,
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
}
