/* ==========================================================================
   GC Calendario Uscite Videogiochi
   Compatibile con tema Foxiz — dark/light mode via body.rb-dark / body.rb-light
   ========================================================================== */

/* ── CSS Custom Properties ─────────────────────────────────────────────── */
:root,
:root.rb-light,
html.rb-light,
body.rb-light,
[data-theme="light"],
body.light,
body.is-light {
	--gc-bg:              #ffffff;
	--gc-bg-secondary:    #f4f5f7;
	--gc-bg-card:         #ffffff;
	--gc-border:          #e2e4e8;
	--gc-text:            #1a1d23;
	--gc-text-muted:      #6b7280;
	--gc-text-light:      #9ca3af;
	--gc-accent:          #ef9e40;      /* arancio Gamecast light */
	--gc-accent-hover:    #e07b00;
	--gc-accent-rgb:      239, 158, 64;
	--gc-badge-today-bg:  #ef9e40;
	--gc-badge-today-fg:  #ffffff;
	--gc-badge-week-bg:   #1565c0;
	--gc-badge-week-fg:   #ffffff;
	--gc-badge-feat-bg:   #6a1b9a;
	--gc-badge-feat-fg:   #ffffff;
	--gc-badge-aaa-bg:    #f57f17;
	--gc-badge-aaa-fg:    #ffffff;
	--gc-badge-indie-bg:  #2e7d32;
	--gc-badge-indie-fg:  #ffffff;
	--gc-status-today:    #ef9e40;
	--gc-status-upcoming: #1565c0;
	--gc-status-avail:    #2e7d32;
	--gc-shadow-sm:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
	--gc-shadow-md:       0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
	--gc-shadow-hover:    0 8px 24px rgba(0,0,0,.14);
	--gc-radius:          12px;
	--gc-radius-sm:       8px;
	--gc-radius-xs:       4px;
	--gc-transition:      0.2s ease;
	--gc-icon-invert:     #ffffff;
	--gc-select-arrow:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

:root.rb-dark,
html.rb-dark,
body.rb-dark,
[data-theme="dark"],
body.dark,
body.is-dark {
	--gc-bg:              #0f1117;
	--gc-bg-secondary:    #1a1d26;
	--gc-bg-card:         #1e2130;
	--gc-border:          #2d3148;
	--gc-text:            #e8eaf0;
	--gc-text-muted:      #8b92a8;
	--gc-text-light:      #565e7a;
	--gc-accent:          #1e73be;
	--gc-accent-hover:    #1558a0;
	--gc-accent-rgb:      30, 115, 190;
	--gc-badge-today-bg:  #1e73be;
	--gc-badge-week-bg:   #1976d2;
	--gc-badge-feat-bg:   #7b1fa2;
	--gc-shadow-sm:       0 1px 3px rgba(0,0,0,.3);
	--gc-shadow-md:       0 4px 12px rgba(0,0,0,.4);
	--gc-shadow-hover:    0 8px 24px rgba(0,0,0,.5);
	--gc-icon-invert:     #1e2130;
	--gc-select-arrow:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b92a8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* ── Reset & Base ──────────────────────────────────────────────────────── */
.gc-cal-page * {
	box-sizing: border-box;
}

.gc-cal-page {
	color: var(--gc-text);
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px 60px;
	overflow-x: hidden;
}

/* ── Breadcrumb ────────────────────────────────────────────────────────── */
.gc-cal-breadcrumb {
	padding: 16px 0 8px;
	font-size: 13px;
	color: var(--gc-text-muted);
}

.gc-cal-breadcrumb ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.gc-cal-breadcrumb a {
	color: var(--gc-text-muted);
	text-decoration: none;
	transition: color var(--gc-transition);
}

.gc-cal-breadcrumb a:hover {
	color: var(--gc-accent);
}

.gc-cal-breadcrumb__sep {
	color: var(--gc-border);
}

/* ── Header ────────────────────────────────────────────────────────────── */
.gc-cal-header {
	padding: 32px 0 24px;
}

.gc-cal-h1 {
	font-size: clamp(24px, 4vw, 36px);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 12px;
	color: var(--gc-text);
}

.gc-cal-intro {
	font-size: 15px;
	color: var(--gc-text-muted);
	line-height: 1.6;
	margin: 0;
	max-width: 680px;
}

.gc-cal-intro strong {
	color: var(--gc-text);
}

/* ── Navigazione mesi ──────────────────────────────────────────────────── */
.gc-cal-month-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: var(--gc-bg-secondary);
	border: 1px solid var(--gc-border);
	border-radius: var(--gc-radius);
	padding: 12px 16px;
	margin: 0 0 28px;
}

.gc-cal-month-nav__btn {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--gc-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	padding: 8px 14px;
	border-radius: var(--gc-radius-sm);
	transition: background var(--gc-transition), color var(--gc-transition);
}

.gc-cal-month-nav__btn:hover {
	background: var(--gc-accent);
	color: #fff;
}

.gc-cal-month-nav__btn svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.gc-cal-month-nav__current {
	flex: 1;
	text-align: center;
	font-size: 17px;
	font-weight: 700;
	color: var(--gc-text);
}

/* ── Highlights ────────────────────────────────────────────────────────── */
.gc-cal-highlights {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0 0 32px;
}

.gc-cal-highlights__group {}

.gc-cal-highlights__label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--gc-text-muted);
	margin: 0 0 10px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.gc-cal-highlights__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gc-cal-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--gc-bg-secondary);
	border: 1px solid var(--gc-border);
	border-radius: var(--gc-radius-sm);
	padding: 6px 12px 6px 6px;
	text-decoration: none;
	color: var(--gc-text);
	font-size: 13px;
	transition: border-color var(--gc-transition), box-shadow var(--gc-transition);
}

