/* app.css — basketbol.eu PWA (mobile-first, dark, amber accent) */

:root {
  --bg: #14110f;
  --bg-card: #1c1814;
  --bg-card-elev: #241e18;
  --bg-deep: #0d0a08;
  --border: #2d241b;
  --text: #d4c5b2;
  --text-bright: #f5efe6;
  --text-muted: #a89880;
  --accent: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
  --font-display: 'Oswald', 'Impact', 'Arial Narrow', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

a { color: var(--accent); text-decoration: none; }

/* ── header + tabs ─────────────────────────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
}

.app-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 16px;
}

.app-brand {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1.5px;
  color: var(--text-bright);
  padding: 4px 0 10px;
}
.app-brand .accent { color: var(--accent); }

.bell-btn {
  position: absolute;
  right: 16px;
  top: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}
.bell-btn.enabled { border-color: var(--accent); background: var(--accent-soft, rgba(245,158,11,0.12)); }

.notif-status {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 16px 6px;
}

.app-tabs {
  display: flex;
  gap: 4px;
  padding: 0 10px;
}

.app-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 10px 4px 12px;
  cursor: pointer;
}
.app-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── panels ────────────────────────────────────────────────────── */
.tab-panel { display: none; padding: 20px 16px 32px; max-width: 640px; margin: 0 auto; }
.tab-panel.active { display: block; }

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint, var(--text-muted));
  margin: 20px 0 10px;
}
.section-label:first-child { margin-top: 0; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

/* ── Bet of the Day ────────────────────────────────────────────── */
.botd-card {
  background: linear-gradient(135deg, var(--bg-card-elev) 0%, #2d2016 100%);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 18px;
}
.botd-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
}
.botd-match {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-bright);
  margin: 8px 0 2px;
}
.botd-league { color: var(--text-muted); font-size: 13px; }
.botd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.botd-meta .k { color: var(--text-muted); }
.botd-meta .v { color: var(--text-bright); font-weight: 700; }
.botd-pick {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent-soft, rgba(245,158,11,0.12));
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ── history ───────────────────────────────────────────────────── */
.history-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.history-item .teams { flex: 1; min-width: 0; }
.history-item .teams .m { color: var(--text-bright); font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-item .teams .sub { color: var(--text-muted); font-size: 12px; }
.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.badge.win { background: rgba(16,185,129,0.15); color: var(--green); }
.badge.loss { background: rgba(239,68,68,0.15); color: var(--red); }
.badge.odds { background: var(--bg-card-elev); color: var(--text-bright); }

/* ── VIP ───────────────────────────────────────────────────────── */
.vip-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.vip-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
}
.vip-stat .v { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--accent); }
.vip-stat .k { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.vip-list { list-style: none; margin: 0; padding: 0; }
.vip-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.vip-list li:last-child { border-bottom: none; }
.pay-note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

/* ── buttons / misc ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
.btn-block { display: block; width: 100%; text-align: center; margin-top: 16px; }

.muted { color: var(--text-muted); }
.small { font-size: 13px; }

.disclaimer {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text-faint, var(--text-muted));
  font-size: 12px;
  line-height: 1.45;
}

.empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-muted);
}
.empty .icon { font-size: 30px; display: block; margin-bottom: 8px; }

.how-steps { list-style: none; margin: 0; padding: 0; }
.how-steps li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.how-steps li:last-child { border-bottom: none; }
.how-steps .n {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  min-width: 24px;
  font-size: 18px;
}
