/* base.css — reset, variables, typographie, layout, bottom-nav */

:root {
  --bg:        #0d0d1a;
  --surface:   #16162a;
  --card:      #1e1e36;
  --border:    #2a2a4a;
  --primary:   #7c6fff;
  --primary-h: #9b8fff;
  --accent:    #00d4aa;
  --text:      #e2e8f0;
  --muted:     #8892a4;
  --danger:    #f87171;
  --warning:   #fbbf24;
  --success:   #34d399;
  --radius:    10px;
  --nav-h:     60px;
  --header-h:  56px;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  min-height: 100dvh;
  padding-bottom: var(--nav-h);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-h); }

/* ── Header ── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.app-header h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}

.app-header .header-logo {
  font-size: 1.4rem;
  line-height: 1;
}

.header-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Main content ── */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 12px 16px;
}

/* ── Bottom navigation ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
  text-decoration: none;
}

.bottom-nav a .nav-icon { font-size: 1.3rem; line-height: 1; }
.bottom-nav a.active  { color: var(--primary); }
.bottom-nav a:hover   { color: var(--primary-h); }

/* ── Back link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}
.back-link:hover { color: var(--text); }

/* ── Typography helpers ── */
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; }

.text-muted   { color: var(--muted); font-size: 0.875rem; }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.95rem; }