.gc-cal-chip:hover {
	border-color: var(--gc-accent);
	box-shadow: 0 0 0 2px rgba(var(--gc-accent-rgb), 0.15);
}

.gc-cal-chip img,
.gc-cal-chip__placeholder {
	width: 32px;
	height: 32px;
	border-radius: var(--gc-radius-xs);
	object-fit: cover;
	flex-shrink: 0;
}

.gc-cal-chip__placeholder {
	background: var(--gc-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	color: var(--gc-text-muted);
}

.gc-cal-chip__info {
	display: flex;
	flex-direction: column;
}

.gc-cal-chip__name {
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 160px;
}

.gc-cal-chip__date {
	font-size: 11px;
	color: var(--gc-text-muted);
}

/* ── Toolbar / Filtri ──────────────────────────────────────────────────── */
.gc-cal-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 24px;
	padding: 14px 16px;
	background: var(--gc-bg-secondary);
	border: 1px solid var(--gc-border);
	border-radius: var(--gc-radius);
}

.gc-cal-filters {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.gc-cal-filter-group {
	display: flex;
	align-items: center;
	gap: 6px;
}

.gc-cal-filter-label {
	font-size: 13px;
	color: var(--gc-text-muted);
	white-space: nowrap;
}

.gc-cal-select {
	appearance: none;
	background: var(--gc-bg-card);
	border: 1px solid var(--gc-border);
	border-radius: var(--gc-radius-sm);
	color: var(--gc-text);
	font-size: 13px;
	padding: 7px 28px 7px 10px;
	cursor: pointer;
	background-image: var(--gc-select-arrow);
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 14px;
	transition: border-color var(--gc-transition);
}

.gc-cal-select:focus {
	outline: none;
	border-color: var(--gc-accent);
	box-shadow: 0 0 0 2px rgba(var(--gc-accent-rgb), 0.15);
}

.gc-cal-btn-reset {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: var(--gc-text-muted);
	background: none;
	border: 1px solid var(--gc-border);
	border-radius: var(--gc-radius-sm);
	padding: 7px 12px;
	cursor: pointer;
	transition: color var(--gc-transition), border-color var(--gc-transition);
}

.gc-cal-btn-reset svg {
	width: 14px;
	height: 14px;
}

.gc-cal-btn-reset:hover {
	color: var(--gc-accent);
	border-color: var(--gc-accent);
}

.gc-cal-count {
	font-size: 13px;
	color: var(--gc-text-muted);
	font-weight: 500;
}

/* ── Griglia ───────────────────────────────────────────────────────────── */
.gc-cal-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
	align-items: stretch;
}

@media (max-width: 1280px) {
	.gc-cal-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 900px) {
	.gc-cal-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (max-width: 520px) {
	.gc-cal-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

/* ── Card ──────────────────────────────────────────────────────────────── */
.gc-cal-card {
	display: flex;
	height: 100%;
	border-radius: var(--gc-radius);
	overflow: hidden;
	background: var(--gc-bg-card);
	border: 1px solid var(--gc-border);
	box-shadow: var(--gc-shadow-sm);
	transition: transform var(--gc-transition), box-shadow var(--gc-transition);
}

.gc-cal-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--gc-shadow-hover);
}

