/* LIVE TIPPS — Mobile-first PWA mit Push */

:root {
  --bg-0: #07090f;
  --bg-1: #0d1220;
  --bg-2: #131a2e;
  --bg-3: #1a2440;
  --fg: #f0f4ff;
  --fg-muted: #8892b0;
  --fg-dim: #5a6580;
  --accent: #00e09b;
  --accent-glow: rgba(0, 224, 155, 0.18);
  --warn: #f59e0b;
  --warn-glow: rgba(245, 158, 11, 0.16);
  --danger: #ef4456;
  --border: rgba(255, 255, 255, 0.06);
  --border-bright: rgba(255, 255, 255, 0.12);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px var(--accent-glow);
  --radius-card: 16px;
  --radius-chip: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  background: var(--bg-0);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  min-height: 100vh;
}

body {
  background:
    radial-gradient(circle at 0% -10%, rgba(0, 224, 155, 0.05), transparent 50%),
    radial-gradient(circle at 100% -10%, rgba(245, 158, 11, 0.04), transparent 50%),
    var(--bg-0);
  background-attachment: fixed;
  padding-bottom: 80px;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
  padding-top: max(env(safe-area-inset-top), 16px);
  padding-bottom: max(env(safe-area-inset-bottom), 16px);
}

/* ---------- Header ---------- */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-name em {
  color: var(--accent);
  font-style: normal;
}

.status-pill {
  font-size: 0.7rem;
  color: var(--fg-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  background: var(--bg-1);
}

.status-pill.live { color: var(--accent); border-color: rgba(0, 224, 155, 0.3); }
.status-pill.error { color: var(--danger); }

/* ---------- Hero Push CTA ---------- */

.push-card {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-card);
  padding: 20px;
  margin: 16px 0 24px;
  position: relative;
  overflow: hidden;
}

.push-card::before {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 60%; height: 180%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.push-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.push-card p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 14px;
}

.push-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg-0);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-chip);
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-glow);
}

.push-btn:active { transform: scale(0.97); }

.push-btn.subscribed {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

.push-btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Section Titles ---------- */

.section-title {
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 28px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---------- Match Cards ---------- */

.match {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.match-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.match-teams { font-weight: 600; font-size: 0.95rem; }
.match-score { font-weight: 800; font-size: 1.1rem; color: var(--accent); }
.match-meta { color: var(--fg-muted); font-size: 0.72rem; margin-top: 4px; }

/* ---------- HZ Report Cards ---------- */

.report {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-card);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.report-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--warn-glow);
  color: var(--warn);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: var(--radius-chip);
  text-transform: uppercase;
}

.report-teams { font-weight: 700; font-size: 1rem; }
.report-score { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin-top: 6px; }
.report-meta { color: var(--fg-muted); font-size: 0.72rem; margin-top: 4px; }

.stats-row {
  background: var(--bg-3);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 14px 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--fg-muted);
}

.stats-row strong { color: var(--fg); }

.picks { display: flex; flex-direction: column; gap: 8px; }

.pick {
  background: var(--bg-3);
  border-radius: 10px;
  padding: 12px 14px;
  border-left: 3px solid var(--fg-dim);
  transition: transform 0.1s ease;
}

.pick.conf-high   { border-left-color: var(--accent); background: linear-gradient(90deg, var(--accent-glow) 0%, var(--bg-3) 40%); }
.pick.conf-vhigh  { border-left-color: var(--accent); background: linear-gradient(90deg, var(--accent-glow) 0%, var(--bg-3) 50%); box-shadow: 0 0 0 1px rgba(0, 224, 155, 0.2); }
.pick.conf-med    { border-left-color: var(--warn); }

.pick-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}

.pick-rank { font-weight: 800; color: var(--accent); }
.pick-conf { font-weight: 800; font-size: 0.85rem; color: var(--fg); }
.pick-conf.high { color: var(--accent); }
.pick-conf.med  { color: var(--warn); }

.pick-body {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 6px 0 4px;
}

.pick-name { font-weight: 700; font-size: 1rem; }
.pick-prob { color: var(--fg-muted); font-size: 0.8rem; font-weight: 500; }

.pick-prose { color: var(--fg-muted); font-size: 0.78rem; line-height: 1.45; margin-top: 4px; }
.pick-keys  { color: var(--fg-dim); font-size: 0.65rem; font-family: 'JetBrains Mono', ui-monospace, monospace; margin-top: 6px; }

/* ---------- Empty State ---------- */

.empty {
  background: var(--bg-1);
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius-card);
  padding: 32px 20px;
  text-align: center;
  margin: 20px 0;
}

.empty-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
  opacity: 0.6;
}

.empty h3 { font-size: 1rem; margin-bottom: 6px; }
.empty p  { color: var(--fg-muted); font-size: 0.85rem; line-height: 1.5; }

.cl-final-banner {
  background: linear-gradient(135deg, #1a1f3a 0%, #0d1220 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin: 16px 0;
  position: relative;
}

.cl-final-banner h3 { font-size: 0.9rem; margin-bottom: 4px; }
.cl-final-banner p  { font-size: 0.78rem; color: var(--fg-muted); }
.cl-final-banner strong { color: var(--accent); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%; bottom: 20px;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-2);
  border: 1px solid var(--border-bright);
  padding: 12px 18px;
  border-radius: var(--radius-chip);
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 100;
  max-width: calc(100% - 32px);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success { color: var(--accent); }
.toast.error { color: var(--danger); }

/* ---------- Footer ---------- */

.footer {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: 0.7rem;
  text-align: center;
}

.footer-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.footer-stats span { color: var(--accent); font-weight: 600; }
