/* ============================================================
   events.css — Today.html / Events page
   Inherits tokens and topbar from homepage.css
   ============================================================ */

/* ---- hero ---- */
.ev-hero {
  position: relative;
  overflow: hidden;
  background: #07121a;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 96px 0 64px;
  isolation: isolate;
}
.ev-hero-bg {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center 40%;
  filter: saturate(0.7) brightness(0.5);
  z-index: 0;
}
.ev-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,18,26,.45) 0%, rgba(7,18,26,.72) 60%, rgba(7,18,26,.92) 100%),
    linear-gradient(90deg, rgba(7,18,26,.6) 0%, rgba(7,18,26,.0) 70%);
  z-index: 1;
}
.ev-hero-inner {
  position: relative;
  z-index: 2;
}
.ev-hero em {
  font-style: italic;
  color: #e87c5c;
}
.ev-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.ev-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 14px;
  text-wrap: balance;
}
.ev-hero-sub {
  color: rgba(255,255,255,.65);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 36px;
  max-width: 52ch;
}

/* ---- live dot (shared with directory) ---- */
.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 2px rgba(46,204,113,.25);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(46,204,113,.25); }
  50%       { box-shadow: 0 0 0 5px rgba(46,204,113,.0); }
}

/* ---- filter pills ---- */
.ev-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ev-filter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.ev-filter:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.ev-filter.active {
  background: #c0462b;
  border-color: #c0462b;
  color: #fff;
}

