/*
Theme Name: CCC — Combat Club Condor
Theme URI: https://www.combatcondor.sk
Author: Športový Kombat Klub Kondor Prešov
Description: Téma pre strelecký klub Combat Club Condor. Svetlý dizajn v klubových farbách, tmavá hlavička a pätička. Pripravená pre plugin CCC Klub (členovia, preteky, brigády, QR platby).
Version: 1.5.2
Requires at least: 6.5
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: ccc-theme
*/

:root {
	--bg:       #ffffff;
	--bg-2:     #f4f7f9;
	--surface:  #ffffff;
	--line:     #e1e8ed;
	--line-2:   #cfd9e0;
	--ink:      #16212a;
	--muted:    #64798a;
	--navy:     #16212a;
	--blue:     #1684bf;
	--blue-hi:  #1071a6;
	--blue-lt:  #43b0e8;
	--gold:     #d9a215;
	--gold-lt:  #f2c230;
	--green:    #1e8a5f;
	--red:      #c4344a;
	--radius:   14px;
	--shadow:   0 1px 2px rgba(22,33,42,.05), 0 6px 20px rgba(22,33,42,.06);
	--shadow-h: 0 10px 30px rgba(22,33,42,.10);
	--wrap:     1180px;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: "Barlow Condensed", Inter, sans-serif;
	line-height: 1.1;
	margin: 0 0 .5em;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hi); }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.skip-link {
	position: absolute; left: -9999px;
}
.skip-link:focus {
	left: 12px; top: 12px; z-index: 999;
	background: #fff; padding: 10px 16px; border-radius: 8px;
}

