:root {
	--navy: #16264a;
	--navy-dark: #0c1830;
	--accent: #2f5fae;
	--accent-dark: #1f4585;
	--bg: #f4f7fb;
	--bg-alt: #ffffff;
	--text: #1b2733;
	--text-muted: #5c7288;
	--border: #dfe6ee;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: 'Segoe UI', Roboto, Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}

.site-header {
	background: var(--navy);
	border-bottom: 3px solid var(--accent);
	position: sticky;
	top: 0;
	z-index: 10;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 16px;
	padding-bottom: 16px;
}

.logo {
	font-size: 1.4rem;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
}

.site-header nav a {
	color: #c7d6e6;
	text-decoration: none;
	/* margin-left: 24px; */
	font-weight: 600;
	transition: color 0.2s;
}

.site-header nav a:hover {
	color: var(--accent);
}

/* Rozbalovací menu přihlášeného uživatele */

.user-menu {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.user-menu-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	color: #c7d6e6;
	font-weight: 600;
	font-size: 1rem;
	font-family: inherit;
	user-select: none;
	list-style: none;
	padding: 6px 2px;
	transition: color 0.2s;
}

.user-menu-toggle::-webkit-details-marker {
	display: none;
}

.user-menu:hover .user-menu-toggle,
.user-menu[open] .user-menu-toggle {
	color: #fff;
}

.user-menu-caret {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.2s;
	opacity: 0.7;
}

.user-menu[open] .user-menu-caret {
	transform: translateY(2px) rotate(225deg);
}

.user-menu-dropdown {
	position: absolute;
	right: 0;
	top: calc(100% + 14px);
	background: var(--navy-dark);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	box-shadow: 0 16px 32px rgba(6, 14, 26, 0.45);
	min-width: 190px;
	overflow: hidden;
	z-index: 20;
}

.user-menu-dropdown a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	margin-left: 0;
	color: #c7d6e6;
	text-decoration: none;
	font-weight: 600;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.user-menu-dropdown a:last-child {
	border-bottom: none;
}

.user-menu-dropdown a:hover {
	background: rgba(255, 255, 255, 0.06);
	color: var(--accent);
}

.user-menu-dropdown a::before {
	content: '';
	flex-shrink: 0;
	width: 20px;
	height: 12px;
	border-radius: 50%;
	background: radial-gradient(ellipse at 35% 30%, #8fd0f2, var(--accent) 55%, var(--accent-dark) 100%);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* Hero slider (úvodní stránka) */

.hero-slider {
	position: relative;
	width: 100%;
	height: 440px;
	overflow: hidden;
	background: var(--navy);
}

.hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.7s ease;
}

.hero-slide.active {
	opacity: 1;
}

.hero-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hero-slide-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 32px 24px 20px;
	background: linear-gradient(transparent, rgba(15, 32, 54, 0.85));
	color: #fff;
	font-weight: 600;
}

.hero-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: rgba(15, 32, 54, 0.55);
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s;
}

.hero-slider-arrow:hover {
	background: var(--accent-dark);
}

.hero-slider-arrow.prev {
	left: 16px;
}

.hero-slider-arrow.next {
	right: 16px;
}

.hero-slider-dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
}

.hero-slider-dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
}

.hero-slider-dots button.active {
	background: #fff;
}

@media (max-width: 700px) {
	.hero-slider {
		height: 240px;
	}

	.hero-slider-arrow {
		width: 36px;
		height: 36px;
		font-size: 1.3rem;
	}
}

/* Split hero (slider + slogan vedle sebe) */

.hero-split {
	padding: 32px 0;
}

.hero-rows {
	display: grid;
	row-gap: 24px;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: stretch;
}

.hero-slider-tile {
	position: relative;
	min-height: 420px;
	border-radius: 16px;
	overflow: hidden;
	background: var(--navy);
}

.hero-slider-tile .hero-slider {
	height: 100%;
}

.hero-tile {
	background: var(--navy);
	color: #fff;
	border-radius: 16px;
	padding: 48px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hero-tile h1 {
	font-size: 2.2rem;
	margin: 0 0 16px;
	color: #fff;
}

.hero-tile p {
	color: #c7d6e6;
	margin: 0;
}

.hero-logo-small {
	max-width: 160px;
	max-height: 160px;
	object-fit: contain;
	margin-bottom: 20px;
}

.hero-tile-logo {
	align-items: center;
	justify-content: center;
	padding: 32px;
	min-height: 420px;
}

.hero-logo-year {
	margin-top: 16px;
	font-size: 1.6rem;
	font-weight: 700;
	color: #fff;
}

.hero-tile-logo .hero-logo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 12%;
}

@media (max-width: 900px) {
	.hero-grid {
		grid-template-columns: 1fr;
	}

	.hero-slider-tile {
		min-height: 280px;
	}
}

.hero {
	background: var(--navy);
	color: #fff;
	padding: 100px 0 80px;
	text-align: center;
	border-bottom: 3px solid var(--accent);
}

.hero h1 {
	font-size: 2.6rem;
	margin: 0 0 16px;
	color: #fff;
}

.hero p {
	color: #c7d6e6;
	max-width: 600px;
	margin: 0 auto;
}

.section {
	padding: 64px 0;
	border-bottom: 1px solid var(--border);
}

.section.alt {
	background: var(--bg-alt);
}

.section h2 {
	color: var(--navy);
	margin-top: 0;
	padding-bottom: 12px;
	border-bottom: 3px solid var(--accent);
	display: inline-block;
}

/* Nadcházející akce (jen pro přihlášené trenéry/administrátory) */

.upcoming {
	padding-top: 40px;
	padding-bottom: 40px;
	background: var(--bg-alt);
}

