
/* Reset and Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #f8f9fa;
  color: #212529;
  line-height: 1.6;
}

/* Link pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pill { display: inline-block; padding: 6px 10px; background: #eef2ff; color: #1e3a5f; border-radius: 16px; text-decoration: none; font-size: 14px; border: 1px solid #d0d7ff; }
.pill:hover { background: #e0e7ff; }

/* Enhanced Header */
.web-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
  color: white;
  margin: -20px -20px 32px -20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 20px;
}
.brand-section {
  flex: 1;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.brand-icon {
  font-size: 32px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.brand-text {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand-dot {
  color: #60a5fa;
}
.tagline {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 400;
  margin-left: 40px;
}
.header-badge {
  align-self: center;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.live-indicator {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

/* Enhanced Navigation */
.main-nav {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0;
  margin: 0 -32px;
  padding: 0 32px;
  overflow-x: auto;
}
.nav-item {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 12px 20px;
  transition: all 0.2s;
  opacity: 0.9;
  position: relative;
  white-space: nowrap;
}
.nav-item:hover {
  opacity: 1;
  background: rgba(255,255,255,0.05);
}
.nav-item.active {
  opacity: 1;
  background: rgba(255,255,255,0.1);
}
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background: #60a5fa;
  border-radius: 3px 3px 0 0;
}

/* Nav Description */
.nav-description {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  flex-wrap: wrap;
}
.nav-desc-item {
  font-size: 13px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Typography */
h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #2c3e50;
}
h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 24px 0 16px;
  color: #2c3e50;
}
h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 20px 0 12px;
  color: #34495e;
}
h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 16px 0 8px;
  color: #34495e;
}
p {
  margin-bottom: 16px;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin: 16px 0;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}
th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: #f8f9fa;
}
td b {
  color: #2b6cb0;
  font-weight: 600;
}

/* Buttons */
button {
  background: #2b6cb0;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}
button:hover {
  background: #2c5282;
}
button:disabled {
  background: #95a5a6;
  cursor: not-allowed;
}

/* Charts */
svg.chart {
  border: 1px solid #dee2e6;
  background: #fff;
  border-radius: 6px;
  margin: 16px 0;
}
text.small {
  font-size: 11px;
  fill: #495057;
}

/* Utility */
.container {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 24px;
}
.small {
  font-size: 13px;
  color: #6c757d;
  margin-top: 4px;
}

/* Team Page Styles */
.team-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
  color: white;
  padding: 32px;
  border-radius: 8px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.team-name {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -1px;
  color: white;
}
.team-conference {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 16px;
}
.recent-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}
.form-label {
  font-size: 14px;
  opacity: 0.8;
}
.form-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-block;
}
.form-win {
  background: #10b981;
}
.form-loss {
  background: #ef4444;
}

/* Team Dashboard Grid */
.team-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.stat-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-value {
  font-size: 36px;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 8px;
}
.stat-secondary {
  font-size: 13px;
  color: #94a3b8;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

/* Enhanced Team Tables */
.team-table {
  width: 100%;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.team-table tbody tr.win {
  background: rgba(16, 185, 129, 0.05);
}
.team-table tbody tr.loss {
  background: rgba(239, 68, 68, 0.05);
}
.team-table .high-prob {
  color: #10b981;
  font-weight: 600;
}
.team-table .medium-prob {
  color: #f59e0b;
  font-weight: 600;
}
.team-table .low-prob {
  color: #ef4444;
  font-weight: 600;
}
.team-table .result-win {
  color: #10b981;
  font-weight: 600;
}
.team-table .result-loss {
  color: #ef4444;
  font-weight: 600;
}

/* Footer */
footer {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid #e9ecef;
  text-align: center;
}
footer .footer-content p {
  margin: 4px 0;
  font-size: 13px;
  color: #6c757d;
}
footer .footer-note {
  font-size: 12px;
  color: #95a5a6;
}

/* Playoff Tables */
.playoff-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}
.playoff-table h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: #2c3e50;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 8px;
}
.playoff-table table {
  margin: 0;
}

