/**
 * GCA Artist Grid
 *
 * Palette sampled pixel-by-pixel from the Gulf Coast Artists badge in the site
 * header: the sky gradient down the middle of the roundel, the sun, the palm
 * silhouettes and the outer ring.
 */

.gca-ag {
	/* Badge sky, top of the roundel down to the waterline. */
	--gca-sky-top: #8af1f7;
	--gca-sky-high: #7ce6f3;
	--gca-sky-mid: #5bcde7;
	--gca-sky-low: #1da8d7;
	--gca-sky-deep: #0e5e89;

	/* Badge sun and palms. */
	--gca-sun-gold: #fdcd00;
	--gca-sun-orange: #ed9107;
	--gca-palm: #072742;

	--gca-navy-deep: #0e3550;
	--gca-navy: #1b5e83;
	--gca-teal: #41abd3;
	--gca-teal-light: #7fd0ec;
	--gca-ink: #143a52;
	--gca-muted: #5c7f95;
	--gca-wash: #eaf6fc;
	--gca-surface: #fff;
	--gca-radius: 20px;
	--gca-ease: cubic-bezier(0.22, 0.68, 0.32, 1);

	/* Sized off the portrait so the sun stays concentric with it. */
	--gca-portrait: 140px;
	--gca-portrait-drop: 46px;
	--gca-sun: 196px;
}

/* ---------------------------------------------------------------- layout -- */

.gca-ag__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
	gap: 30px;
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

/* The theme clearfixes .dokan-seller-wrap with content:" ";display:table, which
 * in a grid container becomes two anonymous grid items and leaves a hole in the
 * first cell. Kill the generated content outright, not just its display. */
.gca-ag .dokan-seller-wrap::before,
.gca-ag .dokan-seller-wrap::after {
	content: none !important;
	display: none !important;
}

/* Dokan ships a float/percentage grid on .coloum-N, and the theme reinforces it
 * from a stylesheet we cannot outrank by specificity alone — hence !important on
 * the four layout properties only. */
.gca-ag .dokan-seller-wrap li.gca-ag__item,
.gca-ag .dokan-seller-wrap li.gca-ag__item.coloum-2,
.gca-ag .dokan-seller-wrap li.gca-ag__item.coloum-3,
.gca-ag .dokan-seller-wrap li.gca-ag__item.coloum-4 {
	display: flex;
	float: none !important;
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0;
	list-style: none;
	border: 0;
	background: none;
}

/* ------------------------------------------------------------------ card -- */

/* The card fills its <li>, which is itself a flex container stretched by the
 * grid row — a percentage height here cannot resolve against an auto-sized row
 * and collapses the body to nothing. */
.gca-ag .gca-card {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid rgba(27, 94, 131, 0.1);
	border-radius: var(--gca-radius);
	background: var(--gca-surface);
	box-shadow: 0 2px 4px rgba(14, 53, 80, 0.04), 0 12px 28px -18px rgba(14, 53, 80, 0.45);
	transition: transform 0.45s var(--gca-ease), box-shadow 0.45s var(--gca-ease), border-color 0.45s var(--gca-ease);
}

.gca-ag .gca-card:hover,
.gca-ag .gca-card:focus-within {
	transform: translateY(-6px);
	border-color: rgba(65, 171, 211, 0.35);
	box-shadow: 0 4px 8px rgba(14, 53, 80, 0.06), 0 28px 50px -22px rgba(14, 53, 80, 0.5);
}

/* ---------------------------------------------------------------- header -- */

.gca-card__header {
	position: relative;
	height: 172px;
}

/* Everything but the portrait lives in here, so the sun sets behind the
 * waterline instead of spilling over the card body. */
.gca-card__scene {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: linear-gradient(
		180deg,
		var(--gca-sky-top) 0%,
		var(--gca-sky-high) 20%,
		var(--gca-sky-mid) 44%,
		var(--gca-sky-low) 72%,
		var(--gca-sky-deep) 100%
	);
	background-size: 100% 130%;
	background-position: 50% 0%;
	transition: background-position 1s var(--gca-ease);
	pointer-events: none;
}

