/* CALENDAR SECTION */
.calendar-section {
   background: var(--bg-primary);
   border-radius: 20px;
   padding: 3rem 2rem;
   margin-bottom: 3rem;
   box-shadow: var(--shadow-light);
}

.calendar-module {
   display: flex;
   flex-direction: column;
   align-items: center;
}

.calendar-wrapper {
   display: flex;
   flex-direction: column;
   align-items: center;
   width: 100%;
   gap: 2rem;
}

#eventDisplay {
   width: 100%;
   max-width: 500px;
   padding: 2rem;
   background: var(--gradient-primary);
   color: white;
   border-radius: 20px;
   box-shadow: var(--shadow-medium);
   order: 1;
}

#eventDisplay h3 {
   margin-bottom: 1rem;
   text-align: center;
}

.event__box {
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
}

.event__box-right {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 1rem;
   flex-wrap: wrap;
}

#eventImage {
   max-width: 80px;
   max-height: 80px;
   border-radius: 12px;
   box-shadow: var(--shadow-light);
}

#eventTitle {
   font-size: 1.2rem;
   font-weight: 600;
}

#eventInfo {
   line-height: 1.6;
   opacity: 0.9;
}

#calendar {
   width: 100%;
   max-width: 600px;
   background: white;
   border-radius: 16px;
   padding: 1.5rem;
   box-shadow: var(--shadow-light);
   order: 2;
}

.month {
   text-align: center;
   font-size: 1.5rem;
   font-weight: 600;
   margin-bottom: 1.5rem;
   color: var(--primary-color);
}

.weekdays, .days {
   display: grid;
   grid-template-columns: repeat(7, 1fr);
   gap: 0.5rem;
}

.weekdays div {
   text-align: center;
   font-weight: 600;
   color: var(--text-secondary);
   padding: 0.5rem;
}

.day {
   position: relative;
   aspect-ratio: 1;
   border: 1px solid var(--border-color);
   border-radius: 8px;
   cursor: default;
   display: flex;
   align-items: flex-end;
   justify-content: flex-end;
   padding: 0.25rem;
   background: var(--bg-secondary);
   transition: all 0.3s ease;
}

.day > div:first-child {
   z-index: 2;
   font-size: 0.9rem;
   font-weight: 500;
}

.day-image {
   position: absolute;
   top: 4px;
   left: 4px;
   right: 4px;
   bottom: 20px;
   background-size: cover;
   background-position: center;
   border-radius: 6px;
   opacity: 0.7;
}

.day.has-event {
   background: var(--primary-color);
   color: white;
   cursor: pointer;
   border-color: var(--primary-dark);
}

.day.has-event:hover {
   background: var(--primary-light);
   transform: scale(1.05);
}

.day.has-event.selected {
   background: var(--secondary-color);
   box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.3);
}

.day.today {
   border: 2px solid var(--accent-color);
   box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

/* RESPONSIVE DESIGN */
@media (min-width: 1024px) {
   .calendar-wrapper {
       flex-direction: row;
       align-items: flex-start;
       justify-content: center;
       max-width: 1200px;
       margin: 0 auto;
   }

   #eventDisplay {
       order: 2;
       max-width: 450px;
       flex-shrink: 0;
   }

   #calendar {
       order: 1;
       max-width: 500px;
       flex-shrink: 0;
   }
}

@media (max-width: 1024px) {
   .calendar-wrapper {
       flex-direction: column;
   }

   #eventDisplay {
       order: 1;
   }

   #calendar {
       order: 2;
   }

   .info-section-three-columns {
       grid-template-columns: 1fr;
   }
}


/* MINI CALENDAR SECTION */

.calendar-section-mini {
   background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
   border-radius: 20px;
   box-shadow: var(--shadow-light);
   padding: 2rem;
}

#eventDisplayMini {
   max-width: 600px;
   margin: 0 auto;
   padding: 0;
   background: transparent;
   color: white;
   border-radius: 0;
   box-shadow: none;
}

#eventDisplayMini h3 {
   margin-bottom: 1rem;
   text-align: center;
}