/* Tour Dates Section Styling */
#tour-dates {
  background-color: rgba(0, 0, 0, 0.9);
  overflow-x: hidden; /* Prevent horizontal overflow */
}

#tour-dates .content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px;
  overflow-x: hidden; /* Prevent horizontal overflow */
}

#tour-dates h1 {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 5px;
  margin-bottom: 50px;
  text-align: center;
}

.tour-dates-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 15px; /* افزایش فاصله بین ردیف‌ها */
  color: #fff;
  margin-bottom: 30px;
}

.tour-dates-table th {
  text-align: left;
  padding: 15px 25px; /* افزایش فاصله داخلی */
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  font-weight: 400;
  letter-spacing: 2px;
  font-size: 14px;
  text-transform: uppercase;
}

.tour-dates-table td {
  padding: 25px; /* افزایش فاصله داخلی */
  background-color: rgba(255, 255, 255, 0.05);
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.tour-dates-table tr td:first-child {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.tour-dates-table tr td:last-child {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.tour-dates-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.1);
}

.ticket-link {
  display: inline-block;
  padding: 10px 20px; /* افزایش فاصله داخلی دکمه */
  background-color: var(--gold, #f2a900);
  color: #000;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.ticket-link:hover {
  background-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sold-out {
  display: inline-block;
  padding: 10px 20px; /* افزایش فاصله داخلی */
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  letter-spacing: 1px;
  border-radius: 3px;
}

.no-dates {
  text-align: center;
  padding: 30px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.loading-indicator {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.7);
}

/* Tour date cards for mobile view */
.tour-date-cards {
  display: none; /* پنهان در حالت دسکتاپ */
  width: 100%;
}

.tour-date-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 15px;
  width: 100%;
  box-sizing: border-box;
}

.tour-date-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.tour-date-card-date {
  font-size: 18px;
  font-weight: 500;
  color: var(--gold, #f2a900);
}

.tour-date-card-event {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 500;
}

.tour-date-card-venue,
.tour-date-card-location {
  font-size: 14px;
  margin-bottom: 5px;
  opacity: 0.8;
}

.tour-date-card-actions {
  margin-top: 15px;
  text-align: center;
}

/* Responsive styles */
@media (max-width: 768px) {
  #tour-dates {
    overflow-x: hidden;
  }

  #tour-dates .content {
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    height: auto !important;
    min-height: 100vh;
  }

  #tour-dates .content-wrapper {
    padding: 80px 15px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  #tour-dates h1 {
    font-size: 24px;
    margin-bottom: 30px;
  }

  /* Hide table and show cards on mobile */
  .tour-dates-table {
    display: none !important; /* Force hide table on mobile */
  }

  .tour-date-cards {
    display: block !important; /* Force show cards on mobile */
    width: 100%; /* Ensure full width */
  }

  /* Ensure the container doesn't overflow */
  #tour-dates-container {
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  #tour-dates .content-wrapper {
    padding: 60px 10px;
  }

  .tour-date-card {
    padding: 15px;
  }

  .tour-date-card-date {
    font-size: 16px;
  }
}