.gc-cal-card__link {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

/* Cover quadrata */
.gc-cal-card__cover {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--gc-bg-secondary);
}

.gc-cal-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.gc-cal-card:hover .gc-cal-card__cover img {
	transform: scale(1.04);
}

.gc-cal-card__no-cover {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--gc-bg-secondary), var(--gc-border));
}

.gc-cal-card__no-cover span {
	font-size: 36px;
	font-weight: 800;
	color: var(--gc-text-light);
	letter-spacing: -1px;
}

/* Status badge sulla cover */
.gc-cal-status-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 3px 8px;
	border-radius: 20px;
	pointer-events: none;
}

.gc-cal-status-badge--today {
	background: var(--gc-badge-today-bg);
	color: var(--gc-badge-today-fg);
}

.gc-cal-status-badge--upcoming {
	background: var(--gc-badge-week-bg);
	color: var(--gc-badge-week-fg);
}

.gc-cal-status-badge--available {
	background: var(--gc-status-avail);
	color: #fff;
}

.gc-cal-status-badge--tbd {
	background: var(--gc-text-light);
	color: var(--gc-bg);
}

/* Badges AAA/Indie sulla cover */
.gc-cal-card__badges {
	position: absolute;
	bottom: 10px;
	left: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

/* Card body */
.gc-cal-card__body {
	padding: 14px 14px 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.gc-cal-card__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 6px;
	color: var(--gc-text);
	min-height: calc(1.3em * 2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gc-cal-card__date {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--gc-accent);
	margin: 0 0 8px;
}

.gc-cal-card__genres {
	margin: 0 0 10px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--gc-text-muted);
	min-height: 1.4em;
}

.gc-cal-card__hub-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	padding: 6px 10px;
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	border-radius: var(--gc-radius-sm);
	background: rgba(var(--gc-accent-rgb), 0.14);
	color: var(--gc-accent);
	text-decoration: none;
	transition: background var(--gc-transition), color var(--gc-transition);
}

.gc-cal-card__hub-btn:hover {
	background: var(--gc-accent);
	color: #fff;
}

.gc-cal-card__platforms {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: auto;
	min-height: 26px;
}

.gc-cal-platform {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	color: var(--gc-text-muted);
	transition: color var(--gc-transition);
}

.gc-cal-platform svg {
	width: 18px;
	height: 18px;
}

.gc-cal-card:hover .gc-cal-platform {
	color: var(--gc-text);
}

.gc-cal-platform__label {
	font-size: 11px;
	font-weight: 600;
	background: var(--gc-bg-secondary);
	border: 1px solid var(--gc-border);
	border-radius: var(--gc-radius-xs);
	padding: 2px 6px;
	color: var(--gc-text-muted);
}

/* Animazione hide quando filtrata */
.gc-cal-card[hidden],
.gc-cal-card.gc-filtered-out {
	display: none;
}

/* ── Badges generici ───────────────────────────────────────────────────── */
.gc-cal-badge {
	display: inline-flex;
	align-items: center;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 2px 7px;
	border-radius: 20px;
	white-space: nowrap;
}

.gc-cal-badge--today    { background: var(--gc-badge-today-bg); color: var(--gc-badge-today-fg); }
.gc-cal-badge--week     { background: var(--gc-badge-week-bg);  color: var(--gc-badge-week-fg);  }
.gc-cal-badge--featured { background: var(--gc-badge-feat-bg);  color: var(--gc-badge-feat-fg);  }
.gc-cal-badge--aaa      { background: var(--gc-badge-aaa-bg);   color: var(--gc-badge-aaa-fg);   }
.gc-cal-badge--indie    { background: var(--gc-badge-indie-bg); color: var(--gc-badge-indie-fg); }
.gc-cal-badge--atteso   { background: var(--gc-badge-feat-bg);  color: var(--gc-badge-feat-fg);  }

/* ── Empty state ───────────────────────────────────────────────────────── */
.gc-cal-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 64px 24px;
	text-align: center;
	color: var(--gc-text-muted);
}

.gc-cal-empty svg {
	width: 48px;
	height: 48px;
	color: var(--gc-border);
}

