/*
 * Gladiators FC - modern UI layer.
 *
 * Loaded AFTER public.css so these rules win. This file modernizes the public
 * site: typography rhythm, buttons, cards, tables, forms, the teams filter and
 * cards, the homepage hero and quick-access grid, news cards, and the sticky
 * registration CTA. It restyles existing markup (.gfc-team-card, .gfc-chip,
 * .gfc-submit, .gfc-events, etc.) and defines new components used by the
 * refreshed shortcodes.
 *
 * Palette: black (#111418), gold (#d4af37), white. Gray is used sparingly.
 */

:root {
	--gfc-black: #111418;
	--gfc-ink: #1b1f27;
	--gfc-gold: #d4af37;
	--gfc-gold-dark: #b8932b;
	--gfc-gold-soft: #f6edcf;
	--gfc-white: #ffffff;
	--gfc-muted: #5b6470;
	--gfc-line: #e6e8ec;
	--gfc-bg-soft: #f7f8fa;
	--gfc-radius: 14px;
	--gfc-radius-sm: 10px;
	--gfc-shadow: 0 1px 2px rgba(17, 20, 24, 0.06), 0 8px 24px rgba(17, 20, 24, 0.08);
	--gfc-shadow-hover: 0 2px 6px rgba(17, 20, 24, 0.10), 0 18px 40px rgba(17, 20, 24, 0.16);
	--gfc-trans: 160ms ease;
}

/* ============================ Typography ============================ */
.gfc-teams,
.gfc-tournaments,
.gfc-news,
.gfc-events,
.gfc-form,
.gfc-hero,
.gfc-quick,
.gfc-section {
	font-feature-settings: "kern" 1, "liga" 1;
}
.gfc-section-head {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 1.75rem;
}
.gfc-section-head h2 {
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0 0 0.4rem;
}
.gfc-section-head p {
	color: var(--gfc-muted);
	margin: 0;
	font-size: 1.05rem;
}
.gfc-eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--gfc-gold-dark);
	margin-bottom: 0.5rem;
}

/* ============================ Buttons ============================ */
.gfc-btn,
.gfc-submit,
a.gfc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.8rem 1.5rem;
	border-radius: 999px;
	border: 2px solid transparent;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--gfc-trans), box-shadow var(--gfc-trans), background var(--gfc-trans), color var(--gfc-trans);
}
.gfc-btn-primary,
.gfc-submit {
	background: var(--gfc-gold);
	color: var(--gfc-black);
	border-color: var(--gfc-gold);
}
.gfc-btn-primary:hover,
.gfc-submit:hover {
	background: var(--gfc-gold-dark);
	border-color: var(--gfc-gold-dark);
	color: var(--gfc-black);
	transform: translateY(-1px);
	box-shadow: var(--gfc-shadow-hover);
}
.gfc-btn-ghost {
	background: transparent;
	color: var(--gfc-white);
	border-color: rgba(255, 255, 255, 0.6);
}
.gfc-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--gfc-white);
	transform: translateY(-1px);
}
.gfc-btn-dark {
	background: var(--gfc-black);
	color: var(--gfc-white);
	border-color: var(--gfc-black);
}
.gfc-btn-dark:hover {
	background: #000;
	transform: translateY(-1px);
	box-shadow: var(--gfc-shadow-hover);
}
.gfc-btn-sm {
	padding: 0.55rem 1rem;
	font-size: 0.9rem;
}

/* ============================ Generic cards ============================ */
.gfc-card {
	background: var(--gfc-white);
	border: 1px solid var(--gfc-line);
	border-radius: var(--gfc-radius);
	box-shadow: var(--gfc-shadow);
	overflow: hidden;
	transition: transform var(--gfc-trans), box-shadow var(--gfc-trans);
}
.gfc-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--gfc-shadow-hover);
}

/* ============================ Hero ============================ */
.gfc-hero {
	position: relative;
	border-radius: var(--gfc-radius);
	overflow: hidden;
	background: linear-gradient(135deg, #0c0e12 0%, #1b1f27 60%, #2a2f3a 100%);
	color: var(--gfc-white);
	padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
	text-align: center;
	isolation: isolate;
}
.gfc-hero.has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--gfc-hero-image);
	background-size: cover;
	background-position: center;
	opacity: 0.35;
	z-index: -2;
}
.gfc-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(12, 14, 18, 0.35), rgba(12, 14, 18, 0.75));
	z-index: -1;
}
.gfc-hero-logo {
	max-width: 120px;
	height: auto;
	margin: 0 auto 1rem;
	display: block;
}
.gfc-hero h1 {
	font-size: clamp(2rem, 5vw, 3.4rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.05;
	margin: 0 0 0.75rem;
	color: var(--gfc-white);
}
.gfc-hero p {
	font-size: clamp(1.05rem, 2.2vw, 1.35rem);
	color: rgba(255, 255, 255, 0.88);
	max-width: 640px;
	margin: 0 auto 1.75rem;
}
.gfc-hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	justify-content: center;
}

