/* Date Navigation (Prima style) */
#date-nav-wrapper {
  margin: 20px 0;
}

#date-nav {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  text-align: center;
}

#dn-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.dn-left-arrow, .dn-right-arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-top: 2px solid #0073aa;
  border-right: 2px solid #0073aa;
}

.dn-left-arrow { transform: rotate(-135deg); }
.dn-right-arrow { transform: rotate(45deg); }

/* 5-day scroller */
#date-scroller {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.dn-date {
  background: #eee;
  color: #333;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
}

.dn-date.active {
  background: #0073aa;
  color: #fff;
}

/* Matches Board */
.matches-board {
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
}

.matches-board .header-row,
.matches-board .game {
  display: grid;
  grid-template-columns: 60px 40px 60px 200px 120px 160px 60px 60px 60px 80px;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid #ddd;
}

.matches-board .header-row {
  font-weight: bold;
  background: #f0f0f0;
}

.matches-board .col {
  text-align: center;
  font-size: 13px;
}

/* Flag scaling */
.flag {
  width: 20px;
  height: auto;
}

/* Prediction coloring */
.matches-board .win {
  color: #006400; /* green */
  font-weight: bold;
}

.matches-board .loss {
  color: #d32f2f; /* red */
  font-weight: bold;
}

/* Base Grid (Desktop) */
.matches-board .header-row,
.matches-board .game {
  display: grid;
  grid-template-columns: 60px 40px 60px 200px 120px 160px 60px 60px 60px 80px;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid #ddd;
}

.matches-board .header-row {
  font-weight: bold;
  background: #f0f0f0;
}

.matches-board .col {
  text-align: center;
  font-size: 13px;
}

/* Flag scaling */
.flag {
  width: 20px;
  height: auto;
}

/* Prediction coloring */
.matches-board .win {
  color: #006400; /* green */
  font-weight: bold;
}

.matches-board .loss {
  color: #d32f2f; /* red */
  font-weight: bold;
}

/* Tablet view (hide some columns, keep essentials) */
@media (max-width: 1024px) {
  .matches-board .header-row,
  .matches-board .game {
    grid-template-columns: 60px 200px 160px 60px 60px 80px;
  }

  /* Hide columns: C, L, Odds */
  .matches-board .header-row .col:nth-child(2),
  .matches-board .header-row .col:nth-child(3),
  .matches-board .header-row .col:nth-child(5),
  .matches-board .game .col:nth-child(2),
  .matches-board .game .col:nth-child(3),
  .matches-board .game .col:nth-child(5) {
    display: none;
  }
}

/* Mobile view (show only essentials) */
@media (max-width: 768px) {
  .matches-board .header-row,
  .matches-board .game {
    grid-template-columns: 60px 200px 160px 60px;
  }

  /* Hide everything except: Time, Teams, Prediction %, P1, P2, Results */
  .matches-board .header-row .col:nth-child(2),
  .matches-board .header-row .col:nth-child(3),
  .matches-board .header-row .col:nth-child(5),
  .matches-board .header-row .col:nth-child(8),
  .matches-board .header-row .col:nth-child(9),
  .matches-board .game .col:nth-child(2),
  .matches-board .game .col:nth-child(3),
  .matches-board .game .col:nth-child(5),
  .matches-board .game .col:nth-child(8),
  .matches-board .game .col:nth-child(9) {
    display: none;
  }
}

