/* odds4 SPA styles */

@font-face {
  font-family: 'CourierPrime';
  src: url('fonts/CourierPrime-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'CourierPrime';
  src: url('fonts/CourierPrime-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'CourierPrime';
  src: url('fonts/CourierPrime-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'CourierPrime';
  src: url('fonts/CourierPrime-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'CourierPrime', monospace;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #1a1a2e;
  background: #f8f9fa;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 1.5rem; margin: 0.5rem 0 0.25rem; }
.o4-site-subtitle { font-size: 0.85rem; color: #888; margin-bottom: 1rem; letter-spacing: 0.05em; }
h2 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; color: #333; }
h3 { font-size: 1.1rem; margin: 1rem 0 0.5rem; }

/* Breadcrumb */
.o4-breadcrumb { font-size: 0.875rem; color: #666; margin-bottom: 1rem; }
.o4-breadcrumb a { color: #0066cc; }
.o4-breadcrumb-sep { margin: 0 0.25rem; color: #999; }

/* Tables */
.o4-table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.o4-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.o4-table th {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: #495057;
  white-space: nowrap;
}
.o4-th-sort { cursor: pointer; user-select: none; }
.o4-th-sort:hover { color: #0066cc; }
.o4-table td { padding: 0.5rem; border-bottom: 1px solid #e9ecef; }
.o4-table tbody tr:hover { background: #e9ecef; }

/* Positive EV highlight */
.o4-positive { color: #198754; font-weight: 600; }

/* Loading & Error */
.o4-loading { text-align: center; padding: 3rem; color: #666; }
.o4-error { text-align: center; padding: 3rem; color: #dc3545; }

/* Market sections */
.o4-market { margin-bottom: 2rem; }
.o4-book-count { font-size: 0.875rem; color: #666; font-weight: normal; }
.o4-arbitrage { color: #198754; font-weight: 600; margin-top: 0.5rem; }

/* Game meta */
.o4-game-meta { color: #666; margin-bottom: 1rem; font-size: 0.875rem; }
.o4-game-count { color: #666; font-size: 0.875rem; }

/* Game cards (league page) */
.o4-game-card {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  background: #fff;
}
.o4-game-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.o4-game-card-header a { font-weight: 600; }
.o4-game-card-market { font-size: 0.8rem; color: #495057; margin: 0.5rem 0 0.25rem; font-weight: 600; }
.o4-game-card-table { margin-bottom: 0; }

/* Option detail (game page) */
.o4-option-detail {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: #fff;
}
.o4-option-positive {
  border-left: 3px solid #198754;
  background: #f0fdf4;
}
.o4-option-heading {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: #1a1a2e;
}
.o4-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.75rem 0 0.25rem;
}
.o4-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.o4-stats-grid-6 {
  grid-template-columns: repeat(6, 1fr);
}
.o4-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.o4-stat-value {
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.o4-stat-sub {
  font-size: 0.75rem;
  color: #666;
  font-variant-numeric: tabular-nums;
}
.o4-stat-label {
  font-size: 0.7rem;
  color: #999;
  text-transform: uppercase;
}
.o4-metrics-line {
  font-size: 0.8rem;
  color: #666;
  margin: 0.75rem 0 0.25rem;
  font-style: italic;
}
.o4-metrics-values {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Bookmaker odds table */
.o4-odds-cell { font-variant-numeric: tabular-nums; }
.o4-bk-option { padding: 0.35rem 0.5rem; }
.o4-bk-odds { display: block; font-size: 1.1rem; font-weight: 600; }
.o4-bk-metrics { display: block; font-size: 0.7rem; color: #666; white-space: nowrap; }
/* Warning banner */
.o4-warning {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 3px solid #ffa000;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  margin: 0.75rem 0;
  font-size: 0.85rem;
  color: #6d4c00;
}
.o4-info-table-note {
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
  margin: 0.25rem 0 0.5rem;
}

.o4-sharp { color: #0d6efd; font-weight: 600; }
.o4-timestamp { color: #666; font-size: 0.8rem; white-space: nowrap; }

/* Lists */
ul { list-style: none; padding-left: 0; }
li { padding: 0.25rem 0; }

/* Sport groups */
.o4-sport-group { margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 768px) {
  body { padding: 0.5rem; }
  h1 { font-size: 1.25rem; }
  .o4-table { font-size: 0.8rem; }
  .o4-table th, .o4-table td { padding: 0.35rem; }
  .o4-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .o4-stats-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .o4-metrics-values { flex-wrap: wrap; gap: 0.5rem; }
}
