/* ==========================================================================
   Single Event Page — events-single.css
   ========================================================================== */

/* Container */
#aumbase-event-single {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--aumbase-text);
  line-height: 1.6;
}

.aumbase-event-single__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Hero — Two Column Layout
   ========================================================================== */

.aumbase-event-single__hero {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 50px;
  padding: 60px 0 40px;
  align-items: start;
}

/* -- Flyer Column -- */
.aumbase-event-single__flyer-wrap {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--aumbase-shadow-md);
}

.aumbase-event-single__flyer {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* -- Info Column -- */
.aumbase-event-single__title {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--aumbase-text);
  margin: 0 0 25px;
  line-height: 1.2;
}

/* Meta Rows */
.aumbase-event-single__meta {
  margin-bottom: 30px;
}

.aumbase-event-single__meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--aumbase-border);
}

.aumbase-event-single__meta-row:last-child {
  border-bottom: none;
}

.aumbase-event-single__meta-icon {
  flex-shrink: 0;
  color: var(--aumbase-purple);
  display: flex;
  align-items: center;
}

.aumbase-event-single__meta-text {
  font-size: 1.05rem;
  color: var(--aumbase-text);
}

/* ==========================================================================
   Early Bird Pricing
   ========================================================================== */

.aumbase-event-single__meta-row--early-bird {
  align-items: flex-start;
  padding: 14px 0;
}

.aumbase-event-single__early-bird {
  flex: 1;
}

.aumbase-event-single__early-bird-prices {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.aumbase-event-single__early-bird-current {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--aumbase-text);
}

.aumbase-event-single__early-bird-regular {
  font-size: 0.95rem;
  color: var(--aumbase-text-light);
  text-decoration: line-through;
}

.aumbase-event-single__early-bird-savings {
  display: inline-block;
  background: var(--aumbase-gold);
  color: var(--aumbase-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--aumbase-radius-pill);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.aumbase-event-single__early-bird-deadline {
  font-size: 0.85rem;
  color: var(--aumbase-gold-dark);
  font-weight: 600;
  margin-top: 4px;
}

/* Register Button */
.aumbase-event-single__register-btn {
  display: inline-block;
  background: var(--aumbase-gold);
  color: var(--aumbase-white);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 40px;
  border-radius: var(--aumbase-radius-pill);
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px var(--aumbase-gold-shadow);
  margin-bottom: 30px;
}

.aumbase-event-single__register-btn:hover {
  background: var(--aumbase-gold-dark);
  box-shadow: 0 6px 20px var(--aumbase-gold-shadow);
  color: var(--aumbase-white);
  text-decoration: none;
}

/* Content / Description — truncated wrapper */
.aumbase-event-single__content-wrap {
  position: relative;
  margin-bottom: 30px;
}

.aumbase-event-single__content-wrap[data-truncate="true"] .aumbase-event-single__content {
  max-height: 180px;
  overflow: hidden;
  position: relative;
}

.aumbase-event-single__content-wrap[data-truncate="true"] .aumbase-event-single__content-fade {
  position: sticky;
  bottom: 0;
  height: 80px;
  margin-top: -80px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  pointer-events: none;
}

.aumbase-event-single__content-wrap.aumbase-event-single__content-wrap--expanded .aumbase-event-single__content {
  max-height: none;
}

.aumbase-event-single__content-wrap.aumbase-event-single__content-wrap--expanded .aumbase-event-single__content-fade {
  display: none;
}

.aumbase-event-single__read-more {
  display: block;
  background: none;
  border: none;
  color: var(--aumbase-purple);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-top: 10px;
  text-align: right;
}

.aumbase-event-single__read-more:hover {
  text-decoration: underline;
}

/* Hide read more + fade when content is short enough */
.aumbase-event-single__content-wrap--no-truncate .aumbase-event-single__content-fade,
.aumbase-event-single__content-wrap--no-truncate .aumbase-event-single__read-more {
  display: none;
}

.aumbase-event-single__content {
  font-size: 1rem;
  line-height: 1.7;
}

.aumbase-event-single__content p {
  margin-bottom: 0.75em;
}

/* Headings — tighter spacing, brand color on h2 */
.aumbase-event-single__content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--aumbase-purple);
  margin-top: 1.6em;
  margin-bottom: 0.4em;
  line-height: 1.25;
}