.gca-card:hover .gca-card__scene,
.gca-card:focus-within .gca-card__scene {
	background-position: 50% 100%;
}

/* The badge's sun, concentric with the portrait so an even crescent of it
 * shows around the artist. */
.gca-card__sun {
	position: absolute;
	left: 50%;
	/* Concentric with the portrait: the portrait's centre sits
	 * (portrait/2 - drop) above the header foot, so the sun's foot is that
	 * minus its own radius. With the shipped values: 70 - 46 - 98 = -74px. */
	bottom: calc((var(--gca-portrait) - var(--gca-sun)) / 2 - var(--gca-portrait-drop));
	width: var(--gca-sun);
	height: var(--gca-sun);
	margin-left: calc(var(--gca-sun) / -2);
	border-radius: 50%;
	/* The badge's sun is a hard-edged disc with a vertical orange-to-gold ramp,
	 * sampled down its centre: #ef9606 at the crown through #f5ad03 and #f8bb01
	 * to #fdcd00 at the waterline. Only the top ~40% of our disc clears the
	 * portrait and the wave, so the ramp is compressed into that band —
	 * spreading it over the full circle would show orange and never reach gold.
	 * Solid colour throughout: warm hues at low alpha over the cyan sky blend
	 * to olive, which is what made the earlier pass look muddy. */
	background: linear-gradient(
		180deg,
		var(--gca-sun-orange) 0%,
		#f19f05 14%,
		#f5ad03 24%,
		#f8bb01 33%,
		#fbc501 40%,
		var(--gca-sun-gold) 47%,
		var(--gca-sun-gold) 100%
	);
	/* Softened with a mask rather than by lowering the gradient's alpha: the
	 * colour ramp stays true and only the outer rim blends into the sky, so the
	 * disc reads as a sun behind the artist instead of a hard orange ring. */
	-webkit-mask-image: radial-gradient(circle at 50% 50%, #000 72%, rgba(0, 0, 0, 0.72) 86%, transparent 100%);
	mask-image: radial-gradient(circle at 50% 50%, #000 72%, rgba(0, 0, 0, 0.72) 86%, transparent 100%);
	opacity: 0.8;
	transition: opacity 0.7s var(--gca-ease), transform 0.7s var(--gca-ease);
}

.gca-card:hover .gca-card__sun,
.gca-card:focus-within .gca-card__sun {
	opacity: 0.92;
	transform: scale(1.03);
}

/* Two palms on each side, matching the badge's pair-per-island.
 * The white front wave's top edge sits 12.2-18.5px above the header foot across
 * the strips these clusters occupy (and never lower than 10.7px anywhere), so a
 * 6px offset guarantees the islands rise out from behind the white rather than
 * floating on top of it, at any card width. */
.gca-card__palms {
	position: absolute;
	bottom: 6px;
	width: 98px;
	height: 118px;
	fill: var(--gca-palm);
	opacity: 0.85;
	transform-origin: 50% 100%;
	transition: transform 0.9s var(--gca-ease), opacity 0.6s var(--gca-ease);
}

.gca-card__palms--left {
	left: 2px;
}

.gca-card__palms--right {
	right: 2px;
	transform: scaleX(-1);
}

.gca-card:hover .gca-card__palms--left,
.gca-card:focus-within .gca-card__palms--left {
	transform: rotate(-2deg);
}

.gca-card:hover .gca-card__palms--right,
.gca-card:focus-within .gca-card__palms--right {
	transform: scaleX(-1) rotate(-2deg);
}

/* Gulls, up in the pale part of the sky and clear of the sun's crown. */
.gca-card__birds {
	position: absolute;
	/* Threaded between the Featured pill (top left) and the follow button
	 * (top right), and just clear of the sun's crown below. */
	top: 10px;
	left: 31%;
	width: 58px;
	height: 40px;
	fill: var(--gca-palm);
	opacity: 0.72;
	transition: transform 1.2s var(--gca-ease), opacity 0.6s var(--gca-ease);
}

.gca-card:hover .gca-card__birds,
.gca-card:focus-within .gca-card__birds {
	opacity: 0.85;
	transform: translate(6px, -3px);
}

/* Sprite host — present in the DOM, never seen. */
.gca-ag__sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

/* Wave divider — the waterline the sun sets into. */
.gca-card__wave {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 46px;
	display: block;
}

.gca-card__wave-back {
	fill: rgba(255, 255, 255, 0.35);
	transform: translateX(0);
	transition: transform 1.1s var(--gca-ease);
}

.gca-card__wave-front {
	fill: var(--gca-surface);
}

.gca-card:hover .gca-card__wave-back,
.gca-card:focus-within .gca-card__wave-back {
	transform: translateX(-14px);
}

.gca-card__badges {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 3;
	display: flex;
	gap: 6px;
	align-items: center;
}

.gca-ag .gca-card__ribbon {
	display: inline-block;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--gca-palm);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	line-height: 1.5;
}

/* Interactive controls (Dokan Pro follow button) ride above the card-wide link. */
.gca-card__actions {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 6;
	display: flex;
	gap: 6px;
	align-items: center;
}

/* The sky is pale at the top of the card, so these read as dark-on-light. */
.gca-ag .gca-card__actions .dokan-btn,
.gca-ag .gca-card__actions .dokan-follow-store-button {
	min-width: 0;
	height: auto;
	padding: 5px 13px;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: var(--gca-palm);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.6;
	box-shadow: none;
	transition: background-color 0.35s var(--gca-ease), border-color 0.35s var(--gca-ease), transform 0.35s var(--gca-ease);
}

.gca-ag .gca-card__actions .dokan-btn:hover,
.gca-ag .gca-card__actions .dokan-follow-store-button:hover {
	background: rgba(255, 255, 255, 0.92);
	border-color: #fff;
	color: var(--gca-navy);
	transform: translateY(-1px);
}

/* --------------------------------------------------------------- portrait -- */

.gca-card__portrait {
	position: absolute;
	bottom: calc(var(--gca-portrait-drop) * -1);
	left: 50%;
	z-index: 2;
	width: var(--gca-portrait);
	height: var(--gca-portrait);
	transform: translateX(-50%);
	border-radius: 50%;
	background: var(--gca-surface);
	box-shadow: 0 0 0 5px var(--gca-surface), 0 10px 22px -10px rgba(14, 53, 80, 0.65);
	transition: transform 0.45s var(--gca-ease), box-shadow 0.45s var(--gca-ease);
	overflow: hidden;
}

.gca-card:hover .gca-card__portrait,
.gca-card:focus-within .gca-card__portrait {
	transform: translateX(-50%) translateY(-4px) scale(1.05);
	box-shadow: 0 0 0 5px var(--gca-surface), 0 16px 28px -12px rgba(14, 53, 80, 0.7);
}

.gca-ag .gca-card__portrait-img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	transition: transform 0.6s var(--gca-ease);
}

