/* Eventos: month board in the Capylandia game palette */
#sec-eventos {
  position: relative;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 179, 0, 0.16), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(0, 255, 204, 0.12), transparent 26%),
    linear-gradient(180deg, #e7f6ee 0%, #f4f9f6 42%, #d5ebdf 100%);
}

.eventos-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px 80px;
}

.eventos-board {
  position: relative;
  border-radius: 28px;
  padding: 18px 16px 16px;
  color: #f5faf6;
  background:
    radial-gradient(80% 42% at 50% 0%, rgba(255, 179, 0, 0.2), transparent 58%),
    linear-gradient(165deg, #163828 0%, #0b150f 62%);
  border: 1px solid rgba(255, 179, 0, 0.38);
  box-shadow:
    0 22px 48px rgba(11, 21, 15, 0.22),
    inset 0 0 0 1px rgba(0, 255, 204, 0.1);
  overflow: hidden;
}

.eventos-board::before,
.eventos-board::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid #00ffcc;
  pointer-events: none;
}

.eventos-board::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}

.eventos-board::after {
  right: 10px;
  bottom: 10px;
  border-left: 0;
  border-top: 0;
}

.eventos-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 8px 8px;
}

.eventos-month {
  margin: 0;
  text-align: center;
  font-family: 'Cinzel', var(--font-headings);
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.04em;
  color: #ffb300;
  text-transform: capitalize;
}

.eventos-nav {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 204, 0.55);
  background: rgba(0, 255, 204, 0.08);
  color: #00ffcc;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.eventos-nav svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.eventos-nav:hover {
  background: rgba(0, 255, 204, 0.18);
}

.eventos-status {
  min-height: 1.4em;
  margin: 0 10px 10px;
  text-align: center;
  color: rgba(245, 250, 246, 0.72);
  font-size: 14px;
}


.eventos-months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 8px 14px;
}

.eventos-month-btn {
  appearance: none;
  border: 1px solid rgba(255, 179, 0, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 250, 246, 0.82);
  border-radius: 999px;
  min-height: 36px;
  padding: 6px 2px;
  font-family: var(--font-headings);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  cursor: pointer;
}

.eventos-month-btn.has-event {
  color: #ffb300;
  border-color: rgba(255, 179, 0, 0.7);
}

.eventos-month-btn.is-on {
  color: #0b150f;
  background: #ffb300;
  border-color: #ffb300;
}

.eventos-mark {
  appearance: none;
  width: 100%;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.eventos-mark img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  animation: eventos-float 2.6s ease-in-out infinite;
  filter: drop-shadow(0 10px 6px rgba(0, 0, 0, 0.55));
}

.eventos-mark-title {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff8e1;
  font-family: var(--font-headings);
  font-size: 10px;
  font-weight: 700;
}

@keyframes eventos-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .eventos-mark img { animation: none; }
}

.eventos-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.eventos-dow {
  text-align: center;
  font-family: var(--font-headings);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00ffcc;
  padding: 4px 0 8px;
}

.eventos-day {
  min-height: 112px;
  border-radius: 14px;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 179, 0, 0.16);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eventos-day.is-pad {
  background: transparent;
  border-color: transparent;
  min-height: 0;
}

.eventos-day.is-today {
  border-color: #00ffcc;
  box-shadow: 0 0 0 1px rgba(0, 255, 204, 0.45), 0 0 16px rgba(0, 255, 204, 0.16);
}

.eventos-day.has-event {
  background: rgba(255, 179, 0, 0.07);
}

.eventos-num {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 13px;
  color: rgba(245, 250, 246, 0.78);
  line-height: 1;
}

.eventos-chip {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  padding: 6px;
  color: #fff8e1;
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.28), rgba(0, 255, 204, 0.12));
  border: 1px solid rgba(255, 179, 0, 0.62);
  font-family: var(--font-headings);
}

.eventos-chip:hover,
.eventos-chip:focus-visible {
  outline: 2px solid #00ffcc;
  outline-offset: 1px;
}

.eventos-chip-time,
.eventos-chip-where {
  display: inline;
  color: #00ffcc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.eventos-chip-where::before {
  content: " · ";
}

.eventos-chip-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.event-detail {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.event-detail.open { display: block; }

.event-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 8, 0.72);
}

.event-detail-panel {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 48px));
  height: min(92dvh, 840px);
  margin: 4dvh auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(255, 179, 0, 0.16), transparent 50%),
    #0b150f;
  color: #f5faf6;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 179, 0, 0.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.event-detail-visual {
  position: relative;
  min-height: 0;
  background: #10281a;
  overflow: hidden;
}

.event-detail-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  background: #10281a;
}

.event-detail-visual.is-placeholder {
  background: linear-gradient(160deg, rgba(30, 94, 53, 0.75), rgba(255, 179, 0, 0.28));
}

.event-detail-copy {
  position: relative;
  overflow: auto;
  padding: 64px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-detail-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb300;
}

.event-detail-copy h3 {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  color: #f5faf6;
}

.event-detail-facts {
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-fact dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb300;
}

.event-fact dd {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(245, 250, 246, 0.88);
}

.event-fact a {
  color: #00ffcc;
  font-weight: 700;
}

.event-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 179, 0, 0.55);
  background: rgba(11, 21, 15, 0.72);
  color: #ffb300;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 800px) {
  .eventos-page { padding: 8px 12px 64px; }
  .eventos-board { padding: 12px 8px 10px; border-radius: 20px; }
  .eventos-grid { gap: 3px; }
  .eventos-dow { font-size: 9px; letter-spacing: 0.04em; padding-bottom: 4px; }
  .eventos-day { min-height: 78px; padding: 4px 3px; border-radius: 10px; gap: 3px; }
  .eventos-months { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .eventos-month-btn { font-size: 10px; min-height: 32px; }
  .eventos-mark img { width: 34px; height: 34px; }
  .eventos-num { font-size: 11px; }
  .eventos-chip { padding: 4px; border-radius: 8px; }
  .eventos-chip-time {
    display: block;
    font-size: 9px;
    white-space: nowrap;
  }
  .eventos-chip-where { display: none; }
  .eventos-chip-title { font-size: 9px; -webkit-line-clamp: 4; }
  .eventos-nav { width: 40px; height: 40px; }

  .event-detail-panel {
    width: calc(100% - 16px);
    height: calc(100dvh - 16px);
    margin: 8px auto;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 34dvh) minmax(0, 1fr);
    border-radius: 18px;
  }

  .event-detail-copy { padding: 20px 16px 24px; }
}

/* Phone header tab layout lives in css/header.css. */