.aumbase-event-single__content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--aumbase-text);
  margin-top: 1.2em;
  margin-bottom: 0.3em;
  line-height: 1.3;
}

.aumbase-event-single__content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--aumbase-text);
  margin-top: 1em;
  margin-bottom: 0.25em;
  line-height: 1.35;
}

/* Lists — override Divi's list-style: none reset */
.aumbase-event-single__content ul,
.aumbase-event-single__content ol {
  margin-left: 1.5em;
  margin-bottom: 0.75em;
  padding-left: 0.5em;
}

.aumbase-event-single__content ul {
  list-style-type: disc;
}

.aumbase-event-single__content ol {
  list-style-type: decimal;
}

.aumbase-event-single__content li {
  list-style: inherit;
  display: list-item;
  margin-bottom: 0.3em;
  padding-left: 0.2em;
}

/* Strong/bold text */
.aumbase-event-single__content strong {
  font-weight: 600;
  color: var(--aumbase-text);
}

/* Reduce excessive whitespace between block editor blocks */
.aumbase-event-single__content > *:first-child {
  margin-top: 0;
}

.aumbase-event-single__content > *:last-child {
  margin-bottom: 0;
}

/* Category Badges */
.aumbase-event-single__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.aumbase-event-single__category-badge {
  display: inline-block;
  background: var(--aumbase-purple-light);
  color: var(--aumbase-purple);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 5px 16px;
  border-radius: var(--aumbase-radius-pill);
  border: 1px solid rgba(120, 82, 169, 0.15);
}

/* ==========================================================================
   More Events Section
   ========================================================================== */

.aumbase-event-single__more-events {
  background: #f9f9f9;
  padding: 60px 0 70px;
  margin-top: 20px;
}

.aumbase-event-single__more-heading {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--aumbase-text);
  margin: 0 0 30px;
  text-align: center;
}

/* Static grid (3 or fewer) */
.aumbase-event-static-grid .aumbase-event-single__more-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Slider wrapper */
.aumbase-event-slider {
  position: relative;
}

.aumbase-event-slider .aumbase-event-single__more-track {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 0;
}

.aumbase-event-slider .aumbase-event-single__more-track::-webkit-scrollbar {
  display: none;
}

.aumbase-event-slider .aumbase-event-single__more-card {
  flex: 0 0 calc(33.333% - 17px);
  scroll-snap-align: start;
}

/* Slider Arrows */
.aumbase-event-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  z-index: 2;
  background: var(--aumbase-white);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--aumbase-shadow-sm);
  cursor: pointer;
  color: var(--aumbase-purple);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.aumbase-event-slider__arrow:hover {
  box-shadow: var(--aumbase-shadow-md);
  background: var(--aumbase-purple);
  color: var(--aumbase-white);
}

.aumbase-event-slider__arrow--prev {
  left: -22px;
}

.aumbase-event-slider__arrow--next {
  right: -22px;
}

/* More Event Card — framed style */
.aumbase-event-single__more-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 12px 12px 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aumbase-event-single__more-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
  text-decoration: none;
  color: inherit;
}

.aumbase-event-single__more-card-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.aumbase-event-single__more-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.aumbase-event-single__more-card-no-image {
  aspect-ratio: 4 / 5;
  background: var(--aumbase-purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.aumbase-event-single__more-card-no-image .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: var(--aumbase-purple);
  opacity: 0.3;
}

/* Date Badge on More Events cards */
.aumbase-event-single__more-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--aumbase-gold);
  color: var(--aumbase-white);
  border-radius: 6px;
  padding: 6px 10px;
  text-align: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  min-width: 48px;
}

.aumbase-event-single__more-card-badge-month {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.aumbase-event-single__more-card-badge-day {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2px;
}

.aumbase-event-single__more-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  padding: 8px 4px;
  color: var(--aumbase-text);
  line-height: 1.35;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  transition: color 0.15s ease;
}