.gca-card:hover .gca-card__portrait-img {
	transform: scale(1.06);
}

.gca-card__monogram {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: linear-gradient(160deg, var(--gca-sky-deep) 0%, var(--gca-sky-low) 55%, var(--gca-sky-mid) 100%);
	color: #fff;
	font-size: 42px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

/* ------------------------------------------------------------------ body -- */

.gca-card__body {
	flex: 1 1 auto;
	/* Clears the portrait, which hangs --gca-portrait-drop below the header. */
	padding: calc(var(--gca-portrait-drop) + 18px) 24px 18px;
	text-align: center;
}

.gca-ag .gca-card__store {
	margin: 0 0 2px;
	font-size: 19px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--gca-ink);
}

.gca-ag .gca-card__store a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(var(--gca-teal), var(--gca-teal));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 2px;
	transition: background-size 0.4s var(--gca-ease), color 0.3s var(--gca-ease);
}

.gca-ag .gca-card__store a:hover,
.gca-ag .gca-card__store a:focus-visible {
	color: var(--gca-navy);
	background-size: 100% 2px;
}

/* Whole card is the click target; the store-name link supplies the accessible name. */
.gca-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 4;
}

.gca-ag .gca-card__artist {
	margin: 0 0 12px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--gca-muted);
	letter-spacing: 0.01em;
}

