/**
 * Gigsplay Guides — front-end styles.
 *
 * Every selector is scoped under this plugin's own section classes
 * (all prefixed "gigsplay-guides-") so nothing here touches theme
 * markup or other plugins' styles. Typography is inherited from the
 * active theme; no font-family is declared here.
 */

/* ---------------------------------------------------------------------
 * Shared tokens
 * ------------------------------------------------------------------- */

.gigsplay-guides-hero,
.gigsplay-guides-categories,
.gigsplay-guides-editor-picks,
.gigsplay-guides-trending {
	--gigsplay-panel-bg: #14171d;
	--gigsplay-border: #262b33;
	--gigsplay-text: #f4f5f7;
	--gigsplay-text-muted: #98a1ad;
	--gigsplay-accent: #6c8cff;
	--gigsplay-radius: 10px;
	--gigsplay-gap: 10px;
	--gigsplay-content-width: 1200px;

	box-sizing: border-box;
}

.gigsplay-guides-hero *,
.gigsplay-guides-categories *,
.gigsplay-guides-editor-picks *,
.gigsplay-guides-trending * {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------- */

.gigsplay-guides-hero {
	position: relative;
	overflow: hidden;
	color: var(--gigsplay-text);
	padding: 12px 24px;
	text-align: center;
	background: #0c0e12;
}

/* Decorative, data-free backdrop standing in for the mockup's
 * blurred photo background — layered soft-focus color blobs. */
.gigsplay-guides-hero__backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(38% 70% at 8% 30%, rgba(108, 140, 255, 0.22), transparent 70%),
		radial-gradient(28% 65% at 92% 15%, rgba(255, 120, 170, 0.16), transparent 70%),
		linear-gradient(180deg, #14171d 0%, #0a0c10 100%);
	filter: blur(2px);
}

.gigsplay-guides-hero__backdrop::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(8, 9, 12, 0.5);
}

.gigsplay-guides-hero__inner {
	position: relative;
	z-index: 1;
}

.gigsplay-guides-hero__title {
	max-width: var(--gigsplay-content-width);
	margin: 0 auto 6px;
	color: #f4f5f7 !important;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.gigsplay-guides-hero__description {
	max-width: 680px;
	margin: 0 auto 12px;
	color: #98a1ad !important;
	font-size: 0.8rem;
	line-height: 1.3;
}

.gigsplay-guides-hero__search {
	display: flex;
	align-items: center;
	max-width: 440px;
	margin: 0 auto;
	background: #2b2f37 !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 3px 3px 3px 18px;
}

.gigsplay-guides-hero__search input[type="search"] {
	flex: 1;
	width: auto;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #f4f5f7 !important;
	font-size: 0.82rem;
	line-height: 1.4;
	outline: none;
	padding: 7px 0;
	margin: 0;
}

.gigsplay-guides-hero__search input[type="search"]::placeholder {
	color: #98a1ad !important;
}

.gigsplay-guides-hero__search-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex-shrink: 0;
	background: #f4f5f7 !important;
	color: #14171d !important;
	border: none !important;
	border-radius: 50% !important;
	padding: 0 !important;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.gigsplay-guides-hero__search-icon {
	width: 12px;
	height: 12px;
	border: 2px solid currentColor;
	border-radius: 50%;
	position: relative;
}

.gigsplay-guides-hero__search-icon::after {
	content: "";
	position: absolute;
	width: 2px;
	height: 6px;
	background: currentColor;
	transform: rotate(45deg);
	top: 11px;
	left: 11px;
}

.gigsplay-guides-hero__search-button:hover {
	background: #fff;
}

