/*
  Event Hub — countdown (Faza 2) + homepage "next event" module (Faza 2.4).
  Reuses existing premium primitives (.glass, .split, .ac-cover, .btn-gold
  gradient, .status-pill language, --navy/--gold tokens, var(--serif)/
  var(--sans)) wherever possible; only the shapes below are genuinely new.
*/

/* Homepage module: .ac-cover has no radius of its own outside its usual
   .acard parent (which clips via overflow:hidden) — apply it directly here. */
.ev-feature-cover{
  border-radius:16px;
  overflow:hidden;
}
.ev-feature-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.ev-countdown{
  position:relative;
  background:linear-gradient(160deg,var(--navy-800),var(--navy-700));
  border:1px solid var(--line);
  border-radius:14px;
  padding:40px 32px;
  text-align:center;
  overflow:hidden;
  margin-bottom:40px;
  transition:border-color .5s,box-shadow .5s;
}
.ev-countdown--soon{
  border-color:var(--gold);
  box-shadow:0 0 0 1px rgba(201,162,39,.25),0 20px 60px -30px rgba(201,162,39,.5);
}

.ev-countdown__badge{
  position:absolute;
  top:18px;
  right:18px;
  display:inline-flex;
  align-items:center;
  padding:6px 14px;
  border-radius:999px;
  background:var(--gold-grad);
  color:#1a1405;
  font-family:var(--sans);
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.ev-countdown__lead{
  font-family:var(--sans);
  font-size:13px;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:20px;
}

.ev-countdown__tiles{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  max-width:520px;
  margin:0 auto;
}
.ev-countdown__tiles--days-only{
  grid-template-columns:minmax(120px,220px);
}

.ev-countdown__tile{
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:18px 8px;
  border-radius:10px;
  background:var(--glass);
  border:1px solid var(--line-soft);
}
.ev-countdown__tile .n{
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(28px,4vw,42px);
  line-height:1;
  color:var(--gold-soft);
  font-variant-numeric:tabular-nums;
}
.ev-countdown__tile .l{
  margin-top:8px;
  font-size:11px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
}
.ev-countdown__tile--seconds .n{
  animation:ev-countdown-pulse 2.2s ease-in-out infinite;
}
@keyframes ev-countdown-pulse{
  0%,100%{opacity:1}
  50%{opacity:.72}
}

.ev-countdown__status{
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(22px,3vw,28px);
  color:#fff;
}
.ev-countdown__thanks{
  margin-top:8px;
  color:var(--muted);
  font-size:15px;
}

.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}

@media(max-width:1080px){
  .ev-countdown{padding:32px 24px}
  .ev-countdown__tiles{gap:12px}
}
@media(max-width:760px){
  .ev-countdown{padding:24px 20px}
  .ev-countdown__tile{padding:14px 6px}
  .ev-countdown__badge{position:static;display:inline-flex;margin-bottom:14px}
  .ev-countdown__tiles{grid-template-columns:repeat(2,1fr)}
  .ev-countdown__tiles--days-only{grid-template-columns:minmax(120px,200px);margin:0 auto}
  /* Homepage teaser only — the event detail page keeps the taller 16:10
     crop; on a narrow screen this module is one of several on the page,
     not the page's whole purpose, so its image can be shorter. */
  .ev-feature-cover{aspect-ratio:16/8}
}

@media(prefers-reduced-motion:reduce){
  .ev-countdown__tile--seconds .n{animation:none}
}
