/* ── LottoMom · Kentucky Powerball · pb-styles.css ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #0f0f13;
  --surface: #1a1a24;
  --surface2: #22222e;
  --border: #2e2e3e;
  --text: #e8e8f0;
  --muted: #888899;
  --gold: #f5c518;
  --green: #4ade80;
  --blue: #60a5fa;
  --red: #f87171;
  --purple: #c084fc;
  --accent: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; min-height: 100vh; }

/* ── AD SYSTEM ── */
.ad-banner {
  background: var(--surface); border-bottom: 1px solid var(--border);
  text-align: center; padding: 8px; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.05em;
}
.ad-banner a { color: var(--gold); text-decoration: none; }
.ad-leaderboard {
  display: flex; align-items: center; justify-content: center;
  width: 728px; height: 90px; max-width: 100%;
  background: linear-gradient(135deg, #1e1e2e, #2a2a3e);
  border: 1px dashed var(--border); border-radius: 6px;
  margin: 0 auto; color: var(--muted); font-size: 0.8rem;
}
.ad-rectangle {
  width: 300px; height: 250px;
  background: linear-gradient(135deg, #1e1e2e, #2a2a3e);
  border: 1px dashed var(--border); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.8rem; margin: 0 auto;
}
.ad-section { padding: 14px; text-align: center; }
.ad-label { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }

/* ── HEADER ── */
header {
  background: linear-gradient(135deg, #0f0f13, #1a1a2e);
  border-bottom: 1px solid var(--border); padding: 16px 24px;
}
.header-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-brand { font-size: 1.3rem; font-weight: 700; color: var(--gold); text-decoration: none; }
.site-brand span { color: var(--text); }

/* ── BACK LINK ── */
.pb-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem; color: var(--muted); text-decoration: none;
  padding: 6px 0; transition: color 0.2s;
}
.pb-back:hover { color: var(--gold); }

/* ── TABS ── */
.tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border); padding: 0 24px;
  max-width: 960px; margin: 0 auto;
}
.tab-btn {
  background: none; border: none; color: var(--muted); font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 500; padding: 14px 18px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s, border-color 0.2s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ── TAB CONTENT ── */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── MAIN ── */
main { max-width: 960px; margin: 0 auto; padding: 32px 24px; }
.content-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }
@media (max-width: 860px) { .content-with-sidebar { grid-template-columns: 1fr; } }
.sidebar-ad { position: sticky; top: 20px; }

/* ── HERO BAND ── */
.game-hero {
  background: linear-gradient(135deg, #1a0a0a, #2a1010);
  border: 1px solid rgba(239,68,68,0.25); border-radius: 14px;
  padding: 28px; margin-bottom: 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.game-hero-icon { font-size: 3rem; }
.game-hero-info h1 { font-size: 1.8rem; font-weight: 700; }
.game-hero-info p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.jackpot-display { margin-left: auto; text-align: right; }
.jackpot-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.jackpot-amount { font-size: 2rem; font-weight: 700; color: var(--gold); }

/* ── PLAY AREA ── */
.play-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px; margin-bottom: 20px;
}
.play-card h2 { font-size: 1rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }

.number-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.num-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border);
  background: var(--surface2); color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.num-btn:hover { border-color: var(--accent); }
.num-btn.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.num-btn.pb-ball.selected { background: #3b82f6; border-color: #3b82f6; }

.play-section-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 10px; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold); color: #000; border: none; border-radius: 8px;
  padding: 12px 24px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; }
.btn-secondary {
  background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 20px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: var(--gold); }

/* ── RESULT DISPLAY ── */
.result-area {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px; margin-top: 20px; display: none;
}
.result-area.show { display: block; }
.result-balls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.ball {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: #fff;
}
.ball-white { background: radial-gradient(circle at 35% 35%, #555, #222); border: 2px solid #666; }
.ball-red   { background: radial-gradient(circle at 35% 35%, #ef4444, #b91c1c); border: 2px solid #f87171; }
.ball-sep { color: var(--muted); font-size: 1.4rem; font-weight: 300; }
.result-prize { font-size: 1.2rem; font-weight: 700; padding: 10px 18px; border-radius: 8px; display: inline-block; }
.prize-jackpot { background: rgba(245,197,24,0.15); color: var(--gold); }
.prize-mid     { background: rgba(96,165,250,0.15); color: var(--blue); }
.prize-small   { background: rgba(74,222,128,0.15); color: var(--green); }
.prize-none    { background: rgba(136,136,153,0.15); color: var(--muted); }

/* ── FREQUENCY / HISTORY / STATS TABLES ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 10px 12px; border-bottom: 1px solid rgba(46,46,62,0.6); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

.freq-bar-wrap { background: var(--border); border-radius: 4px; height: 8px; width: 100%; overflow: hidden; }
.freq-bar { height: 100%; border-radius: 4px; background: var(--accent); transition: width 0.4s; }
.freq-bar.cold { background: var(--blue); }

.badge-hot  { background: rgba(239,68,68,0.15);  color: var(--red);    font-size: 0.72rem; padding: 2px 8px; border-radius: 10px; }
.badge-cold { background: rgba(96,165,250,0.15);  color: var(--blue);   font-size: 0.72rem; padding: 2px 8px; border-radius: 10px; }
.badge-warm { background: rgba(245,197,24,0.12);  color: var(--gold);   font-size: 0.72rem; padding: 2px 8px; border-radius: 10px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.stat-card {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 18px;
}
.stat-card .stat-val { font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.stat-card .stat-lbl { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

.section-head { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.subsection { margin-bottom: 28px; }

/* ── DRAW INFO ── */
.draw-info { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.draw-chip {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 14px; font-size: 0.825rem;
}
.draw-chip strong { color: var(--text); }
.draw-chip span { color: var(--muted); }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 20px 24px; text-align: center; color: var(--muted); font-size: 0.8rem; line-height: 1.7; }
footer a { color: var(--gold); text-decoration: none; }

@media (max-width: 600px) {
  .game-hero { flex-direction: column; }
  .jackpot-display { margin-left: 0; text-align: left; }
  .num-btn { width: 38px; height: 38px; font-size: 0.82rem; }
}
