/* Shared Styles for Camp Registration Calendars */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

/* Header */
.header {
  background: linear-gradient(135deg, #0066cc 0%, #004080 100%);
  color: white;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  max-width: 400px;
  width: 80%;
  margin: 0 auto 20px;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.header p {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* Navigation */
.nav {
  background: white;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.nav-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.nav-btn {
  padding: 10px 20px;
  background: #0066cc;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: #0052a3;
  transform: translateY(-2px);
}

.nav-btn.active {
  background: #004080;
}

.back-btn {
  background: #666;
}

.back-btn:hover {
  background: #444;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

/* Camp Week Card */
.camp-week {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 5px solid #0066cc;
}

/* Different backgrounds for beginner vs intermediate */
.camp-week.level-beginner {
  background: linear-gradient(135deg, #e3f2fd 0%, #f5f9ff 100%);
  border-left-color: #2196f3;
}

.camp-week.level-intermediate {
  background: linear-gradient(135deg, #fff3e0 0%, #fff9f0 100%);
  border-left-color: #ff9800;
}

.camp-week:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.week-header {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
}

.week-title {
  font-size: 1.4rem;
  color: #0066cc;
  font-weight: 700;
  margin-bottom: 5px;
}

.week-dates {
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
}

.camp-info {
  margin: 15px 0;
}

.camp-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 5px;
  font-weight: 600;
}

.camp-value {
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

/* Availability Indicator */
.availability {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
}

.availability.high {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.availability.medium {
  background: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffc107;
}

.availability.low {
  background: #fff3cd;
  color: #856404;
  border-left: 4px solid #ff9800;
}

.availability.full {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.availability.high .status-dot {
  background: #28a745;
}

.availability.medium .status-dot {
  background: #ffc107;
}

.availability.low .status-dot {
  background: #ff9800;
}

.availability.full .status-dot {
  background: #dc3545;
}

.slots-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.registered {
  font-size: 1.3rem;
}

.open-slots {
  font-size: 0.95rem;
}

/* Register Button */
.register-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  margin-top: 15px;
  box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

.register-btn:hover {
  background: linear-gradient(135deg, #0052a3 0%, #004080 100%);
  box-shadow: 0 6px 15px rgba(0, 102, 204, 0.4);
  transform: translateY(-2px);
}

.register-btn.disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

.register-btn.disabled:hover {
  transform: none;
  background: #ccc;
}

/* Legend */
.legend {
  background: white;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.legend h3 {
  margin-bottom: 15px;
  color: #0066cc;
}

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

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.high {
  background: #28a745;
}

.legend-dot.medium {
  background: #ffc107;
}

.legend-dot.low {
  background: #ff9800;
}

.legend-dot.full {
  background: #dc3545;
}

/* Footer */
footer {
  background: #003d73;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

footer a {
  color: #66b3ff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.8rem;
  }
  
  .nav-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .nav-links {
    flex-direction: column;
  }
  
  .nav-btn {
    text-align: center;
  }
  
  .calendar-grid {
    grid-template-columns: 1fr;
  }
  
  .legend-items {
    flex-direction: column;
    gap: 10px;
  }
}
