/*
Theme Name: Pielgrzymka Rowerowa
Theme URI: https://example.pl
Author: Pielgrzymka Rowerowa
Description: Motyw strony pielgrzymki rowerowej na Jasną Górę. Zdjęcie przewodnie jako stałe tło na każdej podstronie, półprzezroczyste panele treści, przezroczysty nagłówek i animowany ekran ładowania wyśrodkowany na słońcu.
Version: 2.2
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: pielgrzymka-rowerowa
*/

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('assets/fonts/inter-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-024F, U+0300-0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
	font-family: 'Playfair Display';
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url('assets/fonts/playfair-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
	font-family: 'Playfair Display';
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url('assets/fonts/playfair-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-024F, U+0300-0304, U+0308, U+0329, U+1E00-1EFF;
}

:root {
	--sun-x: 13%;
	--sun-y: 39%;
	--bg-position: 26% 42%;

	--color-gold: #d9a441;
	--color-gold-bright: #f6cd7a;
	--color-gold-deep: #a97621;
	--color-ink: #0d0f16;

	--color-cream: #f7efe0;
	--color-cream-dim: #d8cdb9;
	--text-on-glass: #f5ecdc;
	--text-on-glass-dim: #c7bda9;

	--glass: rgba(14, 16, 23, 0.5);
	--glass-strong: rgba(10, 11, 17, 0.68);
	--glass-light: rgba(255, 248, 234, 0.9);
	--glass-border: rgba(255, 255, 255, 0.12);
	--glass-blur: 16px;

	--font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	--max-width: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
	font-family: var(--font-body);
	color: var(--text-on-glass);
	background: var(--color-ink);
	line-height: 1.7;
	min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--color-cream);
	line-height: 1.18;
	margin: 0 0 0.5em;
	letter-spacing: 0.01em;
}

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

/* ============ Global fixed background photo (every page) ============ */
#site-bg {
	position: fixed;
	inset: 0;
	z-index: -2;
	background-image: var(--hero-image);
	background-size: cover;
	background-position: var(--bg-position);
	background-repeat: no-repeat;
	transform: scale(1.03);
}
#site-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 60% 55% at var(--sun-x) var(--sun-y), rgba(20, 15, 8, 0.08) 0%, rgba(9, 10, 16, 0.42) 60%, rgba(7, 8, 13, 0.72) 100%),
		linear-gradient(180deg, rgba(6, 7, 12, 0.62) 0%, rgba(6, 7, 12, 0.12) 22%, rgba(6, 7, 12, 0.22) 68%, rgba(6, 7, 12, 0.72) 100%);
}

/* ============ Glass panel utility ============ */
.glass {
	background: var(--glass);
	border: 1px solid var(--glass-border);
	border-radius: 18px;
	backdrop-filter: blur(var(--glass-blur)) saturate(150%);
	-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
	box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* ============ Site header (fully transparent) ============ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: transparent;
	padding: 18px 0;
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}
.site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
}
.site-mark {
	flex: none;
	width: 40px;
	height: 40px;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.65));
}
.site-branding-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}
.site-title {
	margin: 0;
	font-size: 1.3rem;
	font-family: var(--font-heading);
	font-weight: 700;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
	white-space: nowrap;
}
.site-title a { color: var(--color-cream); text-decoration: none; }
.site-description {
	margin: 2px 0 0;
	font-size: 0.66rem;
	color: var(--color-gold-bright);
	font-family: var(--font-body);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
	letter-spacing: 0.04em;
}

