/* 11.0.3 - live highlight on session cards: TODAY tag, "next game" glow, STARTS SOON chip.
   Own file so an edited booking slot can't drop it. The classes are switched by assets/js/live.js in the
   visitor's browser, so it stays correct on cached pages. Brand colours: gold, green, white. */

/* TODAY tag */
.zbs-today-pill {
	display: none;
	background: #53A318; color: #fff;
	font-family: var(--zbs-font-heading); font-size: 11px; font-weight: 800;
	letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
	padding: 4px 10px; border-radius: 999px;
}
.zbs-item.zbs-is-today .zbs-today-pill { display: inline-block; }

/* A session whose start time passed while the page sat in the browser or a cache */
.zbs-item.zbs-live-gone { display: none !important; }

/* Status chip, sits just above the buttons */
.zbs-live-chip { display: none; }
.zbs-item.zbs-nextup .zbs-live-chip {
	display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
	margin: auto 0 10px;
	font-family: var(--zbs-font-heading); font-size: 12px; font-weight: 800; line-height: 1.2;
	letter-spacing: .08em; text-transform: uppercase; color: var(--zbs-text);
}
.zbs-item.zbs-nextup.is-soon .zbs-live-chip { color: var(--zbs-gold-light, #e8c04a); }
.zbs-item.zbs-nextup .zbs-live-chip + * { margin-top: 0; }
.zbs-live-chip::before {
	content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
	background: #53A318; box-shadow: 0 0 0 0 rgba(83, 163, 24, .6);
	animation: zbs-dot 1.6s ease-out infinite;
}
@keyframes zbs-dot { to { box-shadow: 0 0 0 9px rgba(83, 163, 24, 0); } }

/* Glowing border: a slow gold / green / white sweep around the card edge, plus a soft pulse */
@property --zbs-glow-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.zbs-item.zbs-nextup { animation: zbs-pulse-soft 3.2s ease-in-out infinite; }
.zbs-item.zbs-nextup.is-soon { animation: zbs-pulse 2s ease-in-out infinite; }
.zbs-item.zbs-nextup::after {
	content: ""; position: absolute; inset: 0; z-index: 4; padding: 2px;
	border-radius: inherit; pointer-events: none;
	background: conic-gradient(from var(--zbs-glow-a, 0deg), #d4a017, #53a318, #f5f2e8, #53a318, #d4a017);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	animation: zbs-spin 8s linear infinite;
}
.zbs-item.zbs-nextup.is-soon::after { animation-duration: 5s; }
@keyframes zbs-spin { to { --zbs-glow-a: 360deg; } }
@keyframes zbs-pulse      { 0%, 100% { box-shadow: 0 0 0 0 rgba(212,160,23,0); } 50% { box-shadow: 0 0 24px 2px rgba(212,160,23,.5); } }
@keyframes zbs-pulse-soft { 0%, 100% { box-shadow: 0 0 0 0 rgba(212,160,23,0); } 50% { box-shadow: 0 0 18px 1px rgba(212,160,23,.28); } }

/* Reduced motion: keep the highlight, drop the movement. The text label carries the meaning. */
@media (prefers-reduced-motion: reduce) {
	.zbs-item.zbs-nextup, .zbs-item.zbs-nextup.is-soon, .zbs-item.zbs-nextup::after, .zbs-live-chip::before { animation: none; }
	.zbs-item.zbs-nextup { box-shadow: 0 0 16px rgba(212,160,23,.32); }
}
