/* =========================================================
   WehFiGo — Listeo Child Theme custom layer
   All custom styles live here (never in style.css).
   Brand tokens below; parent theme styling stays untouched.
   ========================================================= */

:root {
	--wfg-green: #0e7a3d;   /* Jamaica green */
	--wfg-gold: #f5c518;    /* Jamaica gold  */
	--wfg-black: #121212;
	--wfg-white: #ffffff;
	--wfg-radius: 14px;
	--wfg-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	--wfg-z-cta: 9990;
	--wfg-z-bnav: 9980;
}

/* ---------------------------------------------------------
   Section 10 — Sticky "+ Submit Event" CTA
   --------------------------------------------------------- */
.wehfigo-sticky-cta {
	position: fixed;
	right: 20px;
	bottom: 24px;
	z-index: var(--wfg-z-cta);
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.wehfigo-cta-main {
	background: var(--wfg-green);
	color: var(--wfg-white);
	border: none;
	border-radius: 999px;
	padding: 14px 22px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: var(--wfg-shadow);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: transform 0.15s ease, background 0.15s ease;
}

.wehfigo-cta-main:hover,
.wehfigo-cta-main:focus-visible {
	background: #0b6231;
	transform: translateY(-2px);
	outline: 3px solid var(--wfg-gold);
	outline-offset: 2px;
}

.wehfigo-cta-plus {
	background: var(--wfg-gold);
	color: var(--wfg-black);
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	line-height: 1;
}

.wehfigo-cta-options {
	display: none;
	flex-direction: column;
	gap: 8px;
}

.wehfigo-sticky-cta.is-open .wehfigo-cta-options {
	display: flex;
}

.wehfigo-cta-option {
	background: var(--wfg-white);
	color: var(--wfg-black) !important;
	text-decoration: none !important;
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: var(--wfg-shadow);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: transform 0.12s ease;
}

.wehfigo-cta-option:hover {
	transform: translateX(-4px);
}

/* ---------------------------------------------------------
   Mobile bottom navigation (app-style)
   --------------------------------------------------------- */
.wehfigo-bottom-nav {
	display: none;
}

@media (max-width: 991px) {
	.wehfigo-bottom-nav {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: var(--wfg-z-bnav);
		display: flex;
		justify-content: space-around;
		align-items: stretch;
		background: var(--wfg-white);
		border-top: 1px solid rgba(0, 0, 0, 0.08);
		box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
		padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
	}

	.wehfigo-bnav-item {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 2px;
		font-size: 11px;
		font-weight: 600;
		color: #555 !important;
		text-decoration: none !important;
		padding: 4px 0;
		border-radius: 10px;
	}

	.wehfigo-bnav-item.is-active {
		color: var(--wfg-green) !important;
		background: rgba(14, 122, 61, 0.08);
	}

	.wehfigo-bnav-ico {
		font-size: 18px;
		line-height: 1;
	}

	/* Lift sticky CTA above the bottom nav on mobile. */
	.wehfigo-sticky-cta {
		bottom: 84px;
	}

	/* Prevent content being hidden behind the bottom nav. */
	body {
		padding-bottom: 72px;
	}
}

/* ---------------------------------------------------------
   Section 2 — Trending This Weekend (horizontal scroll cards)
   Used by [wehfigo_trending] and [wehfigo_events]
   --------------------------------------------------------- */
.wehfigo-event-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
}

.wehfigo-event-cards.is-horizontal {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 16px;
	padding-bottom: 12px;
	-webkit-overflow-scrolling: touch;
}

.wehfigo-event-cards.is-horizontal .wehfigo-event-card {
	flex: 0 0 260px;
	scroll-snap-align: start;
}

.wehfigo-event-card {
	display: block;
	background: var(--wfg-white);
	border-radius: var(--wfg-radius);
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	text-decoration: none !important;
	color: inherit !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wehfigo-event-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wfg-shadow);
}

.wehfigo-card-flyer img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.wehfigo-card-body {
	padding: 14px 16px 16px;
}

.wehfigo-card-date {
	color: var(--wfg-green);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.wehfigo-card-title {
	font-size: 16px;
	margin: 6px 0 10px;
	line-height: 1.3;
}

.wehfigo-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 12px;
	color: #666;
	align-items: center;
}

.wehfigo-card-price {
	margin-left: auto;
	background: var(--wfg-gold);
	color: var(--wfg-black);
	font-weight: 800;
	padding: 3px 10px;
	border-radius: 999px;
}

.wehfigo-no-events {
	text-align: center;
	color: #777;
	padding: 24px 0;
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
	.wehfigo-cta-main,
	.wehfigo-cta-option,
	.wehfigo-event-card {
		transition: none;
	}
}
