/* ═══════════════════════════════════════════════════
   AktivBalaton – Visszaszámláló Widget CSS (v2.39.1)
   Poszter-kártya: borítókép + sötét scrim + fehér szöveg,
   kiegyensúlyozott kategória-színű dátum-badge (nap + hónap),
   AB tipográfia (Cormorant Garamond + DM Sans),
   LIVE-pont, sürgősségi narancs pill, hover-lift.
   Kép nélkül: navy gradiens fallback.
   ═══════════════════════════════════════════════════ */

#abe-cw,
#abe-cw * {
  box-sizing: border-box;
}

#abe-cw {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-width: 100%;
  /* AB márka-tokenek */
  --abe-navy:   #1B2D3F;
  --abe-blue:   #1A6EA3;
  --abe-orange: #E8943A;
  --abe-muted:  #64788C;
  --abe-line:   #E4EAF0;
}

/* ── Szekció cím ─────────────────────────────────── */
#abe-cw .abe-cw-title {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--abe-navy);
  margin: 0 0 12px 0;
  padding: 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 9px;
}

/* LIVE-pont a "Jelenlegi események" mellé – pulzál, ha most futó esemény van */
#abe-cw .abe-cw-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #E5484D;
  flex-shrink: 0;
  animation: abe-cw-pulse 1.8s ease-out infinite;
}
@keyframes abe-cw-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); }
}
@media (prefers-reduced-motion: reduce) {
  #abe-cw .abe-cw-live { animation: none; }
}

/* ── "Nincs esemény" doboz – halvány kék, márkás ──── */
#abe-cw .abe-cw-empty {
  display: block;
  background: #EAF1F6;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--abe-blue);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 20px 0;
}

/* ── "Következik" sor + visszaszámláló pill ───────── */
#abe-cw .abe-cw-next-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px 0;
  padding: 0;
}

#abe-cw .abe-cw-pill {
  background: var(--abe-navy);
  color: #fff;
  border-radius: 99px;
  padding: 5px 16px;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 130px;
  text-align: center;
  transition: background-color 0.35s ease;
}

/* Sürgősség: < 1 óra a kezdésig → narancs */
#abe-cw .abe-cw-pill--urgent {
  background: var(--abe-orange);
}

/* ── Poszter-kártya ───────────────────────────────── */
#abe-cw .abe-cw-card-wrap {
  --abe-cat: var(--abe-blue);          /* JS felülírja a kategória színével */
  position: relative;
  border-radius: 14px;
  margin: 0 0 12px 0;
  overflow: hidden;
  /* kép nélküli fallback: navy gradiens */
  background: linear-gradient(135deg, #24384C 0%, #16232F 100%);
  box-shadow: 0 2px 6px rgba(27, 45, 63, 0.10);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#abe-cw .abe-cw-card-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(27, 45, 63, 0.22);
}

/* Borítókép réteg */
#abe-cw .abe-cw-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
#abe-cw .abe-cw-card-wrap:hover .abe-cw-card-media {
  transform: scale(1.05);
}

/* Sötét átmenet a szöveg olvashatóságáért.
   Célzott: a plakát felső ~55%-a szinte érintetlen (üt), az alsó szöveg-zóna
   viszont majdnem tömör navy → a szöveg busy poszteren is garantáltan olvasható. */
#abe-cw .abe-cw-card-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(11, 21, 31, 0) 0%,
    rgba(11, 21, 31, 0.10) 38%,
    rgba(11, 21, 31, 0.55) 60%,
    rgba(11, 21, 31, 0.85) 78%,
    rgba(11, 21, 31, 0.96) 100%
  );
}

#abe-cw .abe-cw-card-link {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 158px;
  padding: 0;
  text-decoration: none;
  color: #fff;
}
#abe-cw .abe-cw-card-link:hover,
#abe-cw .abe-cw-card-link:visited,
#abe-cw .abe-cw-card-link:active {
  color: #fff;
  text-decoration: none;
}

/* Dátum-badge – kiegyensúlyozott nap + hónap, kategória-szín */
#abe-cw .abe-cw-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: var(--abe-cat);
  color: #fff;
  border-radius: 11px;
  padding: 7px 11px 8px;
  text-align: center;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}
#abe-cw .abe-cw-card-day {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
#abe-cw .abe-cw-card-month {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 3px;
  opacity: 0.95;
}

/* Szöveges tartalom – alulra igazítva, fehér, finom árnyékkal */
#abe-cw .abe-cw-card-content {
  padding: 16px 16px 15px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
}

#abe-cw .abe-cw-card-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 5px 0;
  padding: 0;
}

#abe-cw .abe-cw-card-name {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 6px 0;
  padding: 0;
}

#abe-cw .abe-cw-card-venue {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  padding: 0;
  margin: 0;
}

#abe-cw .abe-cw-msg {
  font-size: 13px;
  color: #718096;
  padding: 8px 0;
}