.main-nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	margin: 0;
	padding: 0;
}
.main-nav a {
	color: var(--text-on-glass);
	padding: 9px 16px;
	display: inline-block;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 500;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
	transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item a {
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
	color: var(--color-gold-bright);
	text-decoration: none;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.nav-toggle {
	display: none;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: var(--color-cream);
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 1rem;
}

/* ============ Loader (front page), centered on the sun ============ */
#site-loader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	overflow: hidden;
	background: #050608;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.8s ease, visibility 0.8s ease;
}
#site-loader.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
#site-loader .loader-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-image: var(--hero-image, none);
	background-size: cover;
	background-position: var(--bg-position);
	transform: scale(1.08);
	animation: loader-breathe 3.2s ease-in-out infinite;
}
#site-loader .loader-glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at var(--sun-x) var(--sun-y), rgba(255, 246, 220, 0.9) 0%, rgba(255, 214, 140, 0.35) 10%, transparent 26%);
	animation: loader-pulse 2.6s ease-in-out infinite;
	mix-blend-mode: screen;
}
#site-loader .loader-shine {
	position: absolute;
	top: -30%;
	left: -70%;
	width: 55%;
	height: 170%;
	background: linear-gradient(
		100deg,
		transparent 0%,
		rgba(255, 238, 200, 0) 30%,
		rgba(255, 238, 200, 0.55) 50%,
		rgba(255, 224, 160, 0) 70%,
		transparent 100%
	);
	animation: loader-shine-sweep 3.2s ease-in-out infinite;
	mix-blend-mode: screen;
}
#site-loader .loader-caption {
	position: relative;
	z-index: 2;
	color: var(--color-cream);
	font-family: var(--font-heading);
	font-size: 1.1rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
	padding: 12px 26px;
	border: 1px solid rgba(255, 244, 214, 0.5);
	border-radius: 999px;
	background: rgba(10, 11, 17, 0.4);
	backdrop-filter: blur(4px);
}

@keyframes loader-breathe {
	0%, 100% { transform: scale(1.08); }
	50% { transform: scale(1.14); }
}
@keyframes loader-pulse {
	0%, 100% { opacity: 0.55; }
	50% { opacity: 1; }
}
@keyframes loader-shine-sweep {
	0% { left: -70%; }
	100% { left: 140%; }
}
@media (prefers-reduced-motion: reduce) {
	#site-loader .loader-image,
	#site-loader .loader-glow,
	#site-loader .loader-shine {
		animation: none;
	}
}

/* ============ Hero (front page) — transparent, sits on global bg ============ */
.hero {
	position: relative;
	min-height: 88vh;
	display: flex;
	align-items: flex-end;
	color: #fff;
}
.hero-content {
	position: relative;
	z-index: 2;
	padding: 48px 24px 72px;
	max-width: var(--max-width);
	margin: 0 auto;
	width: 100%;
}
.hero-eyebrow {
	color: var(--color-gold-bright);
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: 14px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.hero h1 {
	color: #fff;
	font-size: clamp(2.2rem, 6vw, 4rem);
	margin-bottom: 18px;
	text-shadow: 0 4px 26px rgba(0, 0, 0, 0.7);
}
.hero p {
	max-width: 640px;
	font-size: 1.15rem;
	color: var(--color-cream);
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}
.hero-actions {
	margin-top: 26px;
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}
.btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary {
	background: linear-gradient(135deg, var(--color-gold-deep), var(--color-gold) 55%, var(--color-gold-bright));
	color: #241a06;
	box-shadow: 0 14px 34px -12px rgba(217, 164, 65, 0.75);
}
.btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px -10px rgba(217, 164, 65, 0.9);
	text-decoration: none;
}
.btn-outline {
	border: 1px solid rgba(255, 255, 255, 0.55);
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(6px);
}
.btn-outline:hover {
	background: rgba(255, 255, 255, 0.16);
	transform: translateY(-3px);
	text-decoration: none;
}

