﻿/* =========================================================
   EVENTS PAGE ONLY
   File: events-page.css
   Page: events.html

   FUTURE CHANGE NOTE:
   Keep styles.css as the shared site stylesheet.
   This file should only style the Events page body content.
========================================================= */

.events-body .events-calendar-section,
.events-body .events-calendar-section *,
.events-body .events-featured-section,
.events-body .events-featured-section *,
.events-body .events-intro-section,
.events-body .events-intro-section *,
.events-body .events-detail-section,
.events-body .events-detail-section * {
  box-sizing: border-box;
}

.events-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 900;
  color: #ffcc00;
  margin-bottom: 10px;
}

/* =========================================================
   HERO
========================================================= */
.events-hero-wrap {
  padding-bottom: 0.75rem;
}

/* =========================================================
   INTRO
========================================================= */
.events-intro-section {
  padding: 0.5rem 0 1.25rem;
  color: #ffffff;
}

.events-intro-card {
  background:
    radial-gradient(circle at top right, rgba(255, 204, 0, 0.20), transparent 35%),
    linear-gradient(135deg, #2b0c36 0%, #540070 55%, #9900ce 100%);
  border-radius: 24px;
  padding: 36px 40px;
  text-align: center;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.events-intro-card h1 {
  font-family: Byington, Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.95;
  margin-bottom: 14px;
}

.events-intro-card p {
  max-width: 920px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.58;
}

/* =========================================================
   EVENT ADVERTISING CAROUSEL
========================================================= */
.events-featured-section {
  padding: 0 0 1.4rem;
}

.events-ad-carousel {
  border: 8px solid #ffcc00;
  border-radius: 22px;
  overflow: hidden;
  background: #2b0c36;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

.events-ad-carousel .carousel-item {
  min-height: 360px;
  background: linear-gradient(135deg, #2b0c36 0%, #540070 55%, #9900ce 100%);
}

.events-ad-image {
  height: 420px;
  object-fit: cover;
  opacity: 0.72;
  background: #2b0c36;
}

.events-ad-image-logo {
  object-fit: contain;
  padding: 56px;
}

.events-ad-caption {
  right: auto;
  left: 7%;
  bottom: 42px;
  max-width: min(620px, 82%);
  text-align: left;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.65);
}

.events-ad-caption h2 {
  font-family: Byington, Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 0.95;
  margin-bottom: 10px;
}

.events-ad-caption p:last-child {
  font-weight: 800;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.events-ad-carousel .carousel-control-prev,
.events-ad-carousel .carousel-control-next {
  width: 64px;
}


.events-mobile-scroll-note {
  display: none;
  margin: 0;
  padding: 10px 14px;
  background: #fff9d8;
  color: #540070;
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
  border-bottom: 1px solid rgba(84, 0, 112, 0.16);
}

/* =========================================================
   CALENDAR
========================================================= */
.events-calendar-section {
  padding: 0 0 1.4rem;
}

.events-calendar-card {
  background: #ffffff;
  color: #1d1d1d;
  border-radius: 22px;
  border: 8px solid #ffcc00;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

.events-calendar-toolbar {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #540070 0%, #2b0c36 100%);
  color: #ffffff;
  padding: 22px;
}

.events-month-title {
  text-align: center;
}

.events-month-title h2 {
  font-family: Byington, Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  margin: 0 0 6px;
}

.events-month-title p {
  margin: 0;
  color: #ffcc00;
  font-weight: 800;
}

.events-month-btn {
  border: none;
  border-radius: 14px;
  background: #ffcc00;
  color: #111111;
  font-size: 2rem;
  font-weight: 900;
  height: 56px;
  cursor: pointer;
}

.events-month-btn:hover {
  background: #ffffff;
  color: #540070;
}

.events-weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #ffcc00;
  color: #1d1d1d;
  font-weight: 900;
  text-align: center;
}

.events-weekday-row div {
  padding: 12px 6px;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
}

.events-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f5eff8;
}

.events-day {
  min-height: 138px;
  padding: 10px;
  background: #ffffff;
  border-right: 1px solid #eadfee;
  border-bottom: 1px solid #eadfee;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.events-day:hover {
  background: #fff9d8;
}

.events-day.is-muted {
  background: #f2eef4;
  color: #9c8ca5;
}

.events-day.is-today {
  outline: 3px solid #540070;
  outline-offset: -3px;
}

.events-day.is-selected {
  background: #ffe987;
}

.events-day-number {
  font-weight: 900;
  color: #540070;
  margin-bottom: 8px;
}

.events-day.is-muted .events-day-number {
  color: #9c8ca5;
}

.events-pill {
  display: block;
  background: #540070;
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 5px;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.events-pill-time {
  color: #ffcc00;
  margin-right: 4px;
}

.events-more-count {
  font-size: 0.78rem;
  color: #540070;
  font-weight: 900;
}

/* =========================================================
   EVENT DETAIL PANEL
========================================================= */
.events-detail-section {
  padding: 0 0 1.5rem;
  color: #ffffff;
}

.events-detail-card {
  background: linear-gradient(180deg, #cb00ff 0%, #9900ce 100%);
  border-radius: 20px;
  padding: 34px 38px;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.events-detail-card h2 {
  font-family: Byington, Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.events-detail-list {
  display: grid;
  gap: 14px;
}

.events-detail-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 32%);
  gap: 18px;
  align-items: stretch;
  background: #ffffff;
  color: #1d1d1d;
  border-left: 8px solid #ffcc00;
  border-radius: 14px;
  padding: 18px;
}

.events-detail-item h3 {
  color: #540070;
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.events-detail-meta {
  font-weight: 800;
  margin-bottom: 8px;
}

.events-detail-item p {
  margin-bottom: 8px;
  line-height: 1.5;
}

.events-detail-item a {
  color: #540070;
  font-weight: 900;
}

.events-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #540070;
  color: #ffffff !important;
  font-weight: 900;
  text-decoration: none;
}

.events-detail-button:hover {
  background: #2b0c36;
  color: #ffcc00 !important;
}

.events-detail-media {
  min-height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: #f5eff8;
}

.events-detail-media img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.events-flyer-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  height: 100%;
  border: 2px dashed #d5b7df;
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(255, 204, 0, 0.24), transparent 35%),
    linear-gradient(135deg, #f7f0fb, #ffffff);
  color: #540070;
  text-align: center;
}

.events-flyer-placeholder span {
  color: #7b5a85;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 0.78rem;
}

.events-flyer-placeholder strong {
  margin-top: 6px;
  font-family: Byington, Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */
@media (max-width: 991.98px) {
  .events-day {
    min-height: 116px;
    padding: 8px;
  }

  .events-pill {
    font-size: 0.68rem;
  }

  .events-detail-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .events-mobile-scroll-note {
    display: block;
  }

  .events-intro-card,
  .events-detail-card {
    padding: 26px 22px;
  }

  .events-ad-carousel .carousel-item {
    min-height: 300px;
  }

  .events-ad-image {
    height: 330px;
  }

  .events-ad-image-logo {
    padding: 44px 28px;
  }

  .events-ad-caption {
    left: 22px;
    bottom: 26px;
    max-width: calc(100% - 44px);
  }

  .events-calendar-toolbar {
    grid-template-columns: 48px 1fr 48px;
    padding: 16px;
  }

  .events-month-btn {
    min-width: 48px;
    height: 52px;
    font-size: 1.5rem;
  }

  .events-calendar-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .events-weekday-row,
  .events-calendar-grid {
    min-width: 720px;
  }

  .events-weekday-row div {
    font-size: 0.8rem;
    padding: 10px 2px;
  }

  .events-day {
    min-height: 108px;
    padding: 8px;
  }

  .events-day-number {
    font-size: 0.92rem;
    margin-bottom: 5px;
  }

  .events-pill {
    font-size: 0.72rem;
    padding: 5px 7px;
    white-space: normal;
    line-height: 1.18;
  }

  .events-detail-button {
    width: 100%;
    border-radius: 10px;
  }

  .events-detail-media,
  .events-detail-media img,
  .events-flyer-placeholder {
    min-height: 220px;
  }
}

/* =========================================================
   PHASE 4 FRONTEND UPGRADE
========================================================= */
.events-carousel-link {
  display: block;
  position: relative;
  min-height: 360px;
  color: #ffffff;
  text-decoration: none;
}

.events-carousel-link:hover,
.events-carousel-link:focus {
  color: #ffffff;
}

.events-carousel-empty {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, #2b0c36 0%, #540070 55%, #9900ce 100%);
}

.events-carousel-empty h2 {
  font-family: Byington, Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 0.95;
}

.events-event-card {
  grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
  border-left: 0;
  border-top: 8px solid #ffcc00;
  padding: 0;
  overflow: hidden;
}

.events-card-media {
  border-radius: 0;
  min-height: 260px;
}

.events-card-media img {
  min-height: 260px;
}

.events-card-content {
  padding: 20px;
}

.events-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.events-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.events-badge.is-free {
  background: #eaf7ee;
  color: #176b35;
}

.events-badge.is-paid {
  background: #fff4bf;
  color: #5f4300;
}

.events-badge.is-sold-out {
  background: #fde8e8;
  color: #9f1239;
}

.events-seats {
  color: #540070;
  font-weight: 900;
}

.events-action-button {
  border: 2px solid #540070;
  background: #ffcc00;
  color: #1d1d1d !important;
}

.events-action-button:hover,
.events-action-button:focus {
  background: #540070;
  color: #ffffff !important;
}

.events-action-button.is-paid,
.events-action-button.is-register {
  background: #540070;
  color: #ffffff !important;
}

.events-action-button.is-paid:hover,
.events-action-button.is-register:hover,
.events-action-button.is-paid:focus,
.events-action-button.is-register:focus {
  background: #2b0c36;
  color: #ffcc00 !important;
}

.events-action-button.is-sold-out,
.events-action-button.is-closed,
.events-action-button.is-coming-soon {
  cursor: not-allowed;
  border-color: #9f1239;
  background: #fde8e8;
  color: #9f1239 !important;
}

.events-event-card.is-disabled {
  border-top-color: #d04545;
}

@media (max-width: 767.98px) {
  .events-event-card {
    grid-template-columns: 1fr;
  }

  .events-card-media,
  .events-card-media img {
    min-height: 220px;
  }

  .events-carousel-empty {
    min-height: 330px;
    padding: 28px;
  }
}

/* =========================================================
   PHASE 4B FRONTEND CORRECTIONS
========================================================= */
.events-banner-shell {
  padding: 1rem 0 0.7rem;
}

.events-foundation-banner,
.mission-foundation-banner.events-foundation-banner {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: auto;
  object-fit: contain;
  border: 0;
}

.events-hero-wrap,
.events-hero-banner {
  padding: 0;
  border: 0;
}

.events-ad-carousel {
  border-radius: 14px;
  background: #ffffff;
}

.events-ad-carousel .carousel-item {
  min-height: 0;
  background: #ffffff;
}

.events-carousel-link {
  display: flex;
  width: 100%;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

.events-ad-image {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  opacity: 1;
  background: #ffffff;
}

.events-ad-caption,
.events-carousel-link .carousel-caption {
  display: none !important;
}

.events-ad-carousel.is-single .carousel-control-prev,
.events-ad-carousel.is-single .carousel-control-next,
.events-ad-carousel.is-single .carousel-indicators {
  display: none !important;
}

.events-ad-carousel .carousel-control-prev,
.events-ad-carousel .carousel-control-next {
  width: 52px;
  opacity: 0.86;
}

.events-ad-carousel .carousel-control-prev-icon,
.events-ad-carousel .carousel-control-next-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background-color: rgba(84, 0, 112, 0.82);
  background-size: 56%;
}

.events-ad-carousel .carousel-indicators {
  margin-bottom: 0.55rem;
}

.events-ad-carousel .carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 2px solid #540070;
  background-color: #ffcc00;
  opacity: 0.72;
}

.events-ad-carousel .carousel-indicators .active {
  opacity: 1;
  background-color: #540070;
}

.events-carousel-empty {
  min-height: 260px;
  align-items: center;
  text-align: center;
}

.events-day {
  min-width: 0;
  overflow: hidden;
}

.events-pill {
  display: flex;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  font-size: 0.72rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.events-pill-time {
  flex: 0 0 auto;
  margin-right: 0;
}

.events-pill-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.events-event-card {
  align-items: stretch;
}

.events-card-content h3 {
  overflow-wrap: anywhere;
}

.events-card-media {
  background: #f7f0fb;
}

.events-card-media img {
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .events-banner-shell {
    padding: 0.7rem 0 0.55rem;
  }

  .events-carousel-link {
    min-height: 190px;
  }

  .events-ad-image {
    max-height: 360px;
  }

  .events-pill {
    display: block;
    max-height: 2.5em;
    padding: 4px 6px;
    white-space: normal;
    overflow: hidden;
  }

  .events-pill-time {
    display: inline;
    margin-right: 3px;
  }

  .events-pill-title {
    display: inline;
    white-space: normal;
  }

  .events-event-card {
    border-top-width: 6px;
  }
}

