/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInDown 0.8s ease;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  font-weight: 300;
  animation: fadeInUp 0.8s ease;
}

/* Calendar Container */
.calendar-container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

/* Calendar Header */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.nav-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.nav-btn:active {
  transform: scale(0.95);
}

.month-display {
  text-align: center;
  flex: 1;
}

.month-display h2 {
  margin: 0;
  font-size: 2rem;
  color: #333;
  font-weight: 600;
}

.hindu-month {
  margin: 0.5rem 0 0 0;
  color: #667eea;
  font-size: 1rem;
  font-weight: 500;
}

/* Calendar Wrapper */
.calendar-wrapper {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  animation: slideIn 0.5s ease;
}

/* Day Headers */
.day-header {
  text-align: center;
  font-weight: 600;
  padding: 1rem 0.5rem;
  color: #667eea;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Day Cell */
.day-cell {
  aspect-ratio: 1;
  border: 2px solid #f0f0f0;
  border-radius: 10px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  position: relative;
  overflow: hidden;
}

.day-cell:hover {
  border-color: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(102, 126, 234, 0.2);
}

.day-cell.empty {
  background: #fafafa;
  cursor: default;
  border-color: transparent;
}

.day-cell.empty:hover {
  transform: none;
  box-shadow: none;
}

.day-cell.today {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  font-weight: 700;
}

.day-cell.today .day-number {
  color: white;
}

.day-cell.has-event {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  border-color: #fdcb6e;
}

.day-cell.has-event:hover {
  background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

.day-number {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.3rem;
}

.event-indicators {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.3rem;
}

.event-indicator {
  font-size: 1rem;
  line-height: 1;
}

/* Legend Section */
.legend-section {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  padding: 2rem;
  margin-bottom: 2rem;
}

.legend-section h3 {
  margin: 0 0 1.5rem 0;
  color: #333;
  font-size: 1.5rem;
  text-align: center;
}

.legend-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: transform 0.2s;
}

.legend-item:hover {
  transform: translateX(5px);
  background: #e9ecef;
}

.legend-icon {
  font-size: 1.5rem;
  width: 30px;
  text-align: center;
}

/* Event Details Modal */
.event-details {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.event-details.active {
  display: flex;
}

.event-details-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #e74c3c;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s;
  line-height: 1;
}

.close-btn:hover {
  transform: rotate(90deg);
}

.event-details-content h3 {
  margin: 0 0 1.5rem 0;
  color: #667eea;
  font-size: 1.8rem;
}

#event-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-item {
  padding: 1.2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border-left: 4px solid #667eea;
  transition: transform 0.2s;
}

.event-item:hover {
  transform: translateX(5px);
}

.event-item-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-item-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.event-item-time {
  color: #667eea;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .calendar-header {
    padding: 1rem;
  }

  .month-display h2 {
    font-size: 1.5rem;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .calendar-wrapper {
    padding: 1rem;
  }

  .calendar-grid {
    gap: 0.3rem;
  }

  .day-header {
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
  }

  .day-number {
    font-size: 1rem;
  }

  .event-indicator {
    font-size: 0.8rem;
  }

  .legend-items {
    grid-template-columns: 1fr;
  }

  .event-details-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 1rem;
  }

  .day-cell {
    padding: 0.3rem;
  }

  .day-number {
    font-size: 0.9rem;
  }

  .event-indicators {
    margin-top: 0.2rem;
  }
}