.gca-ag .gca-card__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

/* Keep chips at their natural width — overflow:hidden would otherwise let them
 * shrink as flex items and ellipsise even short labels. Only genuinely long
 * category names (e.g. "Siesta Key Lifeguard Stands") get truncated. */
.gca-ag .gca-card__chip {
	display: inline-block;
	flex: 0 0 auto;
	/* The theme sizes bare <li> at a percentage width, which clips these to a
	 * third of the row and ellipsises even two-word labels. */
	width: auto !important;
	max-width: 100%;
	margin: 0;
	padding: 4px 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border-radius: 999px;
	background: var(--gca-wash);
	color: var(--gca-navy);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	line-height: 1.6;
	list-style: none;
	transition: background-color 0.35s var(--gca-ease), color 0.35s var(--gca-ease);
}

.gca-card:hover .gca-card__chip {
	background: rgba(65, 171, 211, 0.18);
}

.gca-ag .gca-card__chip--place {
	background: transparent;
	border: 1px solid rgba(27, 94, 131, 0.22);
	color: var(--gca-muted);
}

.gca-ag .gca-card__bio {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	font-size: 14.5px;
	line-height: 1.65;
	color: #4d6d80;
	text-align: left;
}

.gca-ag .gca-card__bio--empty {
	color: #8aa4b4;
	font-style: italic;
}

.gca-ag .gca-card__rating {
	margin-top: 12px;
}

/* ---------------------------------------------------------------- footer -- */

.gca-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 24px 18px;
	margin-top: auto;
	border-top: 1px solid rgba(27, 94, 131, 0.1);
}

.gca-card__count {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--gca-muted);
}

.gca-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--gca-navy);
	transition: color 0.35s var(--gca-ease);
}

.gca-card:hover .gca-card__cta,
.gca-card:focus-within .gca-card__cta {
	color: var(--gca-teal);
}

.gca-card__arrow {
	width: 17px;
	height: 17px;
	transition: transform 0.4s var(--gca-ease);
}

.gca-card:hover .gca-card__arrow,
.gca-card:focus-within .gca-card__arrow {
	transform: translateX(5px);
}

.gca-card__link:focus-visible::after {
	outline: 3px solid var(--gca-teal);
	outline-offset: 3px;
	border-radius: var(--gca-radius);
}

/* ---------------------------------------------------------- scroll reveal -- */

.gca-ag__item {
	opacity: 0;
	transform: translateY(22px);
}

.gca-ag__item.is-revealed {
	opacity: 1;
	transform: none;
	transition: opacity 0.65s var(--gca-ease), transform 0.65s var(--gca-ease);
	transition-delay: calc(var(--gca-i, 0) * 65ms);
}

/* JS absent or blocked: never leave the grid invisible. */
.no-js .gca-ag__item {
	opacity: 1;
	transform: none;
}

/* ------------------------------------------------------------- list view -- */

/* Dokan's grid/list toggle swaps this class on the wrapper. */
.gca-ag.list-view .gca-ag__grid {
	grid-template-columns: 1fr;
	max-width: 720px;
}

/* -------------------------------------------------------------- filter bar -- */

#dokan-store-listing-filter-wrap {
	margin-bottom: 26px;
}

/* ------------------------------------------------------------ page width -- */

