@import url("../homepage/homepage.css");

.tournament-main {
  width: 100%;
  padding: 40px 16px 80px;
}

.tournament-slider {
  margin: 0 auto;
}

.upcoming-tournaments {
  width: 100%;
  max-width: 1200px;
  margin: 80px auto 0;
}

.tournament-section-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  gap: 10px;
  width: 100%;
}

.tournament-section-header h1,
.tournament-section-header h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 900;
  line-height: 48px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tournament-pagination {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 2px;
  border-radius: 8px;
  background: #242424;
}

.tournament-pagination button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.tournament-pagination button:disabled {
  color: #525252;
  cursor: default;
}

.tournament-pagination button:not(:disabled):hover {
  background: #2e2e2e;
}

.tournament-pagination-divider {
  width: 1px;
  height: 20px;
  background: #404040;
}

.tournament-pagination-status {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 54px;
  height: 36px;
  gap: 4px;
  color: #a3a3a3;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.tournament-pagination-status strong {
  color: #ffffff;
  font-weight: 600;
}

.tournament-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin-top: 20px;
  column-gap: 12px;
  row-gap: 40px;
}

.tournament-card-grid .competition-card {
  width: 100%;
  min-width: 0;
  height: auto;
  align-self: start;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.tournament-card-grid .competition-card:hover {
  border-color: #525252;
}

.tournament-card-grid .competition-card:focus-visible {
  outline: 2px solid #fba924;
  outline-offset: 2px;
}

.tournament-more-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: 40px;
  padding: 14px 12px;
  gap: 10px;
  border: 1px solid #2e2e2e;
  border-radius: 8px;
  background: #171717;
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.tournament-more-button:disabled {
  cursor: default;
}

.tournament-more-button:not(:disabled):hover {
  border-color: #404040;
  background: #242424;
}

.tournament-more-button:focus-visible,
.tournament-pagination button:focus-visible,
.competition-action-button:focus-visible {
  outline: 2px solid #fba924;
  outline-offset: 2px;
}

@media (max-width: 1279px) {
  .tournament-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .tournament-card-grid .competition-card,
  .tournament-more-button {
    transition: none;
  }
}

.tournament-card-grid .competition-status {
  width: auto;
}

.tournament-card-grid .competition-card-footer {
  background: #171717;
}

.tournament-card-grid .registration-deadline--closed {
  justify-content: center;
}

.tournament-card-grid .competition-action-button--closed {
  background: #242424;
  color: #fff;
}