/* ---------------------------------------------------------------- buttons */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border: 0;
	border-radius: 9px;
	font: inherit;
	font-weight: 600;
	font-size: 14.5px;
	cursor: pointer;
	transition: .15s;
	text-decoration: none;
}
.btn-p { background: var(--blue); color: #fff; }
.btn-p:hover { background: var(--blue-hi); color: #fff; }
.btn-g { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn-g:hover { border-color: var(--blue); color: var(--blue); }
.btn-gold { background: var(--gold); color: #241b00; }
.btn-gold:hover { filter: brightness(1.06); color: #241b00; }
.btn-ghost-light {
	background: transparent; color: #fff;
	border: 1px solid rgba(255,255,255,.28);
}
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ---------------------------------------------------------------- header */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.94);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }

.nav {
	display: flex; align-items: center; gap: 22px;
	height: 78px;
}
.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand .t1 {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 700; font-size: 23px;
	text-transform: uppercase; letter-spacing: .04em;
	line-height: 1; color: var(--ink);
}
.brand .t2 {
	font-size: 11px; color: var(--muted);
	text-transform: uppercase; letter-spacing: .16em; margin-top: 3px;
}

.menu-main { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu-main li { position: relative; }
.menu-main > li > a {
	display: block; padding: 9px 13px; border-radius: 8px;
	font-size: 14.5px; font-weight: 500; color: #42576a;
}
.menu-main > li > a:hover { background: var(--bg-2); color: var(--ink); }
.menu-main > li.current-menu-item > a,
.menu-main > li.current_page_item > a,
.menu-main > li.current-menu-parent > a { color: var(--blue); font-weight: 600; }

.menu-main .sub-menu {
	position: absolute; left: 0; top: 100%;
	min-width: 210px; padding: 7px; margin: 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 11px;
	box-shadow: var(--shadow-h);
	opacity: 0; visibility: hidden; transform: translateY(5px);
	transition: .15s;
}
.menu-main li:hover > .sub-menu,
.menu-main li:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.menu-main .sub-menu a {
	display: block; padding: 9px 12px; border-radius: 7px;
	font-size: 14.5px; color: #42576a;
}
.menu-main .sub-menu a:hover { background: var(--bg-2); color: var(--ink); }

.nav-actions { display: flex; gap: 10px; align-items: center; }

.nav-toggle {
	display: none;
	background: transparent; border: 1px solid var(--line-2);
	border-radius: 8px; padding: 9px 11px; cursor: pointer;
}
.nav-toggle span {
	display: block; width: 20px; height: 2px; background: var(--ink);
	margin: 4px 0; border-radius: 2px;
}

/* ---------------------------------------------------------------- hero */

.hero {
	position: relative;
	background: var(--navy);
	color: #eaf1f6;
	padding: 92px 0 80px;
	overflow: hidden;
}
.hero::before {
	content: ""; position: absolute; inset: 0;
	background:
		radial-gradient(900px 420px at 78% 20%, rgba(22,132,191,.28), transparent 62%),
		radial-gradient(700px 380px at 10% 82%, rgba(242,194,48,.08), transparent 60%);
}
.hero-in {
	position: relative;
	display: grid; grid-template-columns: 1.05fr .95fr;
	gap: 56px; align-items: center;
}
.kicker {
	display: inline-flex; align-items: center; gap: 9px;
	font-size: 12px; font-weight: 700; letter-spacing: .18em;
	text-transform: uppercase; color: var(--gold-lt); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--gold-lt); }
.hero h1 {
	font-size: 64px; font-weight: 700;
	text-transform: uppercase; margin-bottom: 18px; color: #fff;
}
.hero h1 span { color: var(--blue-lt); }
.hero p { font-size: 17.5px; color: #a9bdca; max-width: 520px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.video-frame {
	position: relative; border-radius: var(--radius); overflow: hidden;
	border: 1px solid rgba(255,255,255,.12);
	background: #000; aspect-ratio: 16/9;
	box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* page banner (every page except the front page) */
.page-hero {
	background: var(--navy); color: #fff;
	padding: 54px 0 46px;
	position: relative; overflow: hidden;
}
.page-hero::before {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(700px 300px at 85% 30%, rgba(22,132,191,.26), transparent 60%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: 44px; font-weight: 700; text-transform: uppercase; margin: 0; }
.page-hero p { color: #a9bdca; margin: 8px 0 0; max-width: 640px; }

.crumbs { font-size: 13px; color: #7f95a5; margin-bottom: 10px; }
.crumbs a { color: #a9bdca; }
.crumbs a:hover { color: #fff; }

/* ---------------------------------------------------------------- stats */

.stats {
	display: grid; grid-template-columns: repeat(4, 1fr);
	gap: 1px; background: var(--line);
	border-bottom: 1px solid var(--line);
}
.stat { background: #fff; padding: 26px 22px; text-align: center; }
.stat b {
	display: block; font-family: "Barlow Condensed", sans-serif;
	font-size: 36px; font-weight: 700; color: var(--blue); line-height: 1;
}
.stat span {
	font-size: 12.5px; color: var(--muted);
	text-transform: uppercase; letter-spacing: .1em;
}

/* ---------------------------------------------------------------- sections */

.section { padding: 78px 0; }
.section.alt { background: var(--bg-2); }
.section-sm { padding: 52px 0; }

.sec-head { margin-bottom: 32px; }
.sec-head .k {
	font-size: 12px; font-weight: 700; letter-spacing: .18em;
	text-transform: uppercase; color: var(--blue); margin-bottom: 9px;
}
.sec-head h2 { font-size: 40px; font-weight: 700; text-transform: uppercase; margin: 0; }
.sec-head p { color: var(--muted); margin: 8px 0 0; max-width: 640px; }
.head-row {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 20px; flex-wrap: wrap;
}

.panel {
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ---------------------------------------------------------------- events */

.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.ev {
	display: flex; flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-top: 3px solid var(--blue);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: .18s;
}
.ev:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.ev.is-duty { border-top-color: var(--gold); background: #fffdf6; }

.ev-top { display: flex; gap: 16px; padding: 20px 20px 0; }
.date {
	flex-shrink: 0; width: 62px; text-align: center;
	background: var(--bg-2); border: 1px solid var(--line);
	border-radius: 10px; padding: 9px 0;
}
.date b {
	display: block; font-family: "Barlow Condensed", sans-serif;
	font-size: 27px; font-weight: 700; line-height: 1;
}
.date span {
	font-size: 11px; color: var(--muted);
	text-transform: uppercase; letter-spacing: .08em;
}
.tag {
	display: inline-block; font-size: 10.5px; font-weight: 700;
	letter-spacing: .13em; text-transform: uppercase;
	padding: 3px 9px; border-radius: 5px; margin-bottom: 7px;
}
.t-match { background: #e6f2f9; color: var(--blue-hi); }
.t-duty  { background: #fbf0d5; color: #8a6708; }

.ev h3 { font-size: 20px; font-weight: 600; margin: 0 0 5px; }
.ev h3 a { color: var(--ink); }
.ev h3 a:hover { color: var(--blue); }
.ev .loc { font-size: 13.5px; color: var(--muted); }

.ev-foot {
	margin-top: auto; padding: 16px 20px;
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; flex-wrap: wrap;
	border-top: 1px solid var(--line);
}
.ev-foot .meta { font-size: 13px; color: var(--muted); }
.ev-foot .meta b { color: var(--ink); }
.lnk { font-size: 13.5px; font-weight: 600; color: var(--blue); }

/* ---------------------------------------------------------------- tables */

.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th {
	text-align: left; padding: 11px 12px;
	font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em;
	color: var(--muted); border-bottom: 1px solid var(--line);
}
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- gallery */

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid a {
	display: block; aspect-ratio: 4/3; border-radius: 11px; overflow: hidden;
	border: 1px solid var(--line); background: var(--bg-2);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: .25s; }
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-empty {
	aspect-ratio: 4/3; border-radius: 11px; border: 1px dashed var(--line-2);
	background: var(--bg-2); display: flex; align-items: center;
	justify-content: center; color: #93a6b2; font-size: 13px;
}

/* ---------------------------------------------------------------- content */

.entry { max-width: 780px; }
.entry h2 { font-size: 30px; margin-top: 1.6em; }
.entry h3 { font-size: 23px; margin-top: 1.4em; }
.entry p, .entry ul, .entry ol { margin: 0 0 1.1em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .35em; }
.entry img { border-radius: 11px; }
.entry blockquote {
	margin: 1.4em 0; padding: 14px 20px;
	border-left: 3px solid var(--blue); background: var(--bg-2);
	border-radius: 0 10px 10px 0;
}
.entry table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.entry th, .entry td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }

.doc-links { display: grid; gap: 10px; margin-top: 18px; }
.doc-link {
	display: flex; align-items: center; gap: 12px;
	padding: 14px 16px; border: 1px solid var(--line);
	border-radius: 11px; background: #fff; box-shadow: var(--shadow);
	color: var(--ink); font-weight: 600;
}
.doc-link:hover { border-color: var(--blue); color: var(--blue); }
.doc-link small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- cta strip */

.cta {
	background: var(--navy); color: #fff;
	padding: 58px 0; position: relative; overflow: hidden;
}
.cta::before {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(700px 320px at 80% 40%, rgba(22,132,191,.3), transparent 62%);
}
.cta .wrap {
	position: relative;
	display: flex; align-items: center; justify-content: space-between;
	gap: 26px; flex-wrap: wrap;
}
.cta h2 { font-size: 36px; text-transform: uppercase; margin: 0 0 6px; color: #fff; }
.cta p { color: #a9bdca; margin: 0; }

/* ---------------------------------------------------------------- footer */

.site-footer {
	background: var(--navy); color: #9fb2c0;
	padding: 52px 0 26px;
}
.footer-grid {
	display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 36px; margin-bottom: 34px;
}
.site-footer .brand .t1 { color: #fff; }
.site-footer h4 {
	font-size: 12px; text-transform: uppercase; letter-spacing: .13em;
	color: var(--gold-lt); margin: 0 0 13px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a, .site-footer p { color: #9fb2c0; font-size: 14px; }
.site-footer li a { display: block; margin-bottom: 7px; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
	font-size: 13px; color: #7a8d9b;
	display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}

/* ---------------------------------------------------------------- misc */

.notice-box {
	display: flex; align-items: flex-start; gap: 10px;
	background: #fff9e8; border: 1px solid #ebd79a;
	border-radius: 10px; padding: 13px 16px;
	font-size: 14px; color: #7a5c05; margin-bottom: 22px;
}

.pagination { display: flex; gap: 6px; margin-top: 34px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: 9px;
	color: var(--ink); font-weight: 600; font-size: 14px;
}
.pagination .page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
	.nav-toggle { display: block; }
	.menu-main {
		display: none; position: absolute; left: 0; right: 0; top: 78px;
		flex-direction: column; gap: 0;
		background: #fff; border-bottom: 1px solid var(--line);
		padding: 10px 16px 16px;
		box-shadow: var(--shadow-h);
	}
	.menu-main.open { display: flex; }
	.menu-main .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; padding: 0 0 0 12px;
	}
	.hero-in { grid-template-columns: 1fr; gap: 36px; }
	.hero h1 { font-size: 44px; }
	.events, .grid-3, .grid-4, .gallery-grid, .footer-grid, .grid-2 {
		grid-template-columns: 1fr 1fr;
	}
	.stats { grid-template-columns: 1fr 1fr; }
	.page-hero h1 { font-size: 34px; }
}

@media (max-width: 620px) {
	.events, .grid-2, .grid-3, .grid-4, .gallery-grid, .footer-grid {
		grid-template-columns: 1fr;
	}
	.nav-actions .btn-g { display: none; }
	.hero { padding: 62px 0 56px; }
	.hero h1 { font-size: 36px; }
	.sec-head h2 { font-size: 30px; }
	.section { padding: 54px 0; }
}
