/*
Theme Name: 49s Result
Theme URI: https://49sresult.org.za/
Author: 49sResult
Description: Custom lightweight theme for 49sresult.org.za — UK49s Lunchtime & Teatime results with hero result card, countdown, hot/cold stats and FAQ.
Version: 1.1
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: foursniner
*/

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; background:#eef1f5; color:#1c2733; line-height:1.6; }
a { color:#0e5386; }

/* ---------- header ---------- */
.topbar { background:#0a3d62; color:#fff; position:sticky; top:0; z-index:50; box-shadow:0 2px 8px rgba(0,0,0,.18); }
.topbar-inner { max-width:1120px; margin:0 auto; padding:0 20px; height:64px; display:flex; align-items:center; justify-content:space-between; }
.logo { display:flex; align-items:center; gap:10px; text-decoration:none; color:#fff; }
.logo-ball { width:40px; height:40px; border-radius:50%; background:radial-gradient(circle at 35% 30%, #ffe082, #ffc107 60%, #e0a800); color:#0a3d62; font-weight:800; display:flex; align-items:center; justify-content:center; font-size:16px; box-shadow:inset 0 -3px 6px rgba(0,0,0,.15); }
.logo-text { font-weight:800; font-size:18px; letter-spacing:.2px; line-height:1.15; }
.logo-text small { display:block; font-weight:500; font-size:11px; color:#bcd3ea; letter-spacing:1.5px; }
nav.mainnav ul { display:flex; gap:4px; list-style:none; }
nav.mainnav a { color:#dce8f5; text-decoration:none; font-size:14.5px; font-weight:500; padding:8px 13px; border-radius:8px; white-space:nowrap; display:block; }
nav.mainnav a:hover, nav.mainnav .current-menu-item a { background:rgba(255,255,255,.14); color:#fff; }
.hamburger { display:none; background:none; border:none; color:#fff; font-size:26px; cursor:pointer; }

/* ---------- layout ---------- */
.wrap { max-width:1120px; margin:0 auto; padding:26px 20px 60px; }
.page-title { text-align:center; margin:6px 0 20px; }
.page-title h1 { font-size:34px; font-weight:800; color:#0a3d62; letter-spacing:-.3px; }
.page-title p { color:#5b6b7c; font-size:15px; margin-top:4px; }
.card { background:#fff; border-radius:14px; box-shadow:0 2px 10px rgba(10,61,98,.08); padding:26px 28px; margin-bottom:22px; }
.card h2 { font-size:21px; font-weight:750; color:#0a3d62; margin-bottom:14px; display:flex; align-items:center; gap:10px; }
.card h2 .rule { flex:1; height:1px; background:#e3e9f0; }

/* ---------- hero ---------- */
.hero { display:flex; gap:26px; align-items:stretch; background:linear-gradient(135deg,#0a3d62 0%,#0e5386 100%); color:#fff; border-radius:16px; padding:30px 32px; margin-bottom:22px; box-shadow:0 8px 24px rgba(10,61,98,.25); }
.hero-main { flex:1.6; min-width:0; }
.pill-row { display:flex; align-items:center; gap:10px; margin-bottom:12px; flex-wrap:wrap; }
.tag { font-size:11.5px; font-weight:700; letter-spacing:1.2px; background:#ffc107; color:#0a3d62; padding:4px 12px; border-radius:999px; }
.hero-date { font-size:15px; color:#cfe0f2; font-weight:600; }
.balls { display:flex; gap:10px; margin:16px 0 14px; flex-wrap:wrap; align-items:center; }
.ball { width:58px; height:58px; border-radius:50%; background:radial-gradient(circle at 35% 30%, #ffe082, #ffc107 55%, #e6a700); color:#3a2c00; font-weight:800; font-size:21px; display:flex; align-items:center; justify-content:center; box-shadow:inset 0 -4px 8px rgba(0,0,0,.18), 0 3px 6px rgba(0,0,0,.25); }
.ball.bonus { background:radial-gradient(circle at 35% 30%, #86efac, #22c55e 55%, #15803d); color:#fff; }
.plus { font-size:24px; color:#9fc0dd; font-weight:700; }
.hero-meta { font-size:13.5px; color:#bcd3ea; display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.fresh { display:inline-flex; align-items:center; gap:6px; background:rgba(34,197,94,.18); color:#a7f3c9; border:1px solid rgba(34,197,94,.45); padding:3px 11px; border-radius:999px; font-size:12.5px; font-weight:600; }
.fresh .dot { width:8px; height:8px; border-radius:50%; background:#22c55e; }
.hero-side { flex:1; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); border-radius:12px; padding:20px 22px; display:flex; flex-direction:column; justify-content:center; min-width:230px; }
.hero-side .lbl { font-size:12px; letter-spacing:1.4px; color:#9fc0dd; font-weight:700; margin-bottom:6px; }
.countdown { font-size:32px; font-weight:800; letter-spacing:1px; font-variant-numeric:tabular-nums; }
.countdown small { font-size:13px; font-weight:600; color:#9fc0dd; letter-spacing:.5px; }
.hero-side .sub { font-size:13px; color:#bcd3ea; margin-top:6px; }
.hero-empty { background:#fff; border:1.5px dashed #c3cfdb; border-radius:14px; padding:34px; text-align:center; color:#5b6b7c; margin-bottom:22px; }
.hero-empty strong { color:#0a3d62; display:block; font-size:18px; margin-bottom:6px; }

/* ---------- history table ---------- */
table.results { width:100%; border-collapse:collapse; font-size:15px; }
table.results th { text-align:left; font-size:12px; letter-spacing:1px; color:#7a8a9c; font-weight:700; padding:8px 10px; border-bottom:2px solid #e3e9f0; }
table.results td { padding:9px 10px; border-bottom:1px solid #eef1f5; vertical-align:middle; }
table.results tr.today td { background:#fff8e1; }
table.results tr.today td:first-child { border-radius:8px 0 0 8px; font-weight:700; color:#0a3d62; }
table.results tr.today td:last-child { border-radius:0 8px 8px 0; }
.mini-balls { display:flex; gap:6px; flex-wrap:wrap; }
.mball { min-width:34px; height:34px; padding:0 6px; border-radius:999px; background:linear-gradient(180deg,#ffd54f,#ffc107); color:#3a2c00; font-weight:700; font-size:14px; display:inline-flex; align-items:center; justify-content:center; box-shadow:inset 0 -2px 4px rgba(0,0,0,.12); }
.mball.bonus { background:linear-gradient(180deg,#4ade80,#22c55e); color:#fff; }
.today-badge { font-size:11px; font-weight:700; background:#0a3d62; color:#fff; padding:2px 9px; border-radius:999px; margin-left:8px; vertical-align:middle; }
.draw-type { font-size:11px; font-weight:700; letter-spacing:.8px; color:#0e5386; background:#e3eefb; padding:2px 8px; border-radius:999px; margin-left:8px; vertical-align:middle; }

/* ---------- draw-type grid ---------- */
.draw-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.draw-card { border:1px solid #e3e9f0; border-radius:12px; padding:18px 20px; background:#fbfcfe; }
.draw-card-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.draw-card-head strong { color:#0a3d62; font-size:16px; }
.draw-time { font-size:12px; font-weight:700; letter-spacing:.6px; color:#0e5386; background:#e3eefb; padding:3px 10px; border-radius:999px; }
.draw-card-date { font-size:13px; color:#7a8a9c; margin-bottom:10px; }
.draw-card-empty { font-size:13.5px; color:#8a99ab; }
/* ---------- hot / cold ---------- */
.duo { display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-bottom:22px; }
.stat-card { background:#fff; border-radius:14px; box-shadow:0 2px 10px rgba(10,61,98,.08); padding:24px 26px; }
.stat-card h3 { font-size:17px; font-weight:750; margin-bottom:12px; display:flex; align-items:center; gap:8px; color:#0a3d62; }
.flame { width:26px; height:26px; border-radius:50%; background:#fee2e2; color:#dc2626; display:inline-flex; align-items:center; justify-content:center; font-weight:800; font-size:14px; }
.snow { width:26px; height:26px; border-radius:50%; background:#dbeafe; color:#2563eb; display:inline-flex; align-items:center; justify-content:center; font-weight:800; font-size:14px; }
.stat-card p { font-size:13.5px; color:#5b6b7c; margin-top:10px; }
.stat-card .win { font-weight:500; color:#8a99ab; font-size:13px; }
.mball.cold { background:linear-gradient(180deg,#bfdbfe,#93c5fd); }

/* ---------- payouts ---------- */
table.payouts { width:100%; border-collapse:collapse; font-size:15px; }
table.payouts th { background:#0a3d62; color:#fff; text-align:left; padding:10px 14px; font-size:13px; letter-spacing:.5px; }
table.payouts th:first-child { border-radius:10px 0 0 0; } table.payouts th:last-child { border-radius:0 10px 0 0; }
table.payouts td { padding:10px 14px; border-bottom:1px solid #eef1f5; }
table.payouts tr:nth-child(even) td { background:#f7f9fc; }

/* ---------- app banner ---------- */
.appbanner { display:flex; align-items:center; gap:22px; background:linear-gradient(120deg,#0a3d62,#134e7d); border-radius:16px; padding:28px 32px; color:#fff; margin-bottom:22px; }
.appbanner .icon { width:64px; height:64px; border-radius:18px; background:#fff; display:flex; align-items:center; justify-content:center; font-size:30px; color:#0a3d62; font-weight:800; flex:none; }
.appbanner h3 { font-size:20px; font-weight:750; }
.appbanner p { color:#bcd3ea; font-size:14px; margin-top:2px; }
.gplay { margin-left:auto; flex:none; background:#000; border:1px solid #5b6b7c; color:#fff; border-radius:10px; padding:9px 18px; text-align:center; text-decoration:none; line-height:1.25; }
.gplay small { display:block; font-size:10px; letter-spacing:1px; color:#c9d6e5; }
.gplay strong { font-size:17px; font-weight:600; }

/* ---------- faq ---------- */
details.faq { border:1px solid #e3e9f0; border-radius:10px; margin-bottom:10px; background:#fbfcfe; }
details.faq summary { cursor:pointer; padding:14px 18px; font-weight:650; font-size:15px; color:#0a3d62; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:12px; }
details.faq summary::-webkit-details-marker { display:none; }
details.faq summary::after { content:"+"; font-size:20px; color:#0e5386; font-weight:700; flex:none; }
details.faq[open] summary::after { content:"\2013"; }
details.faq .a { padding:0 18px 16px; font-size:14.5px; color:#415162; }

/* ---------- footer ---------- */
.site-footer { background:#0a3d62; color:#bcd3ea; margin-top:10px; }
.foot-inner { max-width:1120px; margin:0 auto; padding:36px 20px 26px; display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:26px; }
.site-footer h4 { color:#fff; font-size:14px; letter-spacing:1px; margin-bottom:12px; }
.site-footer a { color:#bcd3ea; text-decoration:none; font-size:14px; display:block; margin-bottom:8px; }
.site-footer a:hover { color:#ffc107; }
.site-footer p { font-size:13px; }
.site-footer ul { list-style:none; }
.copy { border-top:1px solid rgba(255,255,255,.12); text-align:center; padding:16px; font-size:12.5px; color:#8fb0cf; }

/* ---------- generic content ---------- */
.entry-card { background:#fff; border-radius:14px; box-shadow:0 2px 10px rgba(10,61,98,.08); padding:30px 32px; margin-bottom:22px; }
.entry-card h1 { color:#0a3d62; font-size:28px; margin-bottom:14px; }
.entry-card h2 { color:#0a3d62; font-size:21px; margin:22px 0 10px; }
.entry-card p { margin-bottom:12px; color:#33414f; }

/* ---------- responsive ---------- */
@media (max-width:860px) {
  nav.mainnav { display:none; position:absolute; top:64px; left:0; right:0; background:#0a3d62; padding:10px 20px 16px; box-shadow:0 8px 16px rgba(0,0,0,.2); }
  nav.mainnav.open { display:block; }
  nav.mainnav ul { flex-direction:column; }
  .hamburger { display:block; }
  .topbar-inner { position:relative; }
  .hero { flex-direction:column; padding:24px 22px; }
  .hero-side { min-width:0; }
  .page-title h1 { font-size:25px; }
  .ball { width:48px; height:48px; font-size:18px; }
  .duo { grid-template-columns:1fr; }
  .draw-grid { grid-template-columns:1fr; }
  .foot-inner { grid-template-columns:1fr 1fr; }
  .appbanner { flex-direction:column; text-align:center; }
  .gplay { margin-left:0; }
  .card { padding:20px; }
}
