/* CSS pro kalendářové zobrazení rezervací */

/* Úpravy pro hero sekci v kalendářovém zobrazení */
.hero-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, white, #e6f2ff);
  position: relative;
  overflow: hidden;
}

.hero-section .badge {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  width: fit-content;
}

.hero-section .welcome-badge {
  display: flex;
  flex-direction: column;
}

.hero-section .welcome-badge img {
  max-width: 170px;
}

.hero-section .hero-text h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-section .hero-text h1 .gradient-text {
  background: linear-gradient(135deg, #007bff, #0056b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-section .hero-text .lead {
  font-size: 1.25rem;
  color: #6c757d;
  line-height: 1.6;
}

.hero-section .hero-text .quick-info i {
  font-size: 1.2rem;
}

.hero-section .hero-text .quick-info span {
  color: #6c757d;
}

/* Stylování kalendáře */
.hero-section .hero-calendar .calendar-wrapper {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  background: white;
  min-height: 450px;
  transition: transform 0.3s ease;
  border-radius: 12px;
}

.hero-section .hero-calendar .calendar-wrapper:hover {
  transform: translateY(-5px);
}

/* Úpravy pro FullCalendar */
.fc-theme-standard .fc-header-toolbar {
  margin-bottom: 1.5em;
}

.fc-theme-standard .fc-toolbar-title {
  font-size: 1.5em;
  font-weight: 700;
}

.fc-theme-standard .fc-button-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.fc-theme-standard .fc-button-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.fc-theme-standard .fc-daygrid-day.fc-day-today {
  background-color: rgba(0, 123, 255, 0.1);
}

/* Označení dostupnosti v kalendáři */
.calendar-day-available {
  background-color: rgba(40, 167, 69, 0.15);
}

.calendar-day-fully-booked {
  background-color: rgba(220, 53, 69, 0.15);
}

/* Rezervační modal a rozvrh */
.schedule-container {
  position: relative;
}

.schedule-container.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8) url('../img/loading.gif') center center no-repeat;
  background-size: 50px;
  z-index: 10;
}

.schedule-grid {
  display: flex;
  width: 100%;
  overflow-x: auto;
}

.time-column {
  flex: 0 0 100px;
  border-right: 1px solid #e9ecef;
}

.time-header {
  padding: 10px;
  background-color: #f8f9fa;
  font-weight: bold;
  border-bottom: 1px solid #e9ecef;
  text-align: center;
}

.time-slots {
  display: flex;
  flex-direction: column;
}

.time-slot {
  height: 60px;
  padding: 10px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.courts-grid {
  display: flex;
  flex: 1;
}

.court {
  flex: 1;
  border-right: 1px solid #e9ecef;
  min-width: 120px;
}

.court:last-child {
  border-right: none;
}

.court-header {
  padding: 10px;
  background-color: #f8f9fa;
  font-weight: bold;
  border-bottom: 1px solid #e9ecef;
  text-align: center;
}

.court-slots {
  display: flex;
  flex-direction: column;
}

.slot {
  height: 60px;
  padding: 5px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slot:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

.slot.available {
  background-color: rgba(40, 167, 69, 0.1);
}

.slot.reserved, .slot.pending {
  background-color: rgba(220, 53, 69, 0.1);
  cursor: not-allowed;
}

.slot.break {
  background-color: rgba(255, 193, 7, 0.1);
  cursor: not-allowed;
}

.slot.organization, .slot.club {
  background-color: rgba(108, 117, 125, 0.1);
  cursor: not-allowed;
}

.slot.fixed {
  cursor: not-allowed;
}

/* Styly pro vlastní typy rezervací */
.slot.custom {
  cursor: not-allowed;
}

/* Styly pro legendu typů rezervací */
.reservation-legend {
  margin-top: 15px;
  padding: 10px;
  border-radius: 5px;
  background-color: #f8f9fa;
}

.reservation-legend-title {
  font-weight: bold;
  margin-bottom: 8px;
}

.reservation-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reservation-legend-item {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}

.reservation-legend-color {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  margin-right: 5px;
}

/* Responsivní úpravy */
@media (max-width: 992px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-section .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-section .hero-calendar .calendar-wrapper {
    margin-top: 2rem;
    min-height: 400px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-section .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-section .hero-calendar .calendar-wrapper {
    padding: 1rem;
    min-height: 350px;
  }
  
  .time-column {
    flex: 0 0 80px;
  }
  
  .time-slot, .slot {
    height: 50px;
    padding: 5px;
    font-size: 0.75rem;
  }
  
  .reservation-legend-items {
    flex-direction: column;
    gap: 5px;
  }
}

/* Styly pro rozbalovací seznam otevírací doby */
#weekScheduleToggle {
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

#weekScheduleToggle:hover {
  text-decoration: underline;
}

#weekScheduleContent {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  border-left: 2px solid rgba(0, 123, 255, 0.1);
  padding-left: 1rem;
  margin-left: 0.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

#weekScheduleContent.open {
  max-height: 250px !important;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  max-width: 250px;
}

#weekScheduleContent .d-flex:last-child {
  margin-bottom: 0 !important;
}

.toggle-icon {
  transition: transform 0.2s ease;
}

.toggle-icon.rotated {
  transform: rotate(180deg);
}