/* The Elementor section is full-bleed, so without this the roster runs to the
 * full width of the monitor. Dokan's filter bar is a *sibling* of our grid
 * rather than a child, so both are capped here or they end up different widths;
 * that is also why --gca-ag-max lives on :root and not on .gca-ag. Matches the
 * 1200px cap in gca-marketplace. */
:root {
	--gca-ag-max: 1200px;
}

/* Qualified by id: Dokan sets its own margins on #dokan-seller-listing-wrap,
 * and an id selector outranks a plain .gca-ag class, so the grid keeps Dokan's
 * left offset and never centres. */
#dokan-seller-listing-wrap.gca-ag,
#dokan-store-listing-filter-wrap {
	max-width: var(--gca-ag-max);
	margin-inline: auto;
}

/* --------------------------------------------------- infinite scroll / more -- */

.gca-ag__more {
	display: flex;
	justify-content: center;
	margin: 8px 0 4px;
}

.gca-ag__more[hidden] {
	display: none;
}

.gca-ag .gca-ag__more-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 28px;
	border: 1px solid rgba(27, 94, 131, 0.25);
	border-radius: 999px;
	background: var(--gca-surface);
	color: var(--gca-navy);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 8px 20px -14px rgba(14, 53, 80, 0.7);
	transition: background-color 0.35s var(--gca-ease), color 0.35s var(--gca-ease),
		border-color 0.35s var(--gca-ease), transform 0.35s var(--gca-ease);
}

.gca-ag .gca-ag__more-btn:hover:not([disabled]),
.gca-ag .gca-ag__more-btn:focus-visible {
	background: linear-gradient(120deg, var(--gca-navy) 0%, var(--gca-teal) 100%);
	border-color: transparent;
	color: #fff;
	transform: translateY(-2px);
}

.gca-ag .gca-ag__more-btn[disabled] {
	cursor: default;
	opacity: 0.75;
}

.gca-ag__spinner {
	display: none;
	width: 15px;
	height: 15px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: gca-spin 0.7s linear infinite;
}

.gca-ag__more-btn.is-loading .gca-ag__spinner {
	display: block;
}

@keyframes gca-spin {
	to {
		transform: rotate(360deg);
	}
}

.gca-ag__status {
	margin: 6px 0 0;
	text-align: center;
	font-size: 12.5px;
	color: var(--gca-muted);
	min-height: 1.2em;
}

.gca-ag__end {
	margin: 10px 0 0;
	text-align: center;
	font-size: 13px;
	font-style: italic;
	color: var(--gca-muted);
}

.gca-ag__end[hidden] {
	display: none;
}

/* ------------------------------------------------------------ pagination -- */

.gca-ag .pagination-container {
	margin-top: 8px;
}

.gca-ag .pagination li a,
.gca-ag .pagination li span {
	border-radius: 10px;
	transition: background-color 0.3s var(--gca-ease), color 0.3s var(--gca-ease);
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 782px) {
	.gca-ag__grid {
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
		gap: 22px;
	}
}

@media (max-width: 480px) {
	.gca-ag__grid {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------- reduced motion -- */

@media (prefers-reduced-motion: reduce) {
	.gca-ag *,
	.gca-ag *::before,
	.gca-ag *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}

	.gca-ag__item {
		opacity: 1;
		transform: none;
	}

	.gca-ag .gca-card:hover,
	.gca-ag .gca-card:focus-within {
		transform: none;
	}

	.gca-card:hover .gca-card__portrait,
	.gca-card:focus-within .gca-card__portrait {
		transform: translateX(-50%);
	}

	.gca-card:hover .gca-card__sun,
	.gca-card:focus-within .gca-card__sun {
		transform: none;
	}

	.gca-card:hover .gca-card__palms--left,
	.gca-card:focus-within .gca-card__palms--left {
		transform: none;
	}

	.gca-card:hover .gca-card__palms--right,
	.gca-card:focus-within .gca-card__palms--right {
		transform: scaleX(-1);
	}

	.gca-card:hover .gca-card__birds,
	.gca-card:focus-within .gca-card__birds {
		transform: none;
	}
}
