/**
 * Game Brief Styles
 *
 * Pre-game brief card, loading skeleton, and featured player cards
 * shown in #gameBriefContainer before the game goes live.
 * Also covers the debug stats panel (dev/operator overlay).
 */

/* === Debug Stats Panel === */
.debug-stats {
  position: fixed;
  bottom: 90px;
  left: 10px;
  right: 10px;
  max-height: 200px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.9);
  color: var(--green);
  font-size: 0.65rem;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  z-index: 200;
  font-family: monospace;
  white-space: pre-wrap;
  word-break: break-all;
}

/* === API Status Panel === */
.api-status-panel {
  position: fixed;
  bottom: 90px;
  left: 10px;
  right: 10px;
  max-height: 70vh;
  overflow: auto;
  background: rgba(6, 10, 22, 0.96);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  z-index: 200;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
}

.api-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.api-status-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
}

.api-status-body {
  padding: 8px 0;
}

.api-status-loading {
  text-align: center;
  padding: 24px 12px;
  color: var(--text-dim);
}

.api-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.api-status-row:last-child {
  border-bottom: none;
}

.api-status-name {
  font-weight: 500;
  color: var(--text);
  min-width: 0;
  flex-shrink: 0;
}

.api-status-detail {
  color: var(--text-dim);
  font-size: 0.75rem;
  text-align: right;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.api-status-badge.working {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

.api-status-badge.error {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
}

.api-status-timestamp {
  text-align: center;
  padding: 6px 12px 10px;
  color: var(--text-dim);
  font-size: 0.65rem;
  opacity: 0.7;
}

/* === Game Brief Container === */
/* Sits between the summary bar and the bets list; renderBets() never touches it. */
#gameBriefContainer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px;
}

#gameBriefContainer:empty {
  /* Collapse completely when there is no brief content */
  padding: 0;
}

/* === Loading Skeleton === */
/* Shown in #betsContainer while the first play-by-play poll is in flight. */
.loading-skeleton {
  height: 88px;
  border-radius: var(--radius);
  background: linear-gradient(
    90deg,
    var(--surface)        25%,
    var(--surface-bright) 50%,
    var(--surface)        75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border: 1px solid var(--border);
}

/* === Game Brief Card === */
.game-brief-card {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(79, 195, 247, 0.06) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeSlideIn 0.35s ease forwards;
}

.game-brief-card .brief-narrative {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
}

.game-brief-card .odds-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(79, 195, 247, 0.2);
  width: fit-content;
}

.game-brief-card .injury-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.injury-chip {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange);
  background: var(--orange-glow);
  padding: 3px 9px;
  border-radius: 12px;
  border: 1px solid rgba(255, 152, 0, 0.2);
}

/* === Featured Player Card === */
.featured-player-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeSlideIn 0.35s ease forwards;
}

.featured-player-card .fp-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
}

.featured-player-card .fp-team {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.featured-player-card .fp-heat {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.featured-player-card .heat-hot  { color: var(--accent-hot); }
.featured-player-card .heat-cold { color: var(--accent-cold); }

.featured-player-card .fp-streak {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.featured-player-card .fp-prop {
  font-size: 0.75rem;
  color: var(--accent);
}