.gc-cal-empty p {
	margin: 0;
	font-size: 16px;
}

.gc-cal-empty__sub {
	font-size: 14px !important;
	color: var(--gc-text-light) !important;
}

/* ── Loading overlay ───────────────────────────────────────────────────── */
.gc-cal-loading {
	position: relative;
	min-height: 200px;
}

.gc-cal-loading::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--gc-bg);
	opacity: 0.7;
	border-radius: var(--gc-radius);
	z-index: 2;
}

.gc-cal-loading::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 32px;
	height: 32px;
	margin: -16px 0 0 -16px;
	border: 3px solid var(--gc-border);
	border-top-color: var(--gc-accent);
	border-radius: 50%;
	animation: gc-spin 0.7s linear infinite;
	z-index: 3;
}

@keyframes gc-spin {
	to { transform: rotate(360deg); }
}

/* ── SEO Footer ────────────────────────────────────────────────────────── */
.gc-cal-seo-footer {
	margin-top: 60px;
	padding-top: 32px;
	border-top: 1px solid var(--gc-border);
}

.gc-cal-seo-footer__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}

@media (max-width: 640px) {
	.gc-cal-seo-footer__inner {
		grid-template-columns: 1fr;
	}
}

.gc-cal-seo-footer h2 {
	font-size: 15px;
	font-weight: 700;
	color: var(--gc-text);
	margin: 0 0 14px;
}

.gc-cal-month-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
}

.gc-cal-month-links a {
	font-size: 13px;
	color: var(--gc-text-muted);
	text-decoration: none;
	padding: 4px 0;
	display: block;
	transition: color var(--gc-transition);
}

.gc-cal-month-links a:hover,
.gc-cal-month-links a[aria-current="page"] {
	color: var(--gc-accent);
}

.gc-cal-month-links a[aria-current="page"] {
	font-weight: 700;
}

.gc-cal-seo-footer__links p {
	font-size: 14px;
	color: var(--gc-text-muted);
	line-height: 1.6;
	margin: 0 0 10px;
}

.gc-cal-seo-footer__links a {
	color: var(--gc-accent);
	text-decoration: none;
}

.gc-cal-seo-footer__links a:hover {
	text-decoration: underline;
}

/* ── Responsive fine-tuning ────────────────────────────────────────────── */
@media (max-width: 768px) {
	.gc-cal-month-nav__btn span {
		display: none;
	}

	.gc-cal-month-nav__btn--prev::after { content: 'Prec'; font-size: 12px; }
	.gc-cal-month-nav__btn--next::before { content: 'Succ'; font-size: 12px; }

	/* Toolbar filtri: compatta a griglia 2 colonne */
	.gc-cal-toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		padding: 10px 12px;
	}

	.gc-cal-filters {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		width: 100%;
	}

	.gc-cal-filter-group {
		flex-direction: column;
		align-items: stretch;
		gap: 3px;
	}

	.gc-cal-filter-label {
		font-size: 11px;
	}

	.gc-cal-select {
		width: 100%;
		font-size: 14px;
		padding: 9px 28px 9px 10px;
	}

	.gc-cal-filter-group--toggle {
		grid-column: 1 / -1;
	}

	.gc-cal-btn-toggle {
		width: 100%;
		justify-content: center;
		padding: 9px 14px;
	}

	.gc-cal-btn-reset {
		width: 100%;
		justify-content: center;
		padding: 9px 12px;
	}

	.gc-cal-count {
		text-align: center;
		width: 100%;
	}

	.gc-cal-month-links {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Griglia card: gap e body più leggibili */
	.gc-cal-card__body {
		padding: 12px 10px 14px;
	}

	.gc-cal-card__title {
		font-size: 14px;
		min-height: calc(1.3em * 2);
	}

	.gc-cal-card__date {
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	.gc-cal-filter-label {
		display: none;
	}

	/* Filtri: colonna singola su schermi stretti */
	.gc-cal-filters {
		grid-template-columns: 1fr;
	}

	.gc-cal-chip__name {
		max-width: none;
	}

	.gc-cal-highlights__list {
		flex-direction: column;
	}

	.gc-cal-chip {
		width: 100%;
		box-sizing: border-box;
		padding: 8px 12px 8px 8px;
	}

	.gc-cal-chip img,
	.gc-cal-chip__placeholder {
		width: 40px;
		height: 40px;
	}

	.gc-cal-chip__name {
		font-size: 14px;
	}

	.gc-cal-chip__date {
		font-size: 12px;
	}
}

.gc-cal-hero {
	margin: 0 0 24px;
	padding: 20px 20px 18px;
	background: var(--gc-bg-secondary);
	max-width: 100%;
	overflow: hidden;
	border: 1px solid var(--gc-border);
	border-radius: var(--gc-radius);
}

.gc-cal-hero__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--gc-text);
	margin: 0 0 14px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.gc-cal-hero__title svg {
	width: 16px;
	height: 16px;
	color: var(--gc-accent);
	flex-shrink: 0;
}

