/* Homepage interactive event calendar */
.home-calendar-section {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0;
  background:
    radial-gradient(circle at 8% 5%, rgba(3,255,246,.08), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(147,51,234,.12), transparent 30%),
    linear-gradient(180deg, #0d131f 0%, #080c14 100%);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.home-calendar-section *,
.home-calendar-section *::before,
.home-calendar-section *::after {
  box-sizing: border-box;
}

.home-calendar-section__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 480px);
  gap: clamp(1.75rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.home-calendar-section__eyebrow,
.home-calendar__eyebrow {
  display: inline-block;
  color: #03fff6;
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.home-calendar-section__header h2 {
  margin: .7rem 0 0;
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.04em;
}

.home-calendar-section__header p {
  margin: 0;
  color: rgba(242,247,255,.68);
  font-size: 1.03rem;
  line-height: 1.75;
}

.home-calendar-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.3rem;
}

.home-calendar__status {
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  color: rgba(255,255,255,.68);
  background: rgba(255,255,255,.035);
  font-size: .9rem;
}

.home-calendar__panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 30px;
  background:
    radial-gradient(circle at 7% 4%, rgba(3,255,246,.07), transparent 25%),
    radial-gradient(circle at 94% 8%, rgba(147,51,234,.12), transparent 29%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)),
    rgba(8,12,20,.82);
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}

.home-calendar__toolbar,
.home-calendar__selection-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
}

.home-calendar__toolbar {
  margin-bottom: 1.35rem;
}

.home-calendar__toolbar h3,
.home-calendar__selection-header h3 {
  margin: .45rem 0 0;
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  line-height: 1;
  letter-spacing: -.025em;
}

.home-calendar__toolbar h3 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.home-calendar__toolbar p {
  margin: .65rem 0 0;
  color: rgba(255,255,255,.64);
  line-height: 1.6;
}

.home-calendar__controls {
  display: flex;
  gap: .65rem;
  flex: 0 0 auto;
}

.home-calendar__arrow {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,.055);
  font-size: 1.2rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.home-calendar__arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(3,255,246,.42);
  background: rgba(3,255,246,.1);
}

.home-calendar__arrow:focus-visible,
.home-calendar__day:focus-visible {
  outline: 3px solid rgba(3,255,246,.45);
  outline-offset: 3px;
}

.home-calendar__arrow:disabled {
  opacity: .28;
  cursor: not-allowed;
}

.home-calendar__calendar {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: rgba(5,9,16,.48);
}

.home-calendar__weekdays,
.home-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.home-calendar__weekdays {
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.045);
}

.home-calendar__weekdays span {
  padding: .8rem .4rem;
  color: rgba(255,255,255,.56);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-align: center;
  text-transform: uppercase;
}

.home-calendar__grid {
  gap: 1px;
  background: rgba(255,255,255,.075);
}

.home-calendar__blank,
.home-calendar__day {
  min-width: 0;
  min-height: 112px;
  background: #101621;
}

.home-calendar__blank {
  opacity: .48;
}

.home-calendar__day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  padding: .75rem;
  border: 0;
  color: rgba(255,255,255,.62);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.home-calendar__day:hover {
  color: #fff;
  background: #151e2d;
}

.home-calendar__day.has-events {
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(3,255,246,.09), transparent 42%),
    #121b28;
}

.home-calendar__day.has-events::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #03fff6;
  box-shadow: 0 0 14px rgba(3,255,246,.7);
}

.home-calendar__day.is-today {
  box-shadow: inset 0 0 0 1px rgba(244,203,120,.48);
}

.home-calendar__day.is-selected {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(109,40,217,.33), rgba(3,255,246,.12)),
    #161d2b;
  box-shadow: inset 0 0 0 2px rgba(168,85,247,.72);
}

.home-calendar__day-number {
  font-size: 1rem;
  font-weight: 900;
}

.home-calendar__event-title {
  display: -webkit-box;
  width: 100%;
  overflow: hidden;
  color: rgba(255,255,255,.82);
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.home-calendar__event-title.is-empty {
  color: rgba(255,255,255,.28);
  font-weight: 600;
}

.home-calendar__event-count {
  margin-top: auto;
  padding: .23rem .42rem;
  border-radius: 999px;
  color: #07161a;
  background: linear-gradient(135deg, #00cfc8, #03fff6);
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .03em;
}

.home-calendar__selection {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.09);
  scroll-margin-top: 112px;
}

.home-calendar__selection-header {
  margin-bottom: 1.1rem;
}

.home-calendar__selection-header h3 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.home-calendar__count {
  flex: 0 0 auto;
  padding: .5rem .75rem;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.055);
  font-size: .82rem;
  font-weight: 750;
}

