/*
Theme Name: Travorium Travel
Theme URI: https://travorium.pl
Author: Travorium
Author URI: https://travorium.pl
Description: Lekki, szybki motyw blogowy stworzony dla Travorium - podróże, kraje, tanie hotele i apartamenty wakacyjne.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: travorium
*/

/* ===== ZMIENNE ===== */
:root {
	--color-primary: #0F6B66;
	--color-primary-dark: #0B4F4B;
	--color-accent: #E8974A;
	--color-sand: #FBF6EE;
	--color-ink: #1D2321;
	--color-ink-soft: #4B5563;
	--color-border: #E7E1D4;
	--radius: 14px;
	--shadow: 0 8px 24px rgba(15, 107, 102, 0.10);
	--font-head: 'Poppins', -apple-system, sans-serif;
	--font-body: 'Inter', -apple-system, sans-serif;
	--wrap: 1180px;
}

/* ===== RESET ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-ink);
	background: #fff;
	line-height: 1.65;
	font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
h1, h2, h3, h4 {
	font-family: var(--font-head);
	color: var(--color-ink);
	line-height: 1.25;
	margin: 0 0 0.5em;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ===== PRZYCISKI ===== */
.btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 600;
	font-family: var(--font-head);
	font-size: 15px;
	transition: all .2s ease;
	border: 2px solid transparent;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: #d6823a; color: #fff; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ===== HEADER ===== */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	z-index: 50;
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
}
.site-title {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 26px;
	color: var(--color-primary-dark);
}
.custom-logo { max-height: 56px; width: auto; }
.main-nav ul {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}
.main-nav a {
	color: var(--color-ink);
	font-weight: 500;
	font-size: 15px;
}
.main-nav a:hover { color: var(--color-primary); }
.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	flex-direction: column;
	gap: 5px;
}
.nav-toggle span {
	width: 24px;
	height: 2px;
	background: var(--color-ink);
	display: block;
}

/* ===== HERO ===== */
.hero {
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
	padding: 90px 24px 100px;
	text-align: center;
	position: relative;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-title {
	color: #fff;
	font-size: clamp(34px, 5vw, 54px);
	font-weight: 800;
	margin-bottom: 18px;
}
.hero-subtitle {
	color: rgba(255,255,255,0.9);
	font-size: 19px;
	margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== SEKCJE / SIATKA WPISÓW ===== */
.section { padding: 64px 0; }
.section-title {
	font-size: 30px;
	font-weight: 800;
	margin-bottom: 36px;
	text-align: center;
}
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.post-card {
	background: #fff;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	border: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,107,102,0.16); }
.post-card-thumb { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--color-sand); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-thumb-fallback {
	width: 100%; height: 100%;
	background: linear-gradient(135deg, var(--color-sand), #eee2c9);
}
.post-card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.post-card-cat {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--color-accent);
	margin-bottom: 10px;
}
.post-card-title { font-size: 19px; margin-bottom: 10px; }
.post-card-title a { color: var(--color-ink); }
.post-card-excerpt { color: var(--color-ink-soft); font-size: 15px; flex: 1; margin-bottom: 14px; }
.post-card-more { font-weight: 600; font-size: 14px; }

/* ===== POJEDYNCZY WPIS / STRONA ===== */
.single-post { padding: 56px 0 80px; max-width: 780px; }
.single-header { margin-bottom: 28px; }
.single-header h1 { font-size: 38px; }
.single-meta { color: var(--color-ink-soft); font-size: 14px; }
.single-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.single-content h2 { font-size: 26px; margin-top: 40px; }
.single-content h3 { font-size: 21px; margin-top: 28px; }
.single-content p { margin-bottom: 20px; color: var(--color-ink); }
.single-content ul, .single-content ol { margin-bottom: 20px; padding-left: 22px; }
.single-content li { margin-bottom: 8px; }
.single-content a { text-decoration: underline; }
.single-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--color-border);
	font-weight: 600;
	gap: 16px;
	flex-wrap: wrap;
}

/* ===== PAGINACJA ===== */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.pagination a, .pagination span {
	padding: 10px 16px;
	border-radius: 8px;
	border: 1px solid var(--color-border);
	font-weight: 600;
	font-size: 14px;
}
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ===== STOPKA ===== */
.site-footer {
	background: var(--color-primary-dark);
	color: rgba(255,255,255,0.85);
	padding: 36px 0;
	margin-top: 40px;
}
.footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 14px;
}
.footer-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.footer-nav a { color: rgba(255,255,255,0.85); }
.footer-nav a:hover { color: #fff; }

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 900px) {
	.post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
	.nav-toggle { display: flex; }
	.main-nav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: #fff;
		border-bottom: 1px solid var(--color-border);
		padding: 16px 24px;
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 14px; }
	.post-grid { grid-template-columns: 1fr; }
	.hero { padding: 64px 20px 72px; }
	.footer-inner { flex-direction: column; text-align: center; }
}
