/* Algemene opmaak */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Ubuntu', sans-serif;
    background-color: #98caec;
    font-size: 32px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
}

h1 {
    text-align: center;
    font-size: 80px;
    padding: 60px 40px 0 40px;
    margin: 0;
    color: #382510;
    font-family: "profile-pro", sans-serif;
    font-weight: 500;
    font-style: normal;
}

h2 {
    text-align: center;
    font-size: 44px;
    padding: 0 40px 20px 40px;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    font-family: "profile-pro", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px 40px;
    justify-content: center;
    padding: 0 15px;
    box-sizing: border-box;
}

.grid--1 {
    grid-template-columns: 1fr;
    justify-items: center;
}

.grid--2,
.grid--3,
.grid--4 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--5,
.grid--6 {
    grid-template-columns: repeat(3, 1fr);
}

.veld {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
}

.position {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 2400px;
}

.position h2 {
    margin: 0;
    padding: 12px;
    background-color: #382510;
    color: white;
    text-align: center;
    font-size: 28px;
}

.veld h2 {
    margin: 0;
    padding: 12px;
    background-color: #382510;
    color: white;
    text-align: center;
    font-size: 28px;
}

.wedstrijden-tabel {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.wedstrijden-tabel td {
    padding: 10px;
    vertical-align: middle;
    font-size: 28px;
    text-align: center;
}

.wedstrijden-tabel td.team-logo {
    width: 15%;
}

.wedstrijden-tabel td.center-info {
    width: 15%;
}

.wedstrijden-tabel td.team-name {
    padding: 0 10px;
}

.wedstrijden-tabel td.team-name .team-name-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100%;
    width: 100%;
    white-space: normal;
}

.left-align {
    justify-content: flex-start;
    text-align: left;
}

.right-align {
    justify-content: flex-end;
    text-align: right;
}

.team-logo img {
    width: 60px;
    object-fit: contain;
}

.center-info .time-or-result {
    font-size: 28px;
    font-weight: bold;
    border: 1px solid #aaa;
    border-radius: 6px;
    padding: 4px 8px;
    display: inline-block;
    background-color: white;
    width: 90px;
    box-sizing: border-box;
}

.center-info .time-or-result.result {
    color: white;
    background-color: #382510;
    border: 1px solid #382510;
}

.center-info .cancelled-badge {
    font-size: 18px;
    font-weight: bold;
    border: 1px solid #d32f2f;
    border-radius: 6px;
    padding: 8px 8px;
    display: inline-block;
    background-color: #d32f2f;
    color: white;
    width: 90px;
    box-sizing: border-box;
}

.center-info .league {
    font-size: 24px;
    color: #666;
    padding-top: 5px;
}

.wedstrijden-tabel .match-row {
    height: 100px;
}

.center-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 4px;
    text-align: center;
}

/* Aangepaste logo-container die altijd onderaan staat */
.logo-container {
    text-align: center;
    padding: 10px;
}

.logo-container img {
    width: 100px;
    height: auto;
}

.logo-caption {
    color: white;
    font-size: 20px;
    margin-top: 8px;
    text-transform: lowercase;
    font-family: "profile-pro", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-top: 10px;
}
.standings-table td {
  padding: 10px;
  vertical-align: middle;
  text-align: center;
}
.standings-table td.team-shortname {
  font-size: 66px;
  font-weight: bold;
  padding-bottom: 0;
  color: #382510;
}
.standings-table td.team-details {
  font-size: 28px;
}
.standings-table td.team-details .category-group {
  display: block;
  font-size: 24px;
  color: #666;
  margin-top: 0;
}
.standings-table .stat-value {
  font-size: 32px;
  font-weight: bold;
}
.standings-table .stat-label {
  font-size: 20px;
  color: #565656;
  margin-top: 4px;
}

.veld--standings {
  width: 100%;
}

.standings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 40px 40px;
  padding: 20px;
  box-sizing: border-box;
  /* max-width: calc((5 * 440px) + (4 * 20px) + 60px); */
  margin: 0 auto;
}

/* Flashing red dot animation */
@keyframes flash-dot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Add this class to trigger pulse on live scores */
.time-or-result.result.live-score {
  position: relative;
  z-index: 1;
}

/* LIVE text for live matches - right side */
.time-or-result.result.live-score::before {
  content: 'LIVE';
  position: absolute;
  top: 50%;
  right: -42px;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 13px;
  font-weight: bold;
  color: #382510;
  animation: flash-dot 1s infinite;
  letter-spacing: 1px;
}

/* LIVE text for live matches - left side */
.time-or-result.result.live-score::after {
  content: 'LIVE';
  position: absolute;
  top: 50%;
  left: -42px;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 13px;
  font-weight: bold;
  color: #382510;
  animation: flash-dot 1s infinite;
  letter-spacing: 1px;
}