/* ============================
   Wallet Hub Toggle Buttons
   ============================ */
.wallet-toggle {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  justify-content: center;
}

.wallet-tab-btn {
  flex: 1 1 auto;
  max-width: 240px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  background: #f7f7f7;
  color: #333;
  transition: all 0.25s ease;
}

/* Hover state for inactive buttons */
.wallet-tab-btn:hover {
  background: #ffe9cc;
  border-color: #ffb84d;
  color: #000;
}

/* Active tab styles */
.wallet-tab-btn.active {
  background: #ff6600; /* bold accent */
  color: #fff;
  border-color: #e25700;
  box-shadow: inset 0 3px 6px rgba(0,0,0,.2), 0 2px 6px rgba(0,0,0,.15);
  transform: translateY(1px);
}

/* Accessibility focus */
.wallet-tab-btn:focus {
  outline: 2px solid #ff9933;
  outline-offset: 2px;
}

/* Stack buttons on mobile */
@media (max-width: 520px) {
  .wallet-toggle {
    flex-direction: column;
    align-items: center;
  }
  .wallet-tab-btn {
    width: 100%;
    max-width: none;
  }
}

/* ============================
   Pick'em Receipts — Compact & Responsive
   ============================ */

/* Grid container: horizontal scroll */
.pw-pickem-grid {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.pw-pickem-grid::-webkit-scrollbar { height: 8px; }
.pw-pickem-grid::-webkit-scrollbar-thumb { background:#ccc; border-radius: 4px; }
.pw-pickem-grid::-webkit-scrollbar-track { background:#f3f3f3; }

/* Individual matchup card */
.pw-pickem-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

/* Matchup codes (e.g. SF vs LAR) */
.pw-pickem-codes {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  text-align: center;
}

/* Logos row */
.pw-pickem-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

/* Team block */
.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px;
  border-radius: 8px;
  transition: all .2s ease;
}

/* Base picked style */
.team.picked {
  outline: 2px solid #ccc;
  outline-offset: 4px;
  background-color: #f5f5f5;
  padding: 6px;
}

/* Correct pick: green glow */
.team.picked.correct-pick {
  box-shadow: 0 0 8px rgba(0,128,0,0.5);
}

/* Incorrect pick: red glow */
.team.picked.incorrect-pick {
  box-shadow: 0 0 8px rgba(226,0,0,0.5);
}

/* Team logo */
.team img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #eee;
  background: #fff;
}

/* Team code label */
.code {
  font-weight: 800;
  font-size: 12px;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

/* VS separator */
.vs {
  font-weight: 700;
  opacity: 0.7;
  user-select: none;
  font-size: 13px;
  margin: 0 6px;
}

/* Status and score */
.pw-pickem-status,
.pw-pickem-score {
  font-size: 13px;
  margin-bottom: 6px;
  text-align: center;
}

/* Status badge styles */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}
.status-badge.pending {
  background: #ffeeba;
  color: #856404;
}
.status-badge.correct {
  background: #d4edda;
  color: #155724;
}
.status-badge.incorrect {
  background: #f8d7da;
  color: #721c24;
}

/* Tiebreaker progress bar */
.tiebreaker-bar {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  margin-top: 8px;
}
.tiebreaker-bar .fill {
  height: 100%;
  background: #e20000;
  border-radius: 4px;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .pw-pickem-card {
    flex: 0 0 200px;
    padding: 8px;
  }
  .team img { width: 32px; height: 32px; }
  .code { font-size: 11px; }
  .pw-pickem-status,
  .pw-pickem-score { font-size: 12px; }
}

/* ============================
   Filters (League + Week)
   ============================ */
.pw-filters {
  display: flex;
  align-items: center;
  margin: 8px 0 14px;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.pw-filter {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}
.pw-filter span {
  opacity: .75;
  margin-bottom: 6px;
}
.pw-filter select {
  min-width: 140px;
  padding: 8px 10px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
}
@media (max-width: 520px) {
  .pw-filter select { min-width: 120px; }
}
/* ============================
   Pick'em Receipts Loading Spinner
   ============================ */
#pw-receipts-container.loading {
  position: relative;
  min-height: 80px; /* ensures area doesn’t collapse while loading */
}

#pw-receipts-container.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 3px solid #ddd;
  border-top-color: #ff6600; /* PaperWagers accent */
  border-radius: 50%;
  animation: pw-spin 0.8s linear infinite;
}

@keyframes pw-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.pw-receipt { display:flex; flex-direction:column; gap:12px; }
.pw-game-card { border:1px solid #eee; border-radius:10px; padding:12px 14px; }
.pw-matchup { font-weight:600; margin-bottom:4px; }
.pw-meta { font-size:12px; color:#666; margin-bottom:6px; }
.pw-pick { font-size:14px; }
.pw-tiebreaker { margin-top:10px; padding-top:8px; border-top:1px dashed #ddd; font-size:14px; }
