/* ==========================================================================
   Qahal Events 1.3 — event status, Watch Live, Next Event widget
   ========================================================================== */

/* ---- status pills -------------------------------------------------------- */
html .qahal .qahal-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	white-space: nowrap;
	color: #ffffff;
	background: #3f3f46;
}
html .qahal .qahal-status--postponed { background: #f59e0b; color: #1a1200; }
html .qahal .qahal-status--rescheduled { background: #2563eb; }
html .qahal .qahal-status--online { background: #6d28d9; }
html .qahal .qahal-status--cancelled { background: #dc2626; }
html .qahal .qahal-status--live { background: #e11d2a; }
html .qahal a.qahal-status--link:hover { opacity: 0.9; color: #ffffff; }

.qahal-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	flex: 0 0 auto;
	animation: qahal-pulse 1.6s ease-in-out infinite;
}
@keyframes qahal-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
	.qahal-live-dot { animation: none; }
}

/* ---- cards --------------------------------------------------------------- */
.qahal-card__badges {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	z-index: 2;
	pointer-events: none;
}
.qahal-card__badges:empty { display: none; }
html .qahal .qahal-card--cancelled .qahal-card__img { filter: grayscale(0.85) brightness(0.7); }
html .qahal .qahal-card--cancelled .qahal-card__title { text-decoration: line-through; text-decoration-thickness: 2px; }

/* ---- featured banner ----------------------------------------------------- */
html .qahal .qahal-featured__status {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 8px;
	order: -1;
}
.qahal-featured__text { display: flex; flex-direction: column; }

/* ---- event page ---------------------------------------------------------- */
html .qahal .qahal-status-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}
html .qahal .qahal-status--preview { background: #e4e4e7; color: #18181b; }
.qahal-status-note {
	border-bottom: 1px solid var(--qahal-line);
	padding: 16px 0;
	background: var(--qahal-surface);
}
.qahal-status-note .qahal-container {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
html .qahal .qahal-status-note p {
	font-size: 15px;
	line-height: 1.5;
	margin-top: 1px;
}
.qahal-status-note p span { display: block; color: var(--qahal-muted); margin-top: 2px; }
.qahal-status-note--cancelled { background: rgba(220, 38, 38, 0.12); }
.qahal-status-note--postponed { background: rgba(245, 158, 11, 0.14); }
.qahal-status-note--online { background: rgba(109, 40, 217, 0.14); }
.qahal-status-note--rescheduled { background: rgba(37, 99, 235, 0.12); }

html .qahal .qahal-btn--live,
html .qahal .qahal-btn--live:hover {
	background: #e11d2a;
	color: #ffffff;
}
html .qahal .qahal-panel .qahal-btn--live { margin-bottom: 12px; }

html .qahal .qahal-skipnote { color: var(--qahal-muted); }

/* ---- Next Event widget / [qahal_next] ----------------------------------- */
.qahal.qahal-next {
	display: grid;
	gap: 28px;
	align-items: center;
	padding: 24px;
	border-radius: var(--qahal-radius);
	background: var(--qahal-bg);
	color: var(--qahal-text);
}
.qahal.qahal-next--banner {
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.qahal.qahal-next--card,
.qahal.qahal-next--compact {
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}
.qahal-next__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: var(--qahal-radius);
	overflow: hidden;
	background: var(--qahal-surface);
	box-shadow: var(--qahal-shadow);
}
html .qahal .qahal-next__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.qahal-next__media:hover .qahal-next__img { transform: scale(1.03); }
.qahal-next__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
}
html .qahal .qahal-next__eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--qahal-muted);
}
html .qahal .qahal-next__title {
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.2px;
}
html .qahal .qahal-next__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
html .qahal .qahal-next__text {
	font-size: 15px;
	line-height: 1.6;
	color: var(--qahal-muted);
}
html .qahal .qahal-next__meta { margin-top: 4px; }
html .qahal .qahal-next__countdown { margin-top: 2px; }
.qahal-next__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}
html .qahal .qahal-next__empty {
	font-size: 16px;
	color: var(--qahal-muted);
}
html .qahal .qahal-next--compact .qahal-next__title { font-size: 22px; }

@media (max-width: 767px) {
	.qahal.qahal-next { padding: 16px; }
	.qahal.qahal-next--banner { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.qahal-next__actions { width: 100%; }
	.qahal-next__actions .qahal-btn { flex: 1 1 100%; }
}