.gc-cal-hero__scroll {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--gc-border) transparent;
	padding-bottom: 4px;
}

.gc-cal-hero__scroll::-webkit-scrollbar { height: 3px; }
.gc-cal-hero__scroll::-webkit-scrollbar-track { background: transparent; }
.gc-cal-hero__scroll::-webkit-scrollbar-thumb {
	background: var(--gc-border);
	border-radius: 2px;
}

/* Card: poster verticale, tutto sull'immagine */
.gc-cal-hero__card {
	flex: 0 0 148px;
	scroll-snap-align: start;
	border-radius: 10px;
	overflow: hidden;
	background: var(--gc-bg-card);
	border: 1px solid var(--gc-border);
	text-decoration: none;
	color: inherit;
	display: block;
	position: relative;
	aspect-ratio: 2 / 3;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.gc-cal-hero__card:hover {
	transform: translateY(-5px) scale(1.01);
	box-shadow: 0 12px 32px rgba(0,0,0,.35);
	border-color: var(--gc-accent);
}

/* Cover: riempie tutta la card */
.gc-cal-hero__cover {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.gc-cal-hero__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.gc-cal-hero__card:hover .gc-cal-hero__cover img {
	transform: scale(1.07);
}

.gc-cal-hero__cover-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1a1a2e, #16213e);
	font-size: 32px;
	font-weight: 800;
	color: rgba(255,255,255,.25);
}

/* Gradiente scuro sul fondo per leggere testo */
.gc-cal-hero__cover::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		transparent 35%,
		rgba(0,0,0,.55) 65%,
		rgba(0,0,0,.88) 100%
	);
	pointer-events: none;
}

/* Badge AAA: top-left */
.gc-cal-hero__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 3;
}

/* Badge mese: top-right */
.gc-cal-hero__month-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	background: rgba(0,0,0,.62);
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	padding: 3px 7px;
	border-radius: 20px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	white-space: nowrap;
	z-index: 3;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