/* ============================ Quick-access grid ============================ */
.gfc-quick {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}
.gfc-quick-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
	padding: 1.5rem 1rem;
	background: var(--gfc-white);
	border: 1px solid var(--gfc-line);
	border-radius: var(--gfc-radius);
	box-shadow: var(--gfc-shadow);
	color: var(--gfc-ink);
	text-decoration: none;
	transition: transform var(--gfc-trans), box-shadow var(--gfc-trans), border-color var(--gfc-trans);
}
.gfc-quick-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--gfc-shadow-hover);
	border-color: var(--gfc-gold);
	color: var(--gfc-ink);
}
.gfc-quick-icon {
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--gfc-gold-soft);
	font-size: 1.5rem;
	line-height: 1;
}
.gfc-quick-card h3 {
	margin: 0.25rem 0 0;
	font-size: 1.1rem;
	font-weight: 700;
}
.gfc-quick-card span {
	color: var(--gfc-muted);
	font-size: 0.9rem;
}

/* ============================ Teams: filter bar ============================ */
.gfc-filters {
	background: var(--gfc-white);
	border: 1px solid var(--gfc-line);
	border-radius: var(--gfc-radius);
	box-shadow: var(--gfc-shadow);
	padding: 1rem 1.15rem;
	margin-bottom: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.gfc-filter-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}
.gfc-filter-label {
	font-weight: 700;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--gfc-muted);
	min-width: 72px;
}
.gfc-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.95rem;
	border-radius: 999px;
	background: var(--gfc-bg-soft);
	border: 1.5px solid var(--gfc-line);
	color: var(--gfc-ink);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all var(--gfc-trans);
}
.gfc-chip:hover {
	border-color: var(--gfc-gold);
	color: var(--gfc-black);
}
.gfc-chip-on,
.gfc-chip[aria-pressed="true"] {
	background: var(--gfc-black);
	border-color: var(--gfc-black);
	color: var(--gfc-white);
}
.gfc-chip-on:hover,
.gfc-chip[aria-pressed="true"]:hover {
	color: var(--gfc-white);
}

/* ============================ Teams: cards ============================ */
.gfc-teams {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
}
.gfc-team-card {
	display: flex;
	flex-direction: column;
	background: var(--gfc-white);
	border: 1px solid var(--gfc-line);
	border-top: none;
	border-radius: var(--gfc-radius);
	box-shadow: var(--gfc-shadow);
	overflow: hidden;
	transition: transform var(--gfc-trans), box-shadow var(--gfc-trans);
}
.gfc-team-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--gfc-shadow-hover);
}
.gfc-team-card-top {
	background: linear-gradient(135deg, #15181f, #2a2f3a);
	color: var(--gfc-white);
	padding: 1.1rem 1.25rem;
	border-top: 4px solid var(--gfc-gold);
}
.gfc-team-card-top .gfc-team-name {
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0;
	color: var(--gfc-white);
	text-transform: uppercase;
}
.gfc-team-card-top .gfc-team-div {
	margin: 0.25rem 0 0;
	color: var(--gfc-gold);
	font-weight: 600;
	font-size: 0.95rem;
}
.gfc-team-photo {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	background: var(--gfc-bg-soft);
}
.gfc-team-card-body {
	padding: 1rem 1.25rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	flex: 1;
}
.gfc-kv-pub {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}
.gfc-kv-pub th,
.gfc-kv-pub td {
	text-align: left;
	padding: 0.35rem 0;
	font-size: 0.92rem;
	vertical-align: top;
	border: none;
}
.gfc-kv-pub th {
	color: var(--gfc-muted);
	font-weight: 600;
	width: 40%;
	white-space: nowrap;
}
.gfc-kv-pub td {
	color: var(--gfc-ink);
	font-weight: 600;
}
.gfc-team-card-body .gfc-btn,
.gfc-team-card-body .gfc-subscribe {
	margin-top: auto;
}
.gfc-team-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--gfc-muted);
	padding: 2.5rem 1rem;
	background: var(--gfc-bg-soft);
	border-radius: var(--gfc-radius);
}

/* ============================ News cards ============================ */
.gfc-news {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.25rem;
	list-style: none;
	padding: 0;
	margin: 0;
}
.gfc-news-item {
	display: flex;
	flex-direction: column;
	background: var(--gfc-white);
	border: 1px solid var(--gfc-line);
	border-radius: var(--gfc-radius);
	box-shadow: var(--gfc-shadow);
	overflow: hidden;
	transition: transform var(--gfc-trans), box-shadow var(--gfc-trans);
}
.gfc-news-item:hover {
	transform: translateY(-3px);
	box-shadow: var(--gfc-shadow-hover);
}
.gfc-news-thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	background: var(--gfc-bg-soft);
}
.gfc-news-body {
	padding: 1.1rem 1.25rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}
.gfc-news-date {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--gfc-gold-dark);
	font-weight: 700;
}
.gfc-news-body h3 {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.25;
}
.gfc-news-excerpt {
	color: var(--gfc-muted);
	font-size: 0.95rem;
	margin: 0;
}
.gfc-news-body .gfc-readmore {
	margin-top: auto;
	font-weight: 700;
	color: var(--gfc-black);
	text-decoration: none;
	border-bottom: 2px solid var(--gfc-gold);
	align-self: flex-start;
	padding-bottom: 1px;
}
.gfc-news-body .gfc-readmore:hover {
	color: var(--gfc-gold-dark);
}

