/* =============================================================================
   sport.css — nový sportovní frontend (zelená #a2bb3b + černá).
   Nahrazuje původní theme styly (style/main/forms/custom).
   Bez JS: mobilní menu je CSS-only (checkbox), hero je gradientní.
   ========================================================================== */

:root {
	--green: #a2bb3b;
	--green-600: #8aa22f;
	--green-700: #6f8420;
	--ink: #16181d;
	--ink-2: #3a3f47;
	--muted: #6b7178;
	--bg-dark: #0f0f10;
	--bg-dark-2: #17181b;
	--paper: #ffffff;
	--surface: #f5f6f3;
	--line: #e7e9ea;
	--radius: 14px;
	--radius-sm: 9px;
	--shadow-sm: 0 2px 12px rgba(0, 0, 0, .07);
	--shadow: 0 16px 40px rgba(0, 0, 0, .14);
	--maxw: 1180px;
	--ease: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ink);
	background: var(--paper);
	line-height: 1.6;
	font-size: 17px;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-700); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--green-600); }

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

.tg-container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---- Buttons ----------------------------------------------------------- */
.btn,
.slider-readmore,
.trainer-readmore,
.blog-readmore,
.fitness-forms button,
.fitness-forms input[type="submit"] {
	display: inline-block;
	background: var(--green);
	color: #14180a;
	font-weight: 800;
	letter-spacing: .03em;
	text-transform: uppercase;
	font-size: .9rem;
	padding: .8em 1.5em;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
	box-shadow: 0 6px 18px rgba(162, 187, 59, .35);
}
.btn:hover,
.slider-readmore:hover,
.trainer-readmore:hover,
.blog-readmore:hover,
.fitness-forms button:hover,
.fitness-forms input[type="submit"]:hover {
	background: var(--green-600);
	color: #14180a;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(162, 187, 59, .45);
}
.btn--ghost {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 2px #fff; }

/* ---- Header ------------------------------------------------------------ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--bg-dark);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 6px 24px rgba(0, 0, 0, .25);
}
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 72px;
}
.site-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.site-logo img { width: 200px; height: auto; }

.nav-burger { display: none; }

.site-nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 26px;
}
.site-nav__menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
}
.site-nav__menu a {
	display: block;
	color: #e8eae6;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: .86rem;
	padding: .55em .9em;
	border-radius: 999px;
	transition: color var(--ease), background var(--ease);
}
.site-nav__menu a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav__menu li.current-menu-item a,
.site-nav__menu a[aria-current="page"] { color: #14180a; background: var(--green); }

.site-nav__meta { display: flex; align-items: center; gap: 14px; }

.language-switcher { display: inline-flex; align-items: center; gap: 4px; }
.language-switcher a,
.language-switcher .lang-current {
	display: inline-block;
	padding: .2rem .5rem;
	border-radius: 6px;
	font-size: .8rem;
	font-weight: 700;
	color: #c9cdc4;
	transition: background var(--ease), color var(--ease);
}
.language-switcher a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.language-switcher .lang-current { background: var(--green); color: #14180a; }

.site-search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	color: #fff;
	background: rgba(255, 255, 255, .1);
	transition: background var(--ease), color var(--ease);
}
.site-search:hover { background: var(--green); color: #14180a; }

/* CSS-only mobile menu */
@media (max-width: 880px) {
	.nav-burger {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 46px;
		height: 40px;
		margin-left: auto;
		cursor: pointer;
		padding: 0 11px;
		border-radius: 10px;
		background: rgba(255, 255, 255, .08);
	}
	.nav-burger span { height: 3px; background: #fff; border-radius: 2px; transition: var(--ease); }
	.site-nav {
		position: fixed;
		inset: 72px 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin: 0;
		padding: 14px 20px 22px;
		background: var(--bg-dark-2);
		border-top: 1px solid rgba(255, 255, 255, .08);
		box-shadow: var(--shadow);
		max-height: calc(100vh - 72px);
		overflow: auto;
		transform: translateY(-12px);
		opacity: 0;
		visibility: hidden;
		transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
	}
	.nav-toggle:checked ~ .site-nav { opacity: 1; visibility: visible; transform: none; }
	.site-nav__menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.site-nav__menu a { padding: .8em 1em; font-size: 1rem; }
	.site-nav__meta { justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
}

/* ---- Hero (gradient) --------------------------------------------------- */
.hero {
	background: linear-gradient(120deg, var(--bg-dark) 0%, #1d2410 55%, var(--green-700) 100%);
	color: #fff;
	padding: clamp(48px, 9vw, 110px) 0;
	position: relative;
	overflow: hidden;
}
.hero::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -120px;
	width: 360px;
	height: 360px;
	background: radial-gradient(circle, rgba(162, 187, 59, .35), transparent 70%);
	pointer-events: none;
}
.hero__inner { position: relative; max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 6vw, 2.8rem); text-transform: uppercase; letter-spacing: -.01em; margin-bottom: .35em; overflow-wrap: anywhere; hyphens: auto; }
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: rgba(255, 255, 255, .85); margin: 0 0 1.6em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__actions .btn { text-align: center; }
@media (max-width: 560px) {
	.hero__actions { flex-direction: column; align-items: stretch; }
	.hero__actions .btn { width: 100%; }
}

/* ---- Page header (sub pages) ------------------------------------------ */
.page-header {
	background: linear-gradient(120deg, var(--bg-dark) 0%, #20280f 100%);
	color: #fff;
	padding: clamp(36px, 6vw, 64px) 0;
}
.page-header .entry-title { color: #fff; margin: 0; text-transform: uppercase; overflow-wrap: break-word; }
.page-header .admin-edit-link { margin-top: 12px; }

/* ---- Sections ---------------------------------------------------------- */
.section-wrapper { padding: clamp(40px, 6vw, 72px) 0; }
.section-wrapper:nth-of-type(even) { background: var(--surface); }
.section-title { text-align: center; text-transform: uppercase; position: relative; margin-bottom: 1.6em; }
.section-title span { position: relative; padding-bottom: .35em; display: inline-block; }
.section-title span::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 64px;
	height: 4px;
	border-radius: 2px;
	background: var(--green);
}

/* ---- Map --------------------------------------------------------------- */
#mapid {
	height: 440px;
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	z-index: 0;
}

/* ---- Trainer cards ----------------------------------------------------- */
.trainers-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 26px;
}
.trainers-wrapper__trainer {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform var(--ease), box-shadow var(--ease);
	display: flex;
	flex-direction: column;
}
.trainers-wrapper__trainer:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.trainer-page-img { position: relative; margin: 0; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface); }
.trainer-page-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.trainers-wrapper__trainer:hover .trainer-page-img img { transform: scale(1.05); }
.trainer-categories {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.trainer-category {
	background: var(--green);
	color: #14180a;
	font-weight: 800;
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: .35em .7em;
	border-radius: 999px;
}
.trainer-page-content-wrapper { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.trainer-page-title { margin: 0; font-size: 1.15rem; }
.trainer-page-title a { color: var(--ink); }
.trainer-page-title a:hover { color: var(--green-700); }
.trainer-page-content { color: var(--muted); font-size: .95rem; flex: 1; }
.trainer-page-content p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trainer-readmore { align-self: flex-start; }

/* ---- Blog / article cards --------------------------------------------- */
.blog-wrapper { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.blog-content-wrapper {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform var(--ease), box-shadow var(--ease);
	display: flex;
	flex-direction: column;
	position: relative;
}
.blog-content-wrapper:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-img { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-content-wrapper:hover .blog-img img { transform: scale(1.05); }
.post-date {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--bg-dark);
	color: #fff;
	font-size: .78rem;
	font-weight: 700;
	padding: .35em .7em;
	border-radius: 999px;
}
.blog-desc-wrap { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-title { margin: 0; font-size: 1.15rem; }
.blog-title a { color: var(--ink); }
.blog-desc { color: var(--muted); font-size: .95rem; flex: 1; }
.blog-desc p { margin: 0; }
.blog-readmore { align-self: flex-start; }

/* ---- Article list + sidebar layout ------------------------------------ */
.site-content { padding: clamp(36px, 6vw, 64px) 0; }
#main.right_sidebar > .tg-container { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
@media (max-width: 900px) { #main.right_sidebar > .tg-container { grid-template-columns: 1fr; } }

#primary article.hentry {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	margin-bottom: 30px;
}
#primary article.hentry .entry-thumbnail { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
#primary article.hentry .entry-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
#primary article.hentry .entry-title { margin: 0; padding: 20px 22px 0; font-size: 1.5rem; }
#primary article.hentry .entry-title a { color: var(--ink); }
#primary .entry-content { padding: 14px 22px 22px; }
#primary article.hentry .entry-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .9rem; padding: 8px 22px 0; }
.entry-meta i { color: var(--green-700); margin-right: 6px; }
.entry-meta .date::before { content: "•"; margin-right: 10px; color: var(--line); }

/* article detail */
#content-2 .hentry { background: var(--paper); }
#content-2 .entry-thumbnail { border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; box-shadow: var(--shadow-sm); }
.entry-content.clearfix { font-size: 1.05rem; }
.entry-content img { border-radius: var(--radius-sm); margin: 1em 0; }
.entry-footer { margin-top: 24px; }

/* sidebar */
#secondary .widget {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px 22px;
	margin-bottom: 24px;
}
#secondary .widget-title { margin: 0 0 14px; font-size: 1.05rem; text-transform: uppercase; }
#secondary .widget-title span { border-left: 4px solid var(--green); padding-left: 10px; }
#secondary .widget ul { list-style: none; margin: 0; padding: 0; }
#secondary .widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }
#secondary .widget li:last-child { border-bottom: 0; }
#secondary .widget a { color: var(--ink-2); font-weight: 600; }
#secondary .widget a:hover { color: var(--green-700); }

/* ---- Person profile ---------------------------------------------------- */
.profile-card {
	display: grid;
	grid-template-columns: 360px minmax(0, 1fr);
	gap: 36px;
	margin: clamp(32px, 5vw, 56px) 0;
	align-items: start;
}
@media (max-width: 820px) { .profile-card { grid-template-columns: 1fr; } }
.profile-card .entry-thumbnail {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	background: var(--surface);
}
.profile-card .entry-thumbnail img { width: 100%; height: auto; }
.profile-card__info { min-width: 0; }
.profile-card__top h2 { font-size: 1rem; text-transform: uppercase; color: var(--muted); margin: 0 0 .3em; letter-spacing: .04em; }
.profile-card__top p { margin: 0 0 18px; font-size: 1.1rem; font-weight: 600; }
.profile-card__table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; }
.profile-card__table td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.profile-card__label { color: var(--muted); font-weight: 700; width: 38%; text-transform: uppercase; font-size: .82rem; letter-spacing: .03em; }
.profile-card__value { word-break: break-word; }
.profile-card__socials { display: flex; gap: 12px; }
.profile-card__icon {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-family: FontAwesome;
	font-size: 1.1rem;
	transition: transform var(--ease), filter var(--ease);
}
.profile-card__icon:hover { transform: translateY(-3px); color: #fff; filter: brightness(1.1); }
.profile-card__icon--fb { background: #1877f2; }
.profile-card__icon--fb::before { content: "\f09a"; }
.profile-card__icon--insta { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.profile-card__icon--insta::before { content: "\f16d"; }
.profile-card__text { grid-column: 1 / -1; }
.profile-card__text h2 { text-transform: uppercase; }

#content-2 { margin: 40px 0; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---- Forms ------------------------------------------------------------- */
.fitness-forms { max-width: 640px; }
.fitness-forms .form-group,
.fitness-forms > div { margin-bottom: 16px; }
.fitness-forms label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink-2); }
.fitness-forms input[type="text"],
.fitness-forms input[type="email"],
.fitness-forms input[type="number"],
.fitness-forms input[type="tel"],
.fitness-forms input[type="file"],
.fitness-forms select,
.fitness-forms textarea {
	width: 100%;
	padding: .7em .9em;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font: inherit;
	color: var(--ink);
	background: var(--paper);
	transition: border-color var(--ease), box-shadow var(--ease);
}
.fitness-forms input:focus,
.fitness-forms select:focus,
.fitness-forms textarea:focus {
	outline: 0;
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(162, 187, 59, .25);
}
.fitness-forms textarea { min-height: 150px; resize: vertical; }
.fitness-forms button[type="submit"],
.fitness-forms input[type="submit"] { margin-top: 18px; }
.fitness-forms .help-block, .fitness-forms small { color: var(--muted); font-size: .9rem; }
.fitness-forms ul { color: #c0392b; font-size: .9rem; padding-left: 1.1em; }

/* search hero form */
.search-hero__form { display: flex; gap: 10px; max-width: 640px; margin-top: 8px; }
.search-hero__form .search-field {
	flex: 1;
	padding: .85em 1.1em;
	border: 0;
	border-radius: 999px;
	font: inherit;
}
.search-hero__form .searchsubmit {
	border: 0;
	border-radius: 999px;
	background: var(--green);
	color: #14180a;
	font-weight: 800;
	padding: 0 1.3em;
	cursor: pointer;
	transition: background var(--ease);
}
.search-hero__form .searchsubmit:hover { background: var(--green-600); }

/* ---- Alerts ------------------------------------------------------------ */
.alert { padding: 14px 0; color: #14180a; font-weight: 600; }
.alert .tg-container { display: flex; align-items: center; gap: 10px; }
.alert-success { background: #d8eaa6; }
.alert-warning { background: #ffe1a8; }
.alert .close { margin-left: auto; cursor: pointer; opacity: .6; }
.alert .close::before { content: "✕"; }

/* ---- Admin edit link (logged-in) -------------------------------------- */
.admin-edit-link {
	display: inline-block;
	padding: .3rem .8rem;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 999px;
	font-size: .85rem;
	color: #fff;
	transition: background var(--ease);
}
.admin-edit-link:hover { background: rgba(255, 255, 255, .15); color: #fff; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { margin-top: auto; background: var(--bg-dark); color: #b9bdb4; }
.site-footer__top { padding: clamp(40px, 6vw, 64px) 0; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
@media (max-width: 640px) { .site-footer__cols { grid-template-columns: 1fr; gap: 24px; } }
.site-footer .widget-title { color: #fff; font-size: 1.05rem; text-transform: uppercase; margin: 0 0 16px; }
.site-footer .widget-title span { border-left: 4px solid var(--green); padding-left: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 6px 0; }
.site-footer a { color: #c9cdc4; }
.site-footer a:hover { color: var(--green); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: .85rem; color: #8b8f86; }

/* ---- Static content pages --------------------------------------------- */
.entry-content > p { margin: 0 0 1.1em; }
blockquote {
	margin: 1.5em 0;
	padding: 14px 22px;
	border-left: 4px solid var(--green);
	background: var(--surface);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