/* Info sovrapposta al fondo */
.gc-cal-hero__info {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 10px 10px 11px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.gc-cal-hero__name {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	color: #ffffff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

.gc-cal-hero__date {
	display: block;
	font-size: 10px;
	font-weight: 600;
	color: var(--gc-accent);
	text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

@media (max-width: 768px) {
	.gc-cal-hero {
		margin: 0 0 20px;
		padding: 16px 0 0;
		border-radius: var(--gc-radius-sm);
	}
	.gc-cal-hero__title {
		font-size: 12px;
		padding: 0 16px 14px;
	}
	.gc-cal-hero__scroll {
		padding: 0 16px 14px;
		scroll-padding-left: 16px;
		-webkit-overflow-scrolling: unset;
		gap: 10px;
	}
	.gc-cal-hero__card {
		flex: 0 0 155px;           /* card più grandi su mobile */
	}
	.gc-cal-hero__name {
		font-size: 13px;
	}
	.gc-cal-hero__date {
		font-size: 11px;
	}
	.gc-cal-hero__month-badge {
		font-size: 10px;
		padding: 3px 8px;
	}
}

/* Hero ancora più grande su schermi piccoli */
@media (max-width: 480px) {
	.gc-cal-hero__card {
		flex: 0 0 140px;
	}
}

/* ── Highlights: "e altri N giochi" (Opzione C) ──────────────────────── */
.gc-cal-highlights__more {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--gc-text-muted, #888);
}
.gc-cal-highlights__more strong {
	color: var(--gc-text);
}
.gc-cal-highlights__more-link {
	color: var(--gc-accent);
	text-decoration: none;
	font-weight: 600;
}
.gc-cal-highlights__more-link:hover {
	text-decoration: underline;
}

/* ── Filtro "Solo Gamecast" toggle ─────────────────────────────────────── */
.gc-cal-btn-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 1px solid var(--gc-border);
	border-radius: var(--gc-radius-sm);
	background: var(--gc-bg-secondary);
	color: var(--gc-text-muted, #888);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--gc-transition);
	white-space: nowrap;
}
.gc-cal-btn-toggle:hover {
	border-color: var(--gc-accent);
	color: var(--gc-accent);
}
.gc-cal-btn-toggle--active,
.gc-cal-btn-toggle[aria-pressed="true"] {
	background: var(--gc-accent);
	border-color: var(--gc-accent);
	color: #fff;
}
.gc-cal-filter-group--toggle {
	display: flex;
	align-items: flex-end;
}

/* ── Card: cursore e "Vai all'hub" ─────────────────────────────────────── */
/* Solo le card con hub hanno cursore pointer */
.gc-cal-card:not(.gc-cal-card--has-hub) {
	cursor: default;
}
.gc-cal-card--has-hub {
	cursor: pointer;
}
.gc-cal-card__hub-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 4px;
	padding: 5px 10px;
	background: var(--gc-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: var(--gc-radius-sm);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: opacity 0.2s;
}
.gc-cal-card__hub-btn:hover {
	opacity: 0.85;
}
/* Chip senza link: no cursore pointer */
.gc-cal-chip--no-link {
	cursor: default;
	opacity: 0.75;
}


/* ── Frecce mesi flottanti (appaiono quando il nav mesi è fuori viewport) */
.gc-cal-float-nav {
	display: none;
	position: fixed;
	z-index: 300;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	align-items: center;
	justify-content: center;
	background: var(--gc-accent);
	color: #fff;
	border: 2px solid rgba(255,255,255,.2);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0,0,0,.4);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, background .15s ease, transform .15s ease;
}
.gc-cal-float-nav svg {
	width: 24px;
	height: 24px;
	display: block;
	stroke-width: 2.5;
}
.gc-cal-float-nav--prev { left: 8px; }
.gc-cal-float-nav--next { right: 8px; }

/* Visibile solo su mobile */
@media (max-width: 768px) {
	.gc-cal-float-nav {
		display: flex;
	}
	.gc-cal-float-nav--visible {
		opacity: 1;
		pointer-events: auto;
	}
	.gc-cal-float-nav:hover,
	.gc-cal-float-nav:active {
		background: var(--gc-accent-hover);
		transform: translateY(-50%) scale(1.08);
		box-shadow: 0 6px 20px rgba(0,0,0,.5);
	}
}





/* ── Toolbar filtri: sticky floated (48px, compatta) ──────────────────── */
.gc-cal-toolbar--floated {
	position: fixed;
	left: 0;
	right: 0;
	top: 64px; /* sotto l'header sticky (64px) — JS sovrascrive dinamicamente */
	z-index: 500;
	height: 48px;
	margin: 0 !important;
	padding: 0 12px !important;
	border-radius: 0 !important;
	border-left: none;
	border-right: none;
	border-top: none;
	box-shadow: 0 2px 10px rgba(0,0,0,.2);
	/* Layout sempre orizzontale */
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	gap: 6px !important;
}
/* Filtri scrollabili orizzontalmente */
.gc-cal-toolbar--floated .gc-cal-filters {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 6px;
	flex: 1;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	height: 100%;
}
.gc-cal-toolbar--floated .gc-cal-filters::-webkit-scrollbar { display: none; }

/* Ogni gruppo centrato verticalmente */
.gc-cal-toolbar--floated .gc-cal-filter-group {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	height: 100%;
}

/* Label nascoste per risparmiare spazio */
.gc-cal-toolbar--floated .gc-cal-filter-label { display: none !important; }

/* Select compatti */
.gc-cal-toolbar--floated .gc-cal-select {
	font-size: 12px;
	padding: 5px 22px 5px 8px;
	height: 32px;
	max-width: 140px;
}

/* Toggle "Solo Gamecast" — sempre visibile, compatto */
.gc-cal-toolbar--floated .gc-cal-filter-group--toggle {
	flex-shrink: 0;
	margin-left: auto;          /* spinge a destra, sempre visibile */
	padding-left: 6px;
	height: 100%;
}
.gc-cal-toolbar--floated .gc-cal-btn-toggle {
	font-size: 12px;
	padding: 5px 10px;
	height: 32px;
	white-space: nowrap;
}

/* Su mobile: tutti i filtri scrollabili orizzontalmente */
/* Nasconde conteggio giochi nella barra sticky */
.gc-cal-toolbar--floated .gc-cal-count { display: none !important; }

/* Admin bar WP (fallback CSS — il JS sovrascrive con offsetHeight reale) */
.admin-bar .gc-cal-toolbar--floated { top: 96px; }  /* 64 header + 32 adminbar */
@media screen and (max-width: 782px) {
	.admin-bar .gc-cal-toolbar--floated { top: 110px; } /* 64 header + 46 adminbar */
}

/* Nasconde durante scroll-up */
.gc-cal-toolbar--hidden {
	opacity: 0 !important;
	pointer-events: none !important;
	transition: opacity .15s ease !important;
}

/* Spacer placeholder */
.gc-cal-toolbar-spacer { display: none; }
.gc-cal-toolbar-spacer--active { display: block; }

/* ── Uscite Principali del Mese ─────────────────────────────────────────── */
.gc-cal-principal {
	margin: 12px 0 20px;
}

.gc-cal-principal__title {
	font-size: 11px;
	font-weight: 700;
	color: var(--gc-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.09em;
	margin: 0 0 10px;
}

.gc-cal-principal__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.gc-cal-principal__card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-decoration: none;
	color: var(--gc-text);
	border-radius: var(--gc-radius-sm);
	overflow: hidden;
	transition: transform var(--gc-transition);
}

a.gc-cal-principal__card:hover {
	transform: translateY(-2px);
}

.gc-cal-principal__img {
	border-radius: var(--gc-radius-sm);
	overflow: hidden;
	aspect-ratio: 3/4;
	background: var(--gc-bg-secondary);
}

.gc-cal-principal__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

a.gc-cal-principal__card:hover .gc-cal-principal__img img {
	transform: scale(1.04);
}

.gc-cal-principal__no-cover {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 700;
	color: var(--gc-text-light);
}

.gc-cal-principal__info {
	padding: 0 2px;
}

.gc-cal-principal__name {
	font-size: 12px;
	font-weight: 600;
	margin: 0;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gc-cal-principal__date {
	display: block;
	font-size: 11px;
	color: var(--gc-accent);
	font-weight: 600;
	margin-top: 3px;
}

/* ── Time Chips ──────────────────────────────────────────────────────────── */
.gc-cal-time-chips {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	padding: 10px 0;
	border-bottom: 1px solid var(--gc-border);
	margin-bottom: 10px;
}

.gc-cal-time-chip {
	padding: 5px 14px;
	border-radius: 999px;
	border: 1px solid var(--gc-border);
	background: transparent;
	color: var(--gc-text-muted);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all var(--gc-transition);
	white-space: nowrap;
	line-height: 1.4;
	font-family: inherit;
}

.gc-cal-time-chip:hover {
	border-color: var(--gc-accent);
	color: var(--gc-accent);
}

.gc-cal-time-chip--active {
	background: var(--gc-accent);
	border-color: var(--gc-accent);
	color: #fff;
}

/* ── Responsive Principal + Chips ───────────────────────────────────────── */
@media (max-width: 768px) {
	.gc-cal-principal__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
}

@media (max-width: 480px) {
	.gc-cal-time-chip {
		font-size: 13px;
		padding: 6px 13px;
	}
}

/* ── Nascondi ads Ezoic quando filtro attivo ───────────────────────────── */
/* Ezoic autoinsert spans (iniettati nel grid) spariscono durante il filtraggio */
#gc-cal-grid-container.gc-cal-grid--filtered .ezoic-autoinsert-ad,
#gc-cal-grid-container.gc-cal-grid--filtered .ezoic-adpicker-ad,
#gc-cal-grid-container.gc-cal-grid--filtered [id^="ezoic-pub-ad-placeholder"],
#gc-cal-grid-container.gc-cal-grid--filtered .ezoic-grid-wrapper {
	display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE UX FIX (2026-05-10)
   - ≤420px: calendario uscite passa a 1 colonna (era 2col stretti su 390px)
   - Chip nomi gioco lunghi: word-break invece di ellipsis
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 420px) {
	.gc-cal-grid {
		grid-template-columns: 1fr !important;
		gap: 14px !important;
	}
	.gc-cal-card {
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.gc-cal-chip__name {
		white-space: normal !important;
		word-break: break-word;
		max-width: 100% !important;
		font-size: 13px;
		line-height: 1.25;
	}
}