.home-calendar__events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-calendar__empty {
  grid-column: 1 / -1;
  padding: 1.4rem;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 18px;
  color: rgba(255,255,255,.68);
  background: rgba(255,255,255,.025);
}

.home-event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025)),
    rgba(12,16,26,.55);
  overflow: hidden;
}

.home-event-card--featured {
  border-color: rgba(3,255,246,.24);
  background:
    linear-gradient(180deg, rgba(3,255,246,.075), rgba(255,255,255,.025)),
    rgba(12,16,26,.58);
}

.home-event-card__top {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.home-event-card__date {
  width: 88px;
  padding: .75rem .6rem;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  text-align: center;
  background: rgba(255,255,255,.055);
}

.home-event-card__date--featured {
  border-color: rgba(3,255,246,.24);
  background: linear-gradient(180deg, rgba(3,255,246,.1), rgba(255,255,255,.04));
}

.home-event-card__month {
  display: block;
  color: #03fff6;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.home-event-card__day {
  display: block;
  margin-top: .35rem;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
}

.home-event-card__dow {
  display: block;
  margin-top: .35rem;
  color: rgba(255,255,255,.56);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.home-event-card__meta {
  min-width: 0;
}

.home-event-card__meta h4 {
  margin: .75rem 0 0;
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.08;
}

.home-event-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.home-event-card__badge,
.home-event-card__chip {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 .6rem;
  border-radius: 999px;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.home-event-card__badge {
  color: #07161a;
  background: linear-gradient(135deg, #00cfc8, #03fff6);
}

.home-event-card__badge--cover {
  color: #fff;
  background: linear-gradient(135deg, #6d28d9 0%, #a855f7 58%, #d946ef 100%);
  border: 1px solid rgba(233,213,255,.82);
  box-shadow: 0 8px 24px rgba(147,51,234,.36);
}

.home-event-card__badge--cover::before {
  content: "$";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: .35rem;
  border-radius: 50%;
  color: #4c1d95;
  background: rgba(255,255,255,.92);
  font-size: .62rem;
  font-weight: 900;
}

.home-event-card__chip {
  color: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.055);
}

.home-event-card__chip--featured {
  color: #07161a;
  border: 0;
  background: linear-gradient(135deg, #00cfc8, #03fff6);
}

.home-event-card__description {
  color: rgba(255,255,255,.72);
  font-size: .94rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.home-event-card__details {
  display: grid;
  gap: .6rem;
  color: rgba(255,255,255,.72);
  font-size: .91rem;
}

.home-event-card__detail {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.home-event-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
}

.home-event-card__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-event-card__icon--time {
  color: #ffd27c;
  border-color: rgba(255,210,124,.28);
  background: linear-gradient(145deg, rgba(255,210,124,.18), rgba(255,174,74,.08));
}

.home-event-card__icon--location {
  color: #d7a0ff;
  border-color: rgba(190,112,255,.34);
  background: linear-gradient(145deg, rgba(168,85,247,.24), rgba(126,34,206,.1));
}

.home-event-card__footer {
  margin-top: auto;
  padding-top: .15rem;
}

.home-event-card__footer a {
  color: #03fff6;
  font-size: .85rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .home-calendar-section__header,
  .home-calendar__events {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-calendar-section__header,
  .home-calendar__toolbar,
  .home-calendar__selection-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .home-calendar__controls {
    width: 100%;
    justify-content: space-between;
  }

  .home-calendar__weekdays span {
    padding: .65rem .1rem;
    font-size: .56rem;
    letter-spacing: .03em;
  }

  .home-calendar__blank,
  .home-calendar__day {
    min-height: 60px;
  }

  .home-calendar__day {
    gap: .2rem;
    padding: .45rem .3rem;
  }

  .home-calendar__day-number {
    font-size: .8rem;
  }

  .home-calendar__event-title {
    display: none;
  }

  .home-calendar__event-count {
    padding: .12rem .28rem;
    font-size: .5rem;
  }

  .home-event-card__top {
    grid-template-columns: 1fr;
  }

  .home-event-card__date {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-calendar__arrow,
  .home-calendar__day {
    transition: none;
  }
}