/* ---- featured event ---- */
.ev-featured {
  background: var(--paper, #F4EEE2);
  padding: 48px 0;
  border-bottom: 1px solid var(--rule, #D9CFBC);
}
.ev-featured-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3, #837B6F);
  margin-bottom: 20px;
}
.ev-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rule, #D9CFBC);
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.ev-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(20,17,14,.14);
}
.ev-featured-img {
  min-height: 320px;
  background-size: cover;
  background-position: center;
  background-color: var(--paper-2, #ECE4D3);
}
.ev-featured-img-ph { background: linear-gradient(135deg, #e8e0d0, #d8cfc0); }
.ev-featured-body {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.ev-featured-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3, #837B6F);
}
.ev-featured-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink, #15110D);
  margin: 0;
}
.ev-featured-venue {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--brick, #B23E26);
}
.ev-featured-desc {
  font-size: 14px;
  color: var(--ink-2, #4A433B);
  line-height: 1.6;
  margin: 4px 0 12px;
}
.ev-featured-btn { align-self: flex-start; }

@media (max-width: 720px) {
  .ev-featured-card { grid-template-columns: 1fr; }
  .ev-featured-img  { min-height: 200px; }
  .ev-featured-body { padding: 24px; }
}

/* ---- add event modal ---- */
.ev-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ev-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,17,14,.55);
  backdrop-filter: blur(4px);
}
.ev-modal-box {
  position: relative;
  background: var(--paper, #F4EEE2);
  border: 1px solid var(--rule, #D9CFBC);
  border-radius: 14px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 24px 64px rgba(20,17,14,.3);
}
.ev-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.ev-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink, #15110D);
}
.ev-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--ink-3, #837B6F);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
}
.ev-modal-close:hover { background: var(--paper-2, #ECE4D3); color: var(--ink, #15110D); }
.ev-modal-sub {
  font-size: 13px;
  color: var(--ink-3, #837B6F);
  margin: 0 0 24px;
}
.ev-modal-form { display: flex; flex-direction: column; gap: 14px; }
.ev-field { display: flex; flex-direction: column; gap: 5px; }
.ev-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ev-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2, #4A433B);
}
.ev-field input,
.ev-field select,
.ev-field textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--rule, #D9CFBC);
  border-radius: 6px;
  background: #fff;
  color: var(--ink, #15110D);
  outline: none;
  transition: border-color .15s;
}
.ev-field input:focus,
.ev-field select:focus,
.ev-field textarea:focus { border-color: var(--brand, #1F4E6B); }
.ev-field textarea { resize: vertical; }
.ev-field-check { flex-direction: row; align-items: center; }
.ev-field-check label {
  display: flex; align-items: center; gap: 8px;
  text-transform: none; letter-spacing: 0; font-size: 13px;
  cursor: pointer;
}
.ev-modal-submit { margin-top: 6px; width: 100%; justify-content: center; }
.ev-modal-msg {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 6px;
}
.ev-modal-msg-err { background: #fdf0ee; color: #a03020; border: 1px solid #f0c0b0; }
.ev-modal-msg-ok  { background: #edf7f1; color: #1a6b36; border: 1px solid #b0dfc0; }

@media (max-width: 480px) {
  .ev-field-row { grid-template-columns: 1fr; }
  .ev-modal-box { padding: 24px 20px; }
}

/* ---- weather strip ---- */
.wx-strip {
  background: var(--paper-2, #ECE4D3);
  border-bottom: 1px solid var(--rule, #D9CFBC);
  padding: 14px 0;
}
.wx-strip-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.wx-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3, #837B6F);
  white-space: nowrap;
}
.wx-now {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wx-icon { font-size: 20px; line-height: 1; }
.wx-temp {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink, #15110D);
  letter-spacing: -0.02em;
}
.wx-cond {
  font-size: 13px;
  color: var(--ink-2, #4A433B);
}
.wx-loc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3, #837B6F);
  letter-spacing: .04em;
}
.wx-loading, .wx-err {
  font-size: 13px;
  color: var(--ink-3, #837B6F);
}
.wx-forecast {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.wx-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 6px;
  min-width: 60px;
  text-align: center;
}
.wx-day:hover { background: var(--paper-3, #E2D8C2); }
.wx-day-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3, #837B6F);
}
.wx-day-icon { font-size: 18px; line-height: 1.3; }
.wx-day-temp {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink, #15110D);
}
.wx-day-cond {
  font-size: 10px;
  color: var(--ink-3, #837B6F);
  line-height: 1.3;
}

@media (max-width: 640px) {
  .wx-forecast { display: none; }
  .wx-strip-inner { gap: 12px; }
}

/* ---- section ---- */
.ev-section {
  padding: 52px 0 80px;
  background: var(--paper, #F4EEE2);
}

/* ---- grid ---- */
.ev-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ---- event card ---- */
.ev-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rule, #D9CFBC);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.ev-card:hover {
  border-color: var(--brick, #B23E26);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(20,17,14,.14);
}

.ev-card-media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e8e0d0;
}
.ev-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.ev-card:hover .ev-card-media img {
  transform: scale(1.04);
}
.ev-card-ph {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: rgba(20,17,14,.15);
  background: linear-gradient(135deg, #e8e0d0 0%, #d8cfc0 100%);
}

.ev-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 99px;
}
.ev-badge-free {
  background: #e8f5ec;
  color: #1a6b36;
  border: 1px solid rgba(26,107,54,.25);
}
.ev-badge-time {
  background: rgba(20,17,14,.65);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  left: auto;
  right: 10px;
}

.ev-card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.ev-card-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3, #837B6F);
}
.ev-date-today {
  color: #1a6b36;
  font-weight: 600;
}
.ev-card-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink, #15110D);
  line-height: 1.3;
  margin-top: 3px;
}
.ev-card-venue {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: .03em;
  color: var(--brick, #B23E26);
  margin-top: 1px;
}
.ev-card-desc {
  font-size: 13px;
  color: var(--ink-2, #4A433B);
  line-height: 1.5;
  margin: 6px 0 0;
}

/* ---- loading ---- */
.ev-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 80px 0;
  color: var(--ink-3, #837B6F);
  font-size: 14px;
}
.ev-loading-dots {
  display: flex;
  gap: 5px;
}
.ev-loading-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-3, #837B6F);
  animation: ev-dot 1.2s ease-in-out infinite;
}
.ev-loading-dots span:nth-child(2) { animation-delay: .2s; }
.ev-loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes ev-dot {
  0%, 80%, 100% { opacity: .2; transform: scale(.8); }
  40%           { opacity: 1;  transform: scale(1); }
}

/* ---- empty state ---- */
.ev-empty {
  text-align: center;
  padding: 80px 0;
}
.ev-empty-icon {
  font-size: 36px;
  color: var(--ink-3, #837B6F);
  margin-bottom: 16px;
}
.ev-empty-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink, #15110D);
  margin-bottom: 8px;
}
.ev-empty-sub {
  font-size: 14px;
  color: var(--ink-3, #837B6F);
}

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .ev-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ev-hero { padding: 52px 0 40px; }
  .ev-grid { grid-template-columns: 1fr; }
}
