/**
 * Modern Calendar Styles
 * Clean, modern calendar component styles
 */

/* Modern Calendar Container */
.modern-calendar {
  width: 100%;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Calendar Header */
.modern-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
  background: #fafafa;
}

.modern-calendar-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #343434;
  margin: 0;
  flex: 1;
  text-align: center;
}

.modern-calendar-nav-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  color: #333;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-calendar-nav-btn:hover:not(.disabled) {
  background: #e8e8e8;
  color: #000;
}

.modern-calendar-nav-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.modern-calendar-nav-btn i {
  font-size: 14px;
}

/* Weekdays Header */
.modern-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.modern-calendar-weekday {
  padding: 12px 8px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Calendar Days Grid */
.modern-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}

.modern-calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  background: #fff;
  min-height: 50px;
}

.modern-calendar-day.empty {
  background: #fafafa;
  cursor: default;
  border: 1px solid #f0f0f0;
}

.modern-calendar-day.past {
  background: #fafafa;
  color: #ccc;
  cursor: not-allowed;
}

.modern-calendar-day.available {
  background: #1c875b;
  color: #fff;
  font-weight: 500;
}

.modern-calendar-day.available:hover {
  background: #1a7a50;
  transform: scale(1.05);
  z-index: 1;
  box-shadow: 0 4px 12px rgba(28, 135, 91, 0.3);
}

.modern-calendar-day.today {
  background: #fff;
  color: #000;
  font-weight: 700;
  border: 2px solid #1c875b;
}

.modern-calendar-day.today.available {
  background: #1c875b;
  color: #fff;
  border: 2px solid #1c875b;
}

.modern-calendar-day.selected {
  background: #1c875b;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(28, 135, 91, 0.4);
  position: relative;
}

.modern-calendar-day.selected::after {
  content: '✓';
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 0.75rem;
  font-weight: bold;
}

.modern-calendar-day.sold-out {
  background: #dc3545;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.9;
  font-weight: 600;
}

.modern-calendar-day.sold-out:hover {
  transform: none;
  box-shadow: none;
}

.modern-calendar-day.sold-out .day-number {
  display: block;
  line-height: 1.2;
  margin-bottom: 2px;
}

.modern-calendar-day.sold-out .sold-out-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.modern-calendar-day.camp-date {
  background: #1c875b;
  color: #fff;
}

.modern-calendar-day.camp-date:hover {
  background: #1a7a50;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .modern-calendar-header {
    padding: 12px 16px;
  }

  .modern-calendar-title {
    font-size: 1rem;
  }

  .modern-calendar-weekday {
    padding: 10px 4px;
    font-size: 0.75rem;
  }

  .modern-calendar-day {
    min-height: 45px;
    font-size: 0.9rem;
  }
}
