/* =====================================
   VIVID SPORTS POOL THEME (NBA / NFL)
   ===================================== */

/* ---------- COLOR SYSTEM ---------- */
:root{
  /* Core brand colors */
  --brand:#2563eb;        /* NBA blue */
  --brand2:#dc2626;       /* NFL red */
  --accent:#facc15;       /* scoreboard yellow */
  --success:#16a34a;      /* win green */

  /* Neutrals */
  --bg:#f8fafc;           /* bright background */
  --surface:#ffffff;      /* cards */
  --surface-alt:#eef2ff;  /* soft panels */

  --text:#0f172a;
  --muted:#475569;

  --border:rgba(15,23,42,.12);
  --radius:14px;
}

/* ---------- BASE RESET ---------- */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html,body{
  height:100%;
}

body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1000px circle at 12% 8%, rgba(37,99,235,.18), transparent 55%),
    radial-gradient(900px circle at 92% 22%, rgba(220,38,38,.15), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 45%, #f8fafc 100%);
}

/* ---------- TYPOGRAPHY ---------- */
h1,h2,h3,h4,h5{
  font-weight:900;
  letter-spacing:.02em;
  margin:0 0 .5rem;
}

.text-muted{
  color:var(--muted);
}

/* ---------- LINKS ---------- */
a{
  color:var(--brand);
  text-decoration:none;
  font-weight:600;
}

a:hover{
  color:var(--brand2);
}

/* ---------- BRAND / LOGO ---------- */
.brand-dot{
  width:40px;
  height:40px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#fff;
  font-weight:900;
  box-shadow:0 10px 25px rgba(37,99,235,.35);
}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.75rem 1.4rem;
  border-radius:12px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
  border:none;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
}

.btn-brand{
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#fff;
  box-shadow:0 12px 30px rgba(37,99,235,.35);
}

.btn-brand:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 45px rgba(37,99,235,.5);
}

.btn-outline{
  background:#fff;
  border:2px solid var(--brand);
  color:var(--brand);
}

.btn-outline:hover{
  background:var(--brand);
  color:#fff;
}

/* ---------- AUTH LAYOUT ---------- */
.auth-layout{
  min-height:calc(100vh - 64px);
  display:grid;
  place-items:center;
  padding:1.5rem;
}

/* ---------- CARDS / PANELS ---------- */
.card,
.panel,
.surface{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.25rem;
  box-shadow:
    0 8px 25px rgba(15,23,42,.08);
}

.card-header{
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--brand);
  margin-bottom:.75rem;
}

/* ---------- PICK TILE (GAMES) ---------- */
.pick-tile{
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  border:2px solid var(--border);
  border-radius:12px;
  padding:1rem;
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
  transition:border-color .15s ease, transform .15s ease;
}

.pick-tile:hover{
  border-color:var(--brand);
  transform:translateY(-2px);
}

.pick-team{
  font-weight:900;
  font-size:1rem;
}

.pick-odds{
  font-weight:700;
  color:var(--muted);
}

/* ---------- SCORES ---------- */
.score-win{
  color:var(--success);
  font-weight:900;
}

.score-loss{
  color:var(--brand2);
  font-weight:900;
}

.score-live{
  color:var(--accent);
  font-weight:900;
}

/* ---------- LEADERBOARD ---------- */
.leaderboard-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:.75rem;
  border-bottom:1px solid var(--border);
}

.leaderboard-row:nth-child(odd){
  background:var(--surface-alt);
}

.rank{
  font-weight:900;
  color:var(--brand2);
}

/* ---------- TABLES ---------- */
.table{
  width:100%;
  border-collapse:collapse;
}

.table th{
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  text-align:left;
  color:var(--muted);
  padding:.75rem;
}

.table td{
  padding:.75rem;
  border-top:1px solid var(--border);
}

/* ---------- OFFCANVAS / MOBILE ---------- */
.offcanvas{
  height:100vh !important;
  background:#ffffff;
}

.offcanvas-header{
  border-bottom:1px solid var(--border);
}

.offcanvas-body{
  overflow-y:auto;
}

@media (max-width: 991.98px){
  .offcanvas-start{
    width:100vw;
  }
}

/* ---------- FOOTER ---------- */
.footer{
  text-align:center;
  padding:1.5rem;
  font-size:.85rem;
  color:var(--muted);
}

/* ===============================
   PROGRAM GRID STABILITY
   =============================== */

/* Ensure equal-height columns */
.row > [class*="col"] {
  display: flex;
}

/* Program card base */
.program-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;               /* important for flex columns */
  min-height: 220px;          /* mobile */
  max-height: 220px;
  transition: transform .15s ease, box-shadow .15s ease;
}

/* Responsive fixed heights */
@media (min-width: 576px) {
  .program-card {
    min-height: 240px;
    max-height: 240px;
  }
}

@media (min-width: 768px) {
  .program-card {
    min-height: 260px;
    max-height: 260px;
  }
}

/* Hover polish */
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0,0,0,.12);
}

/* Icon always fixed */
.program-icon {
  flex-shrink: 0;
}

/* ===============================
   PROGRAM LIST VIEW
   =============================== */

.program-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Each program row */
.program-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.program-row:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 10px 28px rgba(15,23,42,.12);
}

/* Left */
.program-left {
  flex-shrink: 0;
}

.program-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  font-size: 1.25rem;
}

/* Center */
.program-center {
  flex: 1;
  min-width: 0;
}

.program-name {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.3;
}

.program-path {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right */
.program-right {
  flex-shrink: 0;
}

.program-action {
  font-weight: 700;
  color: var(--brand);
}

/* ===============================
   RESPONSIVE BEHAVIOR
   =============================== */

/* Mobile */
@media (max-width: 575px) {
  .program-row {
    padding: 14px;
  }

  .program-action {
    display: none;
  }
}

/* Optional: 2-column list on very large screens */
@media (min-width: 1400px) {
  .program-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}