/* ============================ Events / schedule tables ============================ */
.gfc-events {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--gfc-white);
	border: 1px solid var(--gfc-line);
	border-radius: var(--gfc-radius);
	overflow: hidden;
	box-shadow: var(--gfc-shadow);
}
.gfc-events th {
	background: var(--gfc-black);
	color: var(--gfc-white);
	text-align: left;
	padding: 0.75rem 1rem;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.gfc-events td {
	padding: 0.75rem 1rem;
	border-top: 1px solid var(--gfc-line);
	font-size: 0.95rem;
}
.gfc-events tr:nth-child(even) td {
	background: var(--gfc-bg-soft);
}
.gfc-event-type {
	display: inline-block;
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	background: var(--gfc-gold-soft);
	color: var(--gfc-gold-dark);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.gfc-subscribe,
.gfc-ics-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 700;
	color: var(--gfc-black);
	text-decoration: none;
}
.gfc-subscribe:hover,
.gfc-ics-link:hover {
	color: var(--gfc-gold-dark);
}

/* ============================ Tournaments ============================ */
.gfc-tournaments {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
}
.gfc-tournament-card {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	background: var(--gfc-white);
	border: 1px solid var(--gfc-line);
	border-left: 4px solid var(--gfc-gold);
	border-radius: var(--gfc-radius);
	box-shadow: var(--gfc-shadow);
	padding: 1.25rem;
	text-decoration: none;
	color: var(--gfc-ink);
	transition: transform var(--gfc-trans), box-shadow var(--gfc-trans);
}
.gfc-tournament-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--gfc-shadow-hover);
}
.gfc-tournament-name {
	font-weight: 800;
	font-size: 1.1rem;
	color: var(--gfc-black);
}
.gfc-tournament-meta {
	color: var(--gfc-muted);
	font-size: 0.92rem;
}

/* ============================ Forms ============================ */
.gfc-form label {
	font-weight: 600;
	color: var(--gfc-ink);
}
.gfc-form input[type="text"],
.gfc-form input[type="email"],
.gfc-form input[type="tel"],
.gfc-form input[type="date"],
.gfc-form input[type="number"],
.gfc-form select,
.gfc-form textarea {
	border: 1.5px solid var(--gfc-line);
	border-radius: var(--gfc-radius-sm);
	padding: 0.6rem 0.75rem;
	font-size: 1rem;
	transition: border-color var(--gfc-trans), box-shadow var(--gfc-trans);
}
.gfc-form input:focus,
.gfc-form select:focus,
.gfc-form textarea:focus {
	outline: none;
	border-color: var(--gfc-gold);
	box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.gfc-player-block {
	border: 1px solid var(--gfc-line);
	border-radius: var(--gfc-radius);
	box-shadow: var(--gfc-shadow);
	padding: 1.25rem;
	background: var(--gfc-white);
}
.gfc-subblock {
	border: 1px solid var(--gfc-line);
	border-radius: var(--gfc-radius-sm);
	padding: 1rem;
	background: var(--gfc-bg-soft);
}
.gfc-upload {
	background: var(--gfc-gold-soft);
	border-color: var(--gfc-gold);
}

/* ============================ Sticky registration CTA ============================ */
#gfc-sticky-cta {
	position: fixed;
	top: 14px;
	right: 16px;
	z-index: 9990;
	opacity: 0;
	transform: translateY(-8px);
	pointer-events: none;
	transition: opacity var(--gfc-trans), transform var(--gfc-trans);
}
#gfc-sticky-cta.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
#gfc-sticky-cta a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: var(--gfc-gold);
	color: var(--gfc-black);
	font-weight: 800;
	padding: 0.6rem 1.2rem;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: var(--gfc-shadow-hover);
}
#gfc-sticky-cta a:hover {
	background: var(--gfc-gold-dark);
}

/* Mobile floating register button */
#gfc-float-cta {
	display: none;
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 9990;
}
#gfc-float-cta a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: var(--gfc-gold);
	color: var(--gfc-black);
	font-weight: 800;
	padding: 0.85rem 1.3rem;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: var(--gfc-shadow-hover);
}
@media (max-width: 768px) {
	#gfc-sticky-cta {
		display: none;
	}
	#gfc-float-cta {
		display: block;
	}
	.gfc-filter-label {
		min-width: 100%;
	}
}

/* ============================ Utilities ============================ */
.gfc-section {
	margin: 2.5rem 0;
}
.gfc-center {
	text-align: center;
}
.gfc-mt {
	margin-top: 1.5rem;
}
.gfc-back {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--gfc-muted);
	text-decoration: none;
	font-weight: 600;
}
.gfc-back:hover {
	color: var(--gfc-black);
}
.gfc-doc-list {
	list-style: none;
	padding: 0;
	margin: 0.5rem 0 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.gfc-doc-list a {
	font-weight: 600;
	color: var(--gfc-black);
}