.gigsplay-guides-hero__search-button:focus-visible {
	outline: 2px solid var(--gigsplay-accent);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------------
 * Guide Categories
 * ------------------------------------------------------------------- */

.gigsplay-guides-categories {
	background: #fff;
	padding: 14px 24px 20px;
}

.gigsplay-guides-categories__title {
	max-width: var(--gigsplay-content-width);
	margin: 0 auto 12px;
	font-size: 0.85rem;
	font-weight: 800;
	color: #14171d !important;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.gigsplay-guides-categories__grid {
	max-width: var(--gigsplay-content-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--gigsplay-gap);
}

.gigsplay-guides-category-card {
	border-radius: var(--gigsplay-radius) !important;
	overflow: hidden;
	background: var(--gigsplay-panel-bg) !important;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gigsplay-guides-category-card:hover,
.gigsplay-guides-category-card:has(.gigsplay-guides-category-card__link:focus-visible) {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
	transform: translateY(-2px);
}

.gigsplay-guides-category-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: #f4f5f7 !important;
	text-decoration: none !important;
}

.gigsplay-guides-category-card__link:focus-visible {
	outline: 2px solid var(--gigsplay-accent);
	outline-offset: -2px;
}

.gigsplay-guides-category-card__media {
	position: relative;
}

.gigsplay-guides-category-card__image {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

/* Data-free stand-in for a per-category icon: first letter of the
 * category name on a colored circle, straddling the image/body seam. */
.gigsplay-guides-category-card__icon {
	position: absolute;
	left: 12px;
	bottom: -14px;
	width: 30px;
	height: 30px;
	border-radius: 50% !important;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff !important;
	font-weight: 800;
	font-size: 0.78rem;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.gigsplay-guides-category-card__body {
	padding: 18px 12px 0;
	flex-grow: 1;
}

.gigsplay-guides-category-card__name {
	margin: 0 0 2px;
	color: #f4f5f7 !important;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.2;
}

.gigsplay-guides-category-card__description {
	margin: 0;
	color: #98a1ad !important;
	font-size: 0.72rem;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gigsplay-guides-category-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 12px;
	padding: 5px 0 6px;
	border-top: 1px solid var(--gigsplay-border);
	font-size: 0.7rem;
}

.gigsplay-guides-category-card__count {
	color: #98a1ad !important;
}

.gigsplay-guides-category-card__explore {
	font-weight: 700;
	color: #f4f5f7 !important;
	text-decoration: none !important;
}

/* ---------------------------------------------------------------------
 * List sections (Editor's Picks / Trending Guides)
 * Two independent floated panels — no shared wrapper between the two
 * template files. Each section is floated to one edge of the same
 * centered 1200px content zone used elsewhere (hero/categories), so
 * a 24px gap falls out naturally: 1200 - 588 - 588 = 24.
 * ------------------------------------------------------------------- */

.gigsplay-guides-editor-picks,
.gigsplay-guides-trending {
	margin-top: -10px;
	margin-bottom: 32px;
}

.gigsplay-guides-editor-picks {
	float: left;
	width: calc((100% - (2 * max(24px, ((100% - var(--gigsplay-content-width)) / 2))) - 24px) / 2);
	margin-left: max(24px, calc((100% - var(--gigsplay-content-width)) / 2));
}

.gigsplay-guides-trending {
	float: right;
	width: calc((100% - (2 * max(24px, ((100% - var(--gigsplay-content-width)) / 2))) - 24px) / 2);
	margin-right: max(24px, calc((100% - var(--gigsplay-content-width)) / 2));
}

/*
 * Known limitation: since both sections are floated with no shared
 * wrapper (by design — see plugin discussion), the surrounding theme
 * content container isn't explicitly cleared here. In practice this
 * is not visible on a plain white page background, but if a theme's
 * content wrapper has its own visible background/border, it may not
 * expand to the floats' full height.
 */

.gigsplay-guides-editor-picks__panel,
.gigsplay-guides-trending__panel {
	background: #fff;
	border: 1px solid #eef0f2;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	padding: 22px 22px 12px;
}

.gigsplay-guides-editor-picks__header,
.gigsplay-guides-trending__header {
	margin: 0 0 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.gigsplay-guides-editor-picks__view-all,
.gigsplay-guides-trending__view-all {
	flex-shrink: 0;
}

.gigsplay-guides-editor-picks__title,
.gigsplay-guides-trending__title {
	margin: 0;
	font-size: 0.85rem;
	font-weight: 800;
	color: #14171d !important;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.gigsplay-guides-editor-picks__icon,
.gigsplay-guides-trending__icon {
	display: inline-block;
	margin-right: 10px;
	color: var(--gigsplay-accent);
	font-size: 0.85rem;
}

.gigsplay-guides-editor-picks__view-all,
.gigsplay-guides-trending__view-all {
	font-size: 0.75rem;
	font-weight: 700;
	color: #6b7280 !important;
	text-decoration: none !important;
	white-space: nowrap;
}

.gigsplay-guides-editor-picks__view-all:hover,
.gigsplay-guides-trending__view-all:hover {
	color: #14171d !important;
}

.gigsplay-guides-editor-picks__grid,
.gigsplay-guides-trending__grid {
	display: block;
}

.gigsplay-guides-pick-card__link,
.gigsplay-guides-trend-card__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 0;
	color: #14171d !important;
	text-decoration: none !important;
}

.gigsplay-guides-pick-card__link:focus-visible,
.gigsplay-guides-trend-card__link:focus-visible {
	outline: 2px solid var(--gigsplay-accent);
	outline-offset: 2px;
}

.gigsplay-guides-pick-card__media,
.gigsplay-guides-trend-card__media {
	position: relative;
	flex-shrink: 0;
}

.gigsplay-guides-pick-card__image,
.gigsplay-guides-trend-card__image {
	width: 82px;
	height: 61px;
	border-radius: 8px;
	overflow: hidden;
	background: #eceef1;
	display: block;
}

.gigsplay-guides-pick-card__image img,
.gigsplay-guides-trend-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gigsplay-guides-pick-card__badge,
.gigsplay-guides-trend-card__badge {
	position: absolute;
	top: -7px;
	left: -7px;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #14171d !important;
	color: #fff !important;
	border: 1.5px solid #fff !important;
	border-radius: 50% !important;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1;
}

.gigsplay-guides-pick-card__body,
.gigsplay-guides-trend-card__body {
	min-width: 0;
}

.gigsplay-guides-pick-card__title,
.gigsplay-guides-trend-card__title {
	display: -webkit-box;
	margin: 0 0 2px;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.4;
	color: #14171d !important;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.gigsplay-guides-pick-card__meta,
.gigsplay-guides-trend-card__meta {
	display: flex;
	gap: 6px;
	font-size: 0.72rem;
	line-height: 1.25;
	color: #98a1ad !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gigsplay-guides-pick-card__category,
.gigsplay-guides-trend-card__category {
	color: #6c8cff !important;
	font-weight: 600;
}

/* ---------------------------------------------------------------------
 * Responsive adjustments
 * ------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.gigsplay-guides-categories__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 782px) {
	.gigsplay-guides-hero {
		padding: 20px 16px;
	}

	.gigsplay-guides-hero__title {
		font-size: 1.5rem;
	}

	.gigsplay-guides-categories {
		padding-left: 16px;
		padding-right: 16px;
	}

	.gigsplay-guides-categories__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.gigsplay-guides-editor-picks,
	.gigsplay-guides-trending {
		float: none;
		width: auto;
		max-width: none;
		margin-left: 16px;
		margin-right: 16px;
	}

	.gigsplay-guides-editor-picks__panel,
	.gigsplay-guides-trending__panel {
		padding: 18px 16px 8px;
	}
}

@media (max-width: 480px) {
	.gigsplay-guides-categories__grid {
		grid-template-columns: 1fr;
	}
}
