/* ===================================================================
   CALENDAR COMPONENT STYLES
   In The House Productions - Interactive Calendar
   ================================================================== */

.calendar-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 100%);
  border: 3px solid var(--chrome-silver);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(227, 30, 36, 0.3);
  gap: 1rem;
  flex-wrap: wrap;
}

.calendar-month-year {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--chrome-silver);
  flex: 1 1 100%;
  text-align: center;
}

.calendar-nav-buttons {
  display: flex;
  gap: 1rem;
}

.calendar-nav-btn {
  background: linear-gradient(180deg, #E31E24 0%, #8B0000 100%);
  border: 2px solid var(--chrome-silver);
  color: white;
  padding: 0.75rem 1.5rem;
  font-weight: 800;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-shadow: 
    1px 1px 0px rgba(0, 0, 0, 0.5),
    2px 2px 2px rgba(0, 0, 0, 0.4);
  box-shadow: 
    0 5px 0 #660000,
    0 8px 15px rgba(0, 0, 0, 0.5);
}

.calendar-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 7px 0 #660000,
    0 10px 20px rgba(0, 0, 0, 0.6);
}

.calendar-nav-btn:active {
  transform: translateY(3px);
  box-shadow: 
    0 2px 0 #660000,
    0 3px 8px rgba(0, 0, 0, 0.5);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  background: #0a0a0a;
  padding: 1rem;
  border: 3px solid var(--chrome-silver);
  border-radius: 12px;
  box-shadow: 
    inset 0 0 20px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(227, 30, 36, 0.2);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.calendar-day-header {
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 1rem;
  color: var(--chrome-silver);
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: #1a1a1a;
  font-weight: 700;
  font-size: 1rem;
  min-height: 60px;
  width: 100%;
  box-sizing: border-box;
}

/* Calendar Day States */

/* Empty days (from previous/next month) */
.calendar-day.empty {
  opacity: 0.3;
  cursor: default;
  background: #0a0a0a;
}

/* Past dates (unavailable) */
.calendar-day.past {
  opacity: 0.4;
  cursor: not-allowed;
  background: #1a1a1a;
  color: #666;
  text-decoration: line-through;
}

/* Available dates */
.calendar-day.available {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-color: var(--chrome-silver);
  color: var(--chrome-silver);
  box-shadow: 
    inset 0 0 10px rgba(192, 192, 192, 0.1),
    0 0 15px rgba(192, 192, 192, 0.2);
}

.calendar-day.available:hover {
  background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
  border-color: #FFD700;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 
    0 0 20px rgba(255, 215, 0, 0.6),
    0 5px 15px rgba(0, 0, 0, 0.5);
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Booked/Unavailable dates */
.calendar-day.booked {
  background: linear-gradient(135deg, #3a0000 0%, #1a0000 100%);
  border-color: #8B0000;
  color: #ff6666;
  cursor: not-allowed;
  box-shadow: 
    inset 0 0 15px rgba(139, 0, 0, 0.3),
    0 0 15px rgba(227, 30, 36, 0.3);
}

.calendar-day.booked::after {
  content: '✖';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #E31E24;
  opacity: 0.3;
  pointer-events: none;
}

/* Selected date */
.calendar-day.selected {
  background: linear-gradient(135deg, #E31E24 0%, #8B0000 100%);
  border-color: #FFD700;
  color: white;
  transform: scale(1.1);
  box-shadow: 
    0 0 30px rgba(227, 30, 36, 1),
    0 0 50px rgba(255, 215, 0, 0.6),
    0 8px 20px rgba(0, 0, 0, 0.6),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  animation: selectedPulse 2s ease-in-out infinite;
  z-index: 10;
}

.calendar-day.selected::before {
  content: '✓';
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 1.2rem;
  color: #FFD700;
  font-weight: 900;
  text-shadow: 
    0 0 10px rgba(255, 215, 0, 1),
    2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Today indicator */
.calendar-day.today {
  border-color: #00CED1;
  box-shadow: 
    0 0 20px rgba(0, 206, 209, 0.5),
    inset 0 0 10px rgba(0, 206, 209, 0.2);
}

.calendar-day.today::after {
  content: '';
  position: absolute;
  bottom: 5px;
  width: 6px;
  height: 6px;
  background: #00CED1;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 206, 209, 1);
}

/* Day number */
.day-number {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

/* Capacity indicator */
.capacity-indicator {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.25rem;
  opacity: 0.8;
}

.calendar-day.available .capacity-indicator {
  color: #90EE90;
}

.calendar-day.booked .capacity-indicator {
  color: #ff6666;
}

/* Loading state */
.calendar-day.loading {
  opacity: 0.5;
  cursor: wait;
  background: #1a1a1a;
  animation: loadingPulse 1.5s ease-in-out infinite;
}

.calendar-day.loading::after {
  content: '⏳';
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.5;
}

/* Animations */
@keyframes selectedPulse {
  0%, 100% {
    box-shadow: 
      0 0 30px rgba(227, 30, 36, 1),
      0 0 50px rgba(255, 215, 0, 0.6),
      0 8px 20px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow: 
      0 0 40px rgba(227, 30, 36, 1),
      0 0 70px rgba(255, 215, 0, 0.8),
      0 10px 25px rgba(0, 0, 0, 0.7);
  }
}

@keyframes loadingPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

/* Legend */
.calendar-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 100%);
  border: 2px solid var(--chrome-silver);
  border-radius: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--chrome-silver);
}

.legend-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid;
}

.legend-box.available {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-color: var(--chrome-silver);
  box-shadow: 0 0 10px rgba(192, 192, 192, 0.3);
}

.legend-box.booked {
  background: linear-gradient(135deg, #3a0000 0%, #1a0000 100%);
  border-color: #8B0000;
  box-shadow: 0 0 10px rgba(227, 30, 36, 0.3);
}

.legend-box.selected {
  background: linear-gradient(135deg, #E31E24 0%, #8B0000 100%);
  border-color: #FFD700;
  box-shadow: 0 0 15px rgba(227, 30, 36, 0.8);
}

.legend-box.today {
  background: #1a1a1a;
  border-color: #00CED1;
  box-shadow: 0 0 10px rgba(0, 206, 209, 0.5);
}

/* Selected Date Display */
.selected-date-display {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #E31E24 0%, #8B0000 100%);
  border: 3px solid #FFD700;
  border-radius: 12px;
  text-align: center;
  box-shadow: 
    0 0 30px rgba(227, 30, 36, 0.8),
    0 0 50px rgba(255, 215, 0, 0.4);
  animation: selectedDisplayPulse 2s ease-in-out infinite;
}

.selected-date-display h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #FFD700;
  margin-bottom: 0.5rem;
  text-shadow: 
    0 0 10px rgba(255, 215, 0, 1),
    2px 2px 4px rgba(0, 0, 0, 0.8);
}

.selected-date-display p {
  font-size: 2rem;
  font-weight: 900;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 
    2px 2px 0px rgba(0, 0, 0, 0.5),
    4px 4px 4px rgba(0, 0, 0, 0.3);
}

.selected-date-display .availability-status {
  font-size: 1.1rem;
  font-weight: 700;
  color: #90EE90;
  margin-top: 1rem;
}

@keyframes selectedDisplayPulse {
  0%, 100% {
    box-shadow: 
      0 0 30px rgba(227, 30, 36, 0.8),
      0 0 50px rgba(255, 215, 0, 0.4);
  }
  50% {
    box-shadow: 
      0 0 40px rgba(227, 30, 36, 1),
      0 0 70px rgba(255, 215, 0, 0.6);
  }
}

/* Continue Button */
.continue-booking-btn {
  margin-top: 2rem;
  width: 100%;
  max-width: 400px;
  padding: 1.5rem 3rem;
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
  border: 3px solid white;
  color: #000;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 
    1px 1px 0px rgba(255, 255, 255, 0.5),
    2px 2px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 
    0 8px 0 #CC8800,
    0 12px 20px rgba(0, 0, 0, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.continue-booking-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 11px 0 #CC8800,
    0 15px 30px rgba(0, 0, 0, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.continue-booking-btn:active {
  transform: translateY(5px);
  box-shadow: 
    0 3px 0 #CC8800,
    0 5px 10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .calendar-container {
    padding: 0.5rem;
    max-width: 100%;
  }
  
  .calendar-header {
    padding: 0.75rem;
    margin-bottom: 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .calendar-month-year {
    font-size: 1.3rem;
  }
  
  .calendar-nav-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .calendar-grid {
    gap: 6px;
    padding: 0.75rem;
  }
  
  .calendar-day {
    padding: 0.4rem;
    font-size: 0.85rem;
    min-height: 50px;
  }
  
  .day-number {
    font-size: 1rem;
  }
  
  .capacity-indicator {
    font-size: 0.55rem;
    margin-top: 0.15rem;
  }
  
  .calendar-legend {
    gap: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
  }
  
  .legend-item {
    font-size: 0.8rem;
  }
  
  .legend-box {
    width: 20px;
    height: 20px;
  }
  
  .selected-date-display {
    padding: 1.5rem 1rem;
  }
  
  .selected-date-display h3 {
    font-size: 1.2rem;
  }
  
  .selected-date-display p {
    font-size: 1.5rem;
  }
  
  .continue-booking-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.5rem !important;
  }
  
  .calendar-container {
    padding: 0.25rem;
  }
  
  .calendar-header {
    padding: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .calendar-month-year {
    font-size: 1rem;
  }
  
  .calendar-nav-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
  
  .calendar-grid {
    gap: 3px;
    padding: 0.5rem;
  }
  
  .calendar-day-header {
    font-size: 0.6rem;
    padding: 0.3rem;
    letter-spacing: 0px;
  }
  
  .calendar-day {
    padding: 0.2rem;
    font-size: 0.75rem;
    min-height: 40px;
    border-width: 1px;
  }
  
  .day-number {
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
  }
  
  .capacity-indicator {
    font-size: 0.5rem;
    margin-top: 0.1rem;
  }
  
  .calendar-day.booked::after,
  .calendar-day.loading::after {
    font-size: 1.2rem;
  }
  
  .calendar-day.selected::before {
    font-size: 0.9rem;
    top: 3px;
    right: 3px;
  }
  
  .calendar-legend {
    gap: 0.5rem;
    padding: 0.75rem;
    margin-top: 0.75rem;
  }
  
  .legend-item {
    font-size: 0.7rem;
    gap: 0.5rem;
  }
  
  .legend-box {
    width: 16px;
    height: 16px;
  }
  
  .selected-date-display {
    padding: 1rem 0.75rem;
    margin-top: 1rem;
  }
  
  .selected-date-display h3 {
    font-size: 1rem;
  }
  
  .selected-date-display p {
    font-size: 1.2rem;
  }
  
  .selected-date-display .availability-status {
    font-size: 0.9rem;
  }
  
  .continue-booking-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
  }
}
