.calendar-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}

.month-year {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  text-transform: capitalize;
  min-width: 200px;
  text-align: center;
}

.calendar-btn {
  background: var(--primarycolor);
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calendar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.calendar-btn:active {
  transform: translateY(0px);
}
.calendar-btn:disabled,
.calendar-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.past-day {
  opacity: 0.35;
  pointer-events: none;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid var(--bordercolor);
}

.day-header {
  text-align: center;
  font-weight: bold;
  color: var(--primarycolor);
  padding: 10px;
  font-size: 22px;
}

.day-cell {
  position: relative;
  background: var(--blackshade);
  border: 1px solid var(--elementshade);
  border-radius: 10px;
  padding: 10px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
}

.day-cell:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: var(--secondarycolor);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.day-cell.other-month {
  opacity: 0.4;
  cursor: default;
}

.day-cell.other-month:hover {
  background: var(--blackshade);
  transform: none;
  box-shadow: none;
}

.day-number {
  font-weight: bold;
  color: var(--textcolor);
  font-size: 16px;
  margin-bottom: 5px;
}
.day-cell:hover .day-number {
  color: #fff;
}

.day-cell.has-tournament {
  background: rgba(102, 126, 234, 0.1);
  border-color: var(--primarycolor);
}
.day-event {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
  color: var(--secondarycolor);
}

.tournament-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--primarycolor);
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.tournaments-list {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid var(--bordercolor);
}

.tournaments-list h3 {
  color: var(--primarycolor);
  margin-bottom: 20px;
  font-size: 20px;
}

.tournament-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  background: rgba(102, 126, 234, 0.1);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tournament-card:hover {
  background: rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tournament-info h4 {
  color: #fff;
  margin-top: 10px;
  font-size: 18px;
}

.tournament-info p {
  color: rgba(255, 255, 255, 0.8);
  margin: 8px 0;
  font-size: 14px;
}

.tournament-info strong {
  color: var(--primarycolor);
}
.tournaments-list {
  padding: 20px;
}

@media (max-width: 768px) {
  .calendar-grid {
    gap: 5px;
    padding: 10px;
  }

  .day-cell {
    min-height: 80px;
    padding: 8px;
  }

  .month-year {
    font-size: 20px;
  }

  .calendar-btn {
    padding: 10px 15px;
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  .calendar-container {
    max-width: 100%;
    margin: 20px 10px;
    padding: 10px;
  }

  .calendar-header {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
  }

  .month-year {
    font-size: 18px;
    min-width: 150px;
  }

  .calendar-btn {
    padding: 8px 12px;
    font-size: 14px;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 10px;
  }

  .day-header {
    font-size: 11px;
    padding: 5px;
  }

  .day-cell {
    padding: 5px;
    min-height: 60px;
    font-size: 11px;
  }

  .day-number {
    font-size: 12px;
  }

  .day-event {
    font-size: 8px;
  }

  .tournament-badge {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .tournaments-list {
    padding: 15px;
  }

  .tournaments-list h3 {
    font-size: 16px;
  }

  .tournament-card {
    padding: 15px;
  }

  .tournament-info h4 {
    font-size: 14px;
  }

  .tournament-info p {
    font-size: 12px;
  }
}