.aumbase-event-single__more-card:hover .aumbase-event-single__more-card-title {
  color: var(--aumbase-gold);
}

/* Schedule badge on More Events cards */
.aumbase-event-single__more-card-badge--schedule {
  padding: 6px 12px;
  min-width: auto;
}

.aumbase-event-single__more-card-badge-schedule {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* ==========================================================================
   Phone Link
   ========================================================================== */

.aumbase-event-single__phone-link {
  color: var(--aumbase-purple);
  text-decoration: none;
}

.aumbase-event-single__phone-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Vimeo Embed
   ========================================================================== */

.aumbase-event-single__vimeo {
  margin-bottom: 25px;
  border-radius: 8px;
  overflow: hidden;
}

.aumbase-event-single__vimeo iframe {
  display: block;
  aspect-ratio: 16 / 9;
  height: auto;
}

/* ==========================================================================
   Arketa Registration Notice (Collapsible)
   ========================================================================== */

.aumbase-event-single__arketa-notice {
  margin-bottom: 20px;
  border: 1px solid var(--aumbase-gold);
  border-radius: 8px;
  overflow: hidden;
}

.aumbase-event-single__arketa-notice-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: var(--aumbase-gold-light);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--aumbase-gold-dark);
  text-align: left;
}

.aumbase-event-single__arketa-notice-toggle:hover {
  background: rgba(249, 161, 9, 0.1);
}

.aumbase-event-single__arketa-notice-chevron {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.aumbase-event-single__arketa-notice-toggle[aria-expanded="true"] .aumbase-event-single__arketa-notice-chevron {
  transform: rotate(180deg);
}

.aumbase-event-single__arketa-notice-content {
  padding: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  background: var(--aumbase-white);
}

.aumbase-event-single__arketa-notice-content p {
  margin: 0 0 10px;
}

.aumbase-event-single__arketa-notice-important {
  font-weight: 600;
  color: var(--aumbase-gold-dark);
  padding: 10px 14px;
  background: var(--aumbase-gold-light);
  border-radius: 6px;
}

.aumbase-event-single__arketa-notice-link {
  display: inline-block;
  color: var(--aumbase-purple);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 10px;
}

.aumbase-event-single__arketa-notice-link:hover {
  text-decoration: underline;
}

.aumbase-event-single__arketa-notice-help {
  color: var(--aumbase-text-light);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Arketa Booking Widget Embed
   ========================================================================== */

.aumbase-event-single__arketa-embed {
  margin: 25px 0;
}

.aumbase-event-single__arketa-embed iframe {
  display: block;
  min-height: 600px;
  border-radius: 8px;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.aumbase-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.aumbase-lightbox--open {
  opacity: 1;
}

.aumbase-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.aumbase-lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.aumbase-lightbox__img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.aumbase-lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--aumbase-white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.aumbase-lightbox__close:hover {
  opacity: 0.7;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .aumbase-event-single__hero {
    gap: 30px;
  }

  .aumbase-event-slider .aumbase-event-single__more-card {
    flex: 0 0 calc(50% - 13px);
  }

  .aumbase-event-static-grid .aumbase-event-single__more-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .aumbase-event-single__hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px 0 20px;
  }

  .aumbase-event-single__title {
    font-size: 1.7rem;
  }

  .aumbase-event-single__register-btn {
    display: block;
    text-align: center;
  }

  .aumbase-event-slider .aumbase-event-single__more-card {
    flex: 0 0 80%;
  }

  .aumbase-event-static-grid .aumbase-event-single__more-track {
    grid-template-columns: 1fr;
  }

  .aumbase-event-slider__arrow {
    display: none;
  }

  .aumbase-event-single__more-events {
    padding: 40px 0 50px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .aumbase-event-single__more-card,
  .aumbase-event-single__register-btn,
  .aumbase-event-slider__arrow,
  .aumbase-lightbox,
  .aumbase-event-single__arketa-notice-chevron {
    transition: none;
  }

  .aumbase-event-slider .aumbase-event-single__more-track {
    scroll-behavior: auto;
  }
}
