/* Interactive extras for event_calendar_test.php only */
.events-calendar-main {
  min-width: 0;
}

.events-calendar-controls {
  flex-wrap: wrap;
  gap: 14px 18px;
}

.events-today-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 16px;
  border: 1px solid rgba(244, 201, 93, .35);
  border-radius: 999px;
  color: #ffd978;
  background: rgba(244, 201, 93, .1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .2s ease;
}

.events-today-button:hover {
  border-color: #ffd978;
  background: rgba(244, 201, 93, .2);
  transform: translateY(-1px);
}

.events-next-chip {
  display: none;
  width: 100%;
  justify-content: center;
  padding: 0 22px 14px;
}

.events-next-chip.is-visible {
  display: flex;
}

.events-next-chip button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid rgba(255, 107, 107, .35);
  border-radius: 999px;
  color: #ffd0d0;
  background: rgba(255, 107, 107, .1);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.events-next-chip button:hover {
  border-color: #ff8a8a;
  background: rgba(255, 107, 107, .18);
}

.events-next-chip--boss button {
  border-color: rgba(244, 201, 93, .35);
  color: #ffe7a8;
  background: rgba(244, 201, 93, .1);
}

.events-legend span {
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s ease, transform .2s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.events-legend span.is-active {
  opacity: 1;
  border-bottom-color: rgba(255, 255, 255, .25);
}

.events-legend span:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.calendar-day.is-next-event {
  box-shadow: inset 0 0 0 1px rgba(255, 107, 107, .7);
  background: rgba(255, 107, 107, .08);
}

.calendar-day.is-next-event.calendar-day--today {
  box-shadow: inset 0 0 0 1px var(--event-gold);
}

.calendar-day.is-dimmed .calendar-day-events {
  opacity: .22;
}

.calendar-event {
  transition: transform .18s ease, background .18s ease;
}

.calendar-event:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .12);
}

.calendar-event.is-filtered-out {
  display: none;
}

.calendar-day--today.is-pulse time {
  animation: events-today-pulse 1.4s ease 1;
}

@keyframes events-today-pulse {
  0%, 100% { color: var(--event-gold); text-shadow: none; }
  40% { color: #fff2bf; text-shadow: 0 0 18px rgba(244, 201, 93, .65); }
}

.events-calendar-grid.is-animating {
  animation: events-month-fade .28s ease;
}

@keyframes events-month-fade {
  from { opacity: .35; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.events-hover-tip {
  position: fixed;
  z-index: 1200;
  display: none;
  max-width: 280px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 201, 93, .28);
  border-radius: 10px;
  color: #f4f0e6;
  background: rgba(12, 14, 20, .96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  pointer-events: none;
}

.events-hover-tip.is-visible {
  display: block;
}

.events-hover-tip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.events-hover-tip span {
  display: block;
  color: #c5c9d3;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .events-hover-tip {
    display: none !important;
  }
}