.upcoming-tabs {
	display: flex;
	gap: 4px;
	margin: 16px 0 0;
	border-bottom: 2px solid var(--border);
}

.upcoming-tab {
	display: inline-block;
	padding: 10px 16px;
	color: var(--text-muted);
	text-decoration: none;
	font-weight: 600;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
}

a.upcoming-tab:hover {
	color: var(--navy);
}

.upcoming-tab.is-active {
	color: var(--navy);
	border-bottom-color: var(--accent);
}

.upcoming-table-wrap {
	margin-top: 24px;
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--bg);
}

.upcoming-table {
	width: 100%;
	border-collapse: collapse;
}

.upcoming-table th,
.upcoming-table td {
	padding: 12px 16px;
	text-align: left;
	white-space: nowrap;
	border-bottom: 1px solid var(--border);
}

.upcoming-table th {
	background: var(--bg-alt);
	color: var(--text-muted);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 700;
}

.upcoming-table tbody tr:last-child td {
	border-bottom: none;
}

.upcoming-table tbody tr:hover {
	background: var(--bg-alt);
}

.upcoming-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	color: #fff;
	background: var(--text-muted);
}

.upcoming-badge.is-match {
	background: var(--accent-dark);
}

.upcoming-badge.is-training {
	background: #4c9a6a;
}

.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 24px;
}

.pagination-link {
	color: var(--accent-dark);
	font-weight: 600;
	text-decoration: none;
}

.pagination-link:hover {
	text-decoration: underline;
}

.pagination-info {
	color: var(--text-muted);
	font-size: 0.9rem;
}

.upcoming-link {
	display: inline-block;
	margin-top: 20px;
	color: var(--accent-dark);
	font-weight: 600;
	text-decoration: none;
}

.upcoming-link:hover {
	text-decoration: underline;
}

/* Profil (přihlášený uživatel) */

.profile-section {
	padding: 56px 0;
}

.profile-card {
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 40px;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
}

.profile-card h1 {
	margin-top: 0;
	margin-bottom: 24px;
	color: var(--navy);
	font-size: 1.5rem;
}

.profile-card .form-group {
	margin-bottom: 20px;
}

.profile-card label,
.profile-card .form-group-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: var(--text);
}

.profile-card .form-hint {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin: 0 0 12px;
}

.profile-card input[type='text'],
.profile-card input[type='email'] {
	width: 100%;
	padding: 10px 12px;
	border-radius: 4px;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--text);
}

.profile-card .checkbox-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.profile-card .checkbox-list label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: normal;
	margin-bottom: 0;
}

.profile-card .checkbox-list input {
	width: auto;
}

.profile-card .btn-save {
	width: 100%;
	padding: 10px 12px;
	margin-top: 8px;
	border: none;
	border-radius: 4px;
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.profile-card .btn-save:hover {
	background: var(--accent-dark);
}

.profile-card .text-danger {
	color: #c0392b;
	font-size: 0.9rem;
}

.site-footer {
	padding: 24px 0;
	text-align: center;
	color: #c7d6e6;
	font-size: 0.9rem;
	background: var(--navy);
}

/* Auth (Users module) */

.auth {
	padding: 80px 0;
	min-height: calc(100vh - 140px);
	display: flex;
	align-items: center;
}

.auth-container {
	display: flex;
	justify-content: center;
}

.auth-card {
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 40px;
	width: 100%;
	max-width: 400px;
}

.auth-card h1 {
	margin-top: 0;
	margin-bottom: 24px;
	color: var(--navy);
	font-size: 1.5rem;
}

.auth-card .form-hint {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin: -12px 0 20px;
}

.auth-card .form-group {
	margin-bottom: 20px;
}

.auth-card label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: var(--text);
}

.auth-card .label-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.auth-card .label-row a {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--accent-dark);
	text-decoration: none;
	white-space: nowrap;
}

.auth-card .label-row a:hover {
	text-decoration: underline;
}

.auth-card .checkbox-row label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: normal;
	margin-bottom: 0;
	cursor: pointer;
}

.auth-card .checkbox-row input {
	width: auto;
}

.auth-card table {
	width: 100%;
	border-collapse: collapse;
}

.auth-card td {
	padding: 8px 0;
}

.auth-card input[type='text'],
.auth-card input[type='email'],
.auth-card input[type='password'] {
	width: 100%;
	padding: 10px 12px;
	border-radius: 4px;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--text);
}

.auth-card input[type='text']:focus,
.auth-card input[type='email']:focus,
.auth-card input[type='password']:focus {
	outline: none;
	border-color: var(--accent);
}

.auth-card input[type='submit'],
.auth-card .btn-save {
	width: 100%;
	padding: 10px 12px;
	margin-top: 8px;
	border: none;
	border-radius: 4px;
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
}

.auth-card input[type='submit']:hover,
.auth-card .btn-save:hover {
	background: var(--accent-dark);
}

.auth-card .text-danger {
	color: #c0392b;
	font-size: 0.9rem;
	margin: 0 0 16px;
}

.auth-card .form-group .text-danger {
	margin: 6px 0 0;
}

.auth-links {
	margin-top: 16px;
	text-align: center;
}

.auth-links a {
	color: var(--text-muted);
}

/* Flash messages */

.flash {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 16px;
	background: var(--bg-alt);
	border-left: 4px solid var(--accent);
	border: 1px solid var(--border);
	border-left: 4px solid var(--accent);
}

/* Admin module */

.admin-header nav a {
	color: var(--text-muted);
	text-decoration: none;
	margin-left: 24px;
	font-weight: 600;
}

main.container {
	padding: 40px 0;
}
