/* MU Enhancements Pack CSS */

/* 1. Event Cards */
.mu-event-card {
  background: linear-gradient(135deg, #8a3cf4 0%, #ff7e33 100%);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(255, 126, 51, 0.35);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  color: white;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mu-event-card:hover {
  box-shadow: 0 12px 30px rgba(255, 126, 51, 0.6);
}
.mu-event-card .icon {
  font-size: 2.4rem;
  flex-shrink: 0;
}
.mu-event-card .content {
  flex-grow: 1;
}
.mu-event-card .title {
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}
.mu-event-card .description {
  font-size: 1rem;
  opacity: 0.9;
}

/* 2. Search Result Highlight */
mark.md-search-result, mark {
  background: linear-gradient(90deg, rgba(138,60,244,0.3), rgba(255,126,51,0.3));
  color: #fff !important;
  padding: 0.1em 0.3em;
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(138,60,244,0.4);
}

/* 3. Collapsible Sections */
.mu-collapsible {
  border: 2px solid #8a3cf4;
  border-radius: 8px;
  margin: 1rem 0;
  overflow: hidden;
}
.mu-collapsible > summary {
  cursor: pointer;
  padding: 0.8rem 1rem;
  background: linear-gradient(90deg, #8a3cf4, #ff7e33);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  user-select: none;
}
.mu-collapsible > summary::-webkit-details-marker {
  display: none;
}
.mu-collapsible[open] > summary {
  border-bottom: 2px solid white;
}
.mu-collapsible > div {
  padding: 1rem;
  background: rgba(138,60,244,0.08);
  animation: mu-collapsible-open 0.3s ease forwards;
}
@keyframes mu-collapsible-open {
  from {opacity: 0; transform: translateY(-5px);}
  to {opacity: 1; transform: translateY(0);}
}

/* 4. Sticky Table of Contents */
.md-sidebar--secondary {
  position: sticky;
  top: 5rem;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
}

/* 5. Image Lightbox */
.mu-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}
.mu-lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.mu-lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 30px rgba(255,126,51,0.6);
  border-radius: 8px;
  user-select: none;
  cursor: zoom-out;
  transition: transform 0.3s ease;
}
.mu-lightbox-image:hover {
  transform: scale(1.05);
}

/* 6. Animated MU-Themed Dividers */
.mu-divider {
  margin: 3rem 0 2rem;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(270deg, #ff7e33, #8a3cf4, #ff7e33);
  background-size: 400% 400%;
  animation: mu-divider-animation 8s ease infinite;
  box-shadow: 0 0 20px rgba(255,126,51,0.7);
}
@keyframes mu-divider-animation {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* 7. Page Load Glow Effect */
.mu-page-title-glow {
  animation: mu-glow-pulse 2.5s ease forwards;
  color: #ff7e33;
  text-shadow:
    0 0 4px #ff7e33,
    0 0 10px #8a3cf4,
    0 0 15px #ff7e33,
    0 0 20px #8a3cf4;
}
@keyframes mu-glow-pulse {
  0% {opacity: 0.6;}
  50% {opacity: 1;}
  100% {opacity: 0.6;}
}
