/* =========================================================
   TIVOLI — promo.css
   "Promocje" page only (enqueued conditionally). Reuses
   .promotions__grid (sections.css) and .promo-card (components.css)
   as-is — this file only adds the lighter grid card (.promo-slot)
   and the small informational notice. No new colors, radii or
   spacing scale introduced here.
   ========================================================= */

/* ---------- Grid card ---------- */
.promo-slot {
	display: flex;
	flex-direction: column;
	background: var(--color-cream-soft);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.promo-slot:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.promo-slot__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--color-green-100);
}

.promo-slot__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.promo-slot__media-empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-green-500);
	opacity: 0.4;
}

.promo-slot__media-empty svg {
	width: 2.25rem;
	height: 2.25rem;
}

.promo-slot__body {
	padding: var(--space-lg);
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	flex: 1;
}

.promo-slot__name {
	font-size: 1.3rem;
	font-weight: 600;
}

.promo-slot__desc {
	color: var(--color-text-muted);
	font-size: 0.98rem;
	line-height: 1.55;
	flex: 1;
}

.promo-slot__conditions {
	font-size: 0.8rem;
	color: var(--color-text-muted);
	opacity: 0.8;
}

.promo-slot .btn {
	margin-top: var(--space-sm);
	align-self: flex-start;
}

/* ---------- Featured promo extras (base .promo-card is shared) ---------- */
/* The shared .promo-card__title (components.css) has no color of its
   own, so it inherits base.css's global "h1..h6 { color: var(--color-ink) }"
   instead of the card's cream — near-unreadable on the dark green
   background. Deliberately fixed HERE, scoped to `.featured-promo`
   (already on this card's wrapper), rather than in the shared
   components.css rule itself — this is a /promocje/-only tweak, not a
   change to the reusable component (out of scope for this deployment,
   left for a separate pass if the component is reused elsewhere later). */
.featured-promo .promo-card__title {
	color: var(--color-cream);
}

.promo-card__price {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.6rem;
	color: var(--color-gold-soft);
}

/* Bullet rules list (e.g. "Druga pizza -50%") — gold checkmarks match
   the CTA/badge accent already used on this card; kept plain-text
   (no nested markup) since tivoli_promotion_cta_label()-style fields
   are always esc_html'd, one rule per array entry. */
.promo-card__rules {
	display: flex;
	flex-direction: column;
	gap: 0.45em;
	font-size: 0.92rem;
	line-height: 1.5;
	color: rgba(247, 242, 228, 0.85);
}

.promo-card__rules li {
	display: flex;
	align-items: flex-start;
	gap: 0.6em;
}

.promo-card__rules li::before {
	content: '✓';
	flex-shrink: 0;
	color: var(--color-gold-soft);
	font-weight: 700;
}

.promo-card__conditions {
	font-size: 0.85rem;
	color: rgba(247, 242, 228, 0.7);
}

/* Featured card with no image (promo-featured.php skips .promo-card__media
   entirely in that case) — collapse the two-column grid from .promo-card
   (sections.css) to a single column instead of leaving an empty pane. */
.promo-card--no-media {
	grid-template-columns: 1fr;
}

/* ---------- Informational notice ---------- */
.promo-notice {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	max-width: var(--container-narrow);
	margin-inline: auto;
	padding: var(--space-lg);
	background: var(--color-cream-soft);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

.promo-notice__body h2 {
	font-size: 1.5rem;
	margin-bottom: 0.3em;
}

.promo-notice__body p {
	color: var(--color-text-muted);
	font-size: 0.98rem;
	line-height: 1.5;
}

@media (max-width: 560px) {
	.promo-notice {
		flex-direction: column;
		text-align: center;
		padding: var(--space-lg) var(--space-md);
	}
}

/* ---------- Empty state (no active promotions) ----------
   Body gets `.promo-empty-state` (see page-promocje.php) only when
   tivoli_get_active_promotions() is empty. Tightens the gap around
   the notice so hero → notice → CTA reads as a deliberately compact
   page rather than a broken/empty one. The closing CTA's own section
   is intentionally left alone — only the space *above* it (the
   notice section's own padding) changes. */
.promo-empty-state .page-hero {
	padding-bottom: var(--space-md);
}

.promo-empty-state .promo-notice-section {
	padding-block: var(--space-lg);
}