/* Playoff Bracket */
.bracket-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.bracket-container .conference {
  background: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.conference h4 { margin-bottom: 10px; }
.round-title { font-size: 13px; color: #495057; margin: 8px 0 6px; font-weight: 600; }
.division {
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  margin-bottom: 16px;
}
.division-title {
  font-size: 12px;
  color: #6c757d;
  margin: 2px 0 6px;
  text-transform: uppercase;
}
.match {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.match .team {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}
.match .team b { color: #2b6cb0; }
.match .pct { color: #6c757d; margin-left: 10px; }
.note { font-size: 12px; color: #666; margin-top: 8px; }

@media (max-width: 720px) {
  .playoff-tables { grid-template-columns: 1fr; }
  .bracket-container { grid-template-columns: 1fr; }
}

/* Teams Grid */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.team-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s;
  text-align: center;
  border: 2px solid transparent;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border-color: #2b6cb0;
}
.team-card.top-contender {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
}
.team-card a {
  text-decoration: none;
  color: #1e3a5f;
}
.team-card .team-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1e3a5f;
}
.team-card .cup-odds {
  font-size: 18px;
  font-weight: 600;
  color: #2b6cb0;
  margin-bottom: 4px;
}
.team-card .odds-label {
  font-size: 12px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* In-Game Dashboard List */
ul li {
  background: white;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s;
}
ul li:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
ul li a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
ul li a:hover {
  color: #2b6cb0;
}

/* Articles */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.article-card {
  padding: 20px;
  border-radius: 8px;
  transition: all 0.2s;
  border-left: 4px solid transparent;
}
.article-card:hover {
  background: #f8f9fa;
  border-left-color: #2b6cb0;
}
.article-card h3 {
  margin: 0 0 8px 0;
}
.article-card h3 a {
  color: #2c3e50;
  text-decoration: none;
}
.article-card h3 a:hover {
  color: #2b6cb0;
}
.article-meta {
  color: #718096;
  font-size: 14px;
  margin: 0 0 12px 0;
}
.article-content {
  max-width: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  line-height: 1.7;
}
.article-content h1 {
  margin-bottom: 8px;
  font-size: 36px;
}
.article-content h2 {
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e9ecef;
  font-size: 28px;
}
.article-content h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 22px;
}
.article-content ul, .article-content ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
.article-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.article-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}
.article-content code {
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}
.article-content pre {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 16px 0;
}
.article-content pre code {
  background: none;
  padding: 0;
}
.article-content a {
  color: #2b6cb0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.article-content a:hover {
  border-bottom-color: #2b6cb0;
}
.article-content .related {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid #e9ecef;
}
.article-content .related h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 24px;
}
.article-content .related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.article-content .related li {
  padding: 0;
  border-bottom: none;
}
.article-content .related li a {
  display: block;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #2b6cb0;
  transition: all 0.2s;
  font-weight: 500;
  text-decoration: none;
}
.article-content .related li a:hover {
  background: #e9ecef;
  border-left-width: 6px;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Games Calendar */
.calendar-month {
  margin-bottom: 48px;
}
.calendar-month h2 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 28px;
  color: #1e3a5f;
}
.calendar-grid {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.calendar-grid th {
  background: #f8f9fa;
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  color: #495057;
  font-size: 14px;
  border-bottom: 2px solid #dee2e6;
}
.calendar-day {
  border: 1px solid #e9ecef;
  padding: 8px;
  vertical-align: top;
  min-height: 120px;
  background: white;
  position: relative;
}
.calendar-day.empty {
  background: #f8f9fa;
}
.calendar-day .day-number {
  font-size: 14px;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 8px;
}
.calendar-day.has-games {
  background: #fefefe;
}
.day-games {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.game-card {
  display: block;
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
  color: #2c3e50;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.game-card.upcoming {
  background: #e3f2fd;
  border-color: #90caf9;
}
.game-card.completed {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.game-card.upset {
  background: #fef3c7;
  border-color: #fbbf24;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
}
.game-card:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.game-matchup-sm {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 11px;
}
.game-prob {
  font-size: 10px;
  color: #2b6cb0;
  margin-bottom: 4px;
}
.mini-sparkline {
  display: block;
  margin-top: 4px;
}

/* Calendar Legend */
.legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #495057;
}
.legend-square {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid;
}
.legend-square.upcoming {
  background: #e3f2fd;
  border-color: #90caf9;
}
.legend-square.completed {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.legend-square.upset {
  background: #fef3c7;
  border-color: #fbbf24;
}

/* Game Detail Page */
.game-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
  color: white;
  padding: 32px;
  border-radius: 8px;
  margin-bottom: 32px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.game-date {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 12px;
}
.game-matchup {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}
.upset-badge {
  display: inline-block;
  background: #fbbf24;
  color: #78350f;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}

/* Predictions Grid */
.predictions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.pred-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #2b6cb0;
}
.pred-label {
  font-size: 14px;
  color: #6c757d;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pred-value {
  font-size: 18px;
  margin-bottom: 6px;
  color: #2c3e50;
}
.pred-value b {
  color: #2b6cb0;
  font-size: 20px;
}
.pred-value-sm {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 4px;
}

/* In-Game Chart */
.ingame-chart {
  margin: 20px 0;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}
.chart-title {
  font-size: 18px;
  font-weight: 600;
  fill: #2c3e50;
}
.chart-label {
  font-size: 12px;
  fill: #6c757d;
}
.goals-table {
  margin-top: 20px;
  font-size: 14px;
}

/* Post-Game Grid */
.postgame-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.postgame-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  transition: all 0.2s;
}
.postgame-card:hover {
  border-color: #2b6cb0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.postgame-label {
  font-size: 12px;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.postgame-value {
  font-size: 24px;
  font-weight: 700;
  color: #2b6cb0;
  margin-bottom: 8px;
}
.postgame-detail {
  font-size: 14px;
  color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
  body { padding: 12px; }
  .site-header {
    margin: -12px -12px 24px -12px;
  }
  .header-container {
    padding: 16px 20px;
  }
  .header-top {
    flex-direction: column;
    gap: 12px;
  }
  .brand-icon { font-size: 24px; }
  .brand-text { font-size: 20px; }
  .tagline {
    margin-left: 0;
    margin-top: 4px;
  }
  .main-nav {
    margin: 0 -20px;
    padding: 0 20px;
  }
  .nav-item {
    padding: 10px 12px;
    font-size: 14px;
  }
  .nav-description {
    display: none;
  }
  .team-name { font-size: 32px; }
  .team-dashboard {
    grid-template-columns: 1fr;
  }
  .stat-value { font-size: 28px; }
  .teams-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  .team-card {
    padding: 16px;
  }
  .team-card .team-name {
    font-size: 20px;
  }
  .team-card .cup-odds {
    font-size: 16px;
  }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  table { font-size: 14px; }
  th, td { padding: 8px 10px; }
  .article-content h1 { font-size: 28px; }
  .article-content h2 { font-size: 22px; }
  .article-content h3 { font-size: 18px; }
  .article-content .related ul {
    grid-template-columns: 1fr;
  }
  .article-content .related li a {
    padding: 16px;
  }
  .calendar-day {
    min-height: 80px;
    padding: 4px;
  }
  .calendar-day .day-number {
    font-size: 12px;
  }
  .game-card {
    padding: 6px;
    font-size: 10px;
  }
  .game-matchup-sm {
    font-size: 10px;
  }
  .game-prob {
    font-size: 9px;
  }
  .mini-sparkline {
    width: 60px;
    height: 15px;
  }
  .game-hero {
    padding: 20px;
  }
  .game-matchup {
    font-size: 24px;
  }
  .predictions-grid {
    grid-template-columns: 1fr;
  }
  .postgame-grid {
    grid-template-columns: 1fr;
  }
  .legend {
    gap: 12px;
  }
}
    