/* ============ Sections ============ */
.section { padding: 72px 0; position: relative; }
.section-alt::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(6, 7, 12, 0) 0%, rgba(6, 7, 12, 0.28) 12%, rgba(6, 7, 12, 0.28) 88%, rgba(6, 7, 12, 0) 100%);
	pointer-events: none;
	z-index: -1;
}
.section-title {
	font-size: 2.1rem;
	margin-bottom: 10px;
	text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6);
}
.section-subtitle {
	color: var(--text-on-glass-dim);
	margin-bottom: 36px;
	max-width: 720px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.front-page-intro {
	max-width: 780px;
}
.front-page-intro p {
	font-size: 1.08rem;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 24px;
	margin-top: 36px;
}
.info-card {
	padding: 28px;
	border-top: 2px solid var(--color-gold);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover { transform: translateY(-6px); }
.info-card h3 {
	font-size: 1.15rem;
	margin-bottom: 10px;
	color: var(--color-gold-bright);
}
.info-card p { margin: 0; color: var(--text-on-glass-dim); }

.route-steps {
	margin-top: 36px;
	border-left: 2px solid var(--color-gold);
	list-style: none;
	padding-left: 0;
}
.route-steps li {
	position: relative;
	padding: 4px 0 30px 32px;
}
.route-steps li::before {
	content: "";
	position: absolute;
	left: -7px;
	top: 8px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: var(--color-gold-bright);
	border: 3px solid var(--color-ink);
	box-shadow: 0 0 0 2px var(--color-gold);
}
.route-steps h4 { margin-bottom: 6px; color: var(--color-cream); }
.route-steps .route-meta {
	display: inline-block;
	font-size: 0.78rem;
	color: var(--color-ink);
	background: var(--color-gold-bright);
	font-weight: 600;
	padding: 3px 12px;
	border-radius: 999px;
	margin-bottom: 8px;
}
.route-steps p { margin: 0; color: var(--text-on-glass-dim); }

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
	margin-top: 36px;
}
.gallery-grid figure {
	margin: 0;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--glass-border);
	box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.7);
	transition: transform 0.3s ease;
}
.gallery-grid figure:hover { transform: translateY(-6px); }
.gallery-grid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery-empty {
	margin-top: 36px;
	padding: 40px;
	border: 1px dashed rgba(255, 255, 255, 0.25);
	text-align: center;
	color: var(--text-on-glass-dim);
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 26px;
	margin-top: 36px;
}
.news-card {
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover { transform: translateY(-6px); }
.news-card .news-thumb {
	aspect-ratio: 16/9;
	background: linear-gradient(135deg, rgba(217, 164, 65, 0.35), rgba(10, 11, 17, 0.5));
}
.news-card .news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-date {
	font-size: 0.78rem;
	color: var(--color-gold-bright);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 8px;
	font-weight: 600;
}
.news-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.news-card h3 a { color: var(--color-cream); }
.news-card p { color: var(--text-on-glass-dim); font-size: 0.95rem; margin: 0 0 14px; }
.news-card .read-more { margin-top: auto; font-weight: 600; color: var(--color-gold-bright); }

/* ============ Generic pages / single posts — transparent title, glass body ============ */
.page-hero {
	padding: 64px 0 36px;
}
.page-hero h1 {
	text-shadow: 0 4px 22px rgba(0, 0, 0, 0.7);
	font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.page-hero .breadcrumb {
	color: var(--color-gold-bright);
	font-size: 0.85rem;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}
.page-hero .breadcrumb a { color: var(--color-gold-bright); }

.entry-content {
	max-width: 800px;
	margin: 0 auto 64px;
	padding: 48px;
}
.entry-content h2 { margin-top: 1.3em; color: var(--color-gold-bright); font-size: 1.5rem; }
.entry-content p { color: var(--text-on-glass); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; color: var(--text-on-glass); }
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote {
	border-left: 3px solid var(--color-gold);
	margin: 1.5em 0;
	padding: 0.2em 1.2em;
	color: var(--text-on-glass-dim);
	font-style: italic;
}
.entry-content a { text-decoration: underline; }

.post-list {
	max-width: 820px;
	margin: 0 auto 64px;
	padding: 12px 48px 40px;
}
.post-list article {
	padding: 28px 0;
	border-bottom: 1px solid var(--glass-border);
}
.post-list article:last-child { border-bottom: none; }
.post-list h2 { font-size: 1.4rem; margin-bottom: 8px; }
.post-list h2 a { color: var(--color-cream); }
.post-list p { color: var(--text-on-glass-dim); }
.post-list .news-date { display: block; margin-bottom: 10px; }

/* ============ Footer (glass strip, not solid) ============ */
.site-footer {
	margin: 40px auto 24px;
	padding: 40px;
	font-size: 0.9rem;
	color: var(--text-on-glass-dim);
}
.site-footer a { color: var(--color-gold-bright); }
.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 26px;
	margin-bottom: 26px;
}
.footer-grid h4 { color: var(--color-cream); font-size: 1rem; margin-bottom: 12px; }
.footer-bottom {
	border-top: 1px solid var(--glass-border);
	padding-top: 20px;
	text-align: center;
	color: var(--text-on-glass-dim);
}

@media (max-width: 780px) {
	.nav-toggle { display: inline-block; }
	.main-nav { display: none; width: 100%; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; }
	.entry-content, .post-list { padding: 32px 24px; }
	.site-footer { margin: 32px auto 16px; padding: 28px 24px; }
}
