/*
Theme Name: SuperPapricky.cz
Theme URI: https://superpapricky.cz
Author: superpapricky.cz
Description: Lehká šablona pro web o chilli papričkách – databáze odrůd s pálometrem, pěstitelský kalendář po měsících, články a affiliate odkazy.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: superpapricky
License: GPL-2.0-or-later
*/

:root {
	--bg: #FFFBF5;
	--cream: #FFF3DD;
	--white: #FFFFFF;
	--ink: #2A1F1A;
	--muted: #5C4E44;
	--soft: #6E5E51;
	--line: #F0E2D0;
	--line-strong: #E6D3BB;
	--track: #F5ECE1;
	--red: #C8281E;
	--red-link: #B3241B;
	--red-dark: #7E170F;
	--yellow: #F2B233;
	--green: #1F5E3B;
	--green-dark: #17402A;
	--amber: #9A4A0B;
	--display: 'Bricolage Grotesque', Inter, system-ui, sans-serif;
	--body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-link); }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

h1, h2, h3, h4 {
	font-family: var(--display);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	left: 16px; top: 16px; z-index: 100;
	background: var(--white); color: var(--ink);
	padding: 12px 16px; border-radius: 8px;
}

/* ---------- Tlačítka ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px;
	text-decoration: none;
	font-family: var(--body);
	font-weight: 600; font-size: 17px; line-height: 1.2;
	padding: 0 26px;
	border-radius: 999px;
	border: 1px solid transparent;
	cursor: pointer;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn-light:hover { border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.eyebrow {
	margin: 0 0 16px;
	font-size: 14px; font-weight: 600;
	letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--amber);
}
.more { display: inline-block; font-weight: 600; font-size: 16px; padding: 12px 0; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; }

/* ---------- Hlavička ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 16px; padding-top: 16px; padding-bottom: 16px;
}
.logo {
	display: flex; align-items: center; gap: 10px;
	text-decoration: none; color: var(--ink);
	font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em;
}
.logo:hover { color: var(--ink); }
.logo b { color: var(--red); font-weight: 800; }
.logo img { max-height: 48px; width: auto; }

.menu-toggle {
	display: none;
	width: 48px; height: 48px;
	align-items: center; justify-content: center;
	background: none; border: 1px solid var(--line-strong); border-radius: 12px;
	color: var(--ink); cursor: pointer;
}
.main-nav ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
}
.main-nav a {
	display: block;
	color: var(--ink); text-decoration: none;
	padding: 12px 14px; font-weight: 500; font-size: 15px;
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--red); }
.main-nav .menu-cta > a {
	background: var(--yellow); color: var(--ink);
	border-radius: 999px; font-weight: 600;
	padding: 12px 18px; margin-left: 8px;
}
.main-nav .menu-cta > a:hover { background: #E3A21F; color: var(--ink); }
.main-nav .sub-menu { display: none; }

@media (max-width: 860px) {
	.menu-toggle { display: inline-flex; }
	.main-nav { display: none; width: 100%; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav a { padding: 14px 4px; border-top: 1px solid var(--line); }
	.main-nav .menu-cta > a { margin: 12px 0 4px; text-align: center; border-top: 0; }
}

/* ---------- Hero ---------- */
.hero { background: var(--cream); padding: 56px 0 96px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text { flex: 1 1 440px; min-width: 0; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-lead { margin: 24px 0 0; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 520px; }

.scoville { flex: 1 1 400px; min-width: 0; padding: 28px; box-shadow: 0 12px 32px rgba(154, 74, 11, 0.08); }
.scoville-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.scoville-head h2 { font-size: 22px; }
.small-muted { font-size: 13px; color: var(--soft); }
.scale { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.scale-row { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.scale-row a { font-weight: 600; color: var(--ink); text-decoration: none; }
.scale-row a:hover { color: var(--red); }
.scale-row span { color: var(--soft); text-align: right; }
.bar { height: 10px; background: var(--track); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; }

/* ---------- Co teď dělat ---------- */
.season { margin-top: -44px; position: relative; }
.season-box {
	background: var(--white);
	border: 1px solid #DCEBDF; border-top: 6px solid #3E8C5A; border-radius: 20px;
	padding: 32px;
	display: flex; flex-wrap: wrap; gap: 32px; align-items: center;
	box-shadow: 0 12px 32px rgba(31, 94, 59, 0.08);
}
.season-title { flex: 1 1 260px; min-width: 0; }
.season .eyebrow { color: var(--green); margin: 0; }
.season h2 { margin-top: 8px; font-size: 34px; color: var(--green-dark); }
.season ol {
	flex: 2 1 520px; min-width: 0;
	margin: 0; padding: 0; list-style: none;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
}
.season li { font-size: 16px; line-height: 1.5; color: #3F4A42; }
.season li strong { display: block; font-size: 17px; color: var(--green-dark); }

/* ---------- Sekce a mřížky ---------- */
.section { padding: 88px 0 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head h2, .page-title { font-size: clamp(32px, 4vw, 44px); }
.section-head p { margin: 8px 0 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; }
.grid-posts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.thumb {
	aspect-ratio: 16 / 10;
	background: var(--cream);
	display: flex; align-items: center; justify-content: center;
	color: #7A6656; font-size: 14px;
	overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 72px; height: 72px; opacity: 0.55; }

/* Karta odrůdy */
.variety-card {
	display: flex; flex-direction: column;
	background: var(--white); border: 1px solid var(--line); border-radius: 16px;
	overflow: hidden; text-decoration: none; color: var(--ink);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.variety-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(154, 74, 11, 0.1); color: var(--ink); }
.variety-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.variety-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.variety-top h3 { font-size: 22px; }
.species { font-size: 13px; color: var(--soft); font-style: italic; white-space: nowrap; }
.variety-card .heat-label { display: none; }
.variety-card .heat { flex-wrap: nowrap; }
.variety-body p { margin: 0; font-size: 15px; line-height: 1.5; color: #4E4038; }

/* Pálometr */
.heat { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.heat-label { font-size: 13px; color: var(--soft); }
.heat-dots { display: flex; gap: 3px; }
.heat-dots i { width: 14px; height: 14px; border-radius: 4px; background: var(--track); }
.heat-dots i.on { background: var(--red); }

/* Karta článku */
.post-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; }
.post-card .thumb { border-radius: 16px; }
.post-card:hover { color: var(--ink); }
.post-card:hover h3 { color: var(--red); }
.cat { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.post-card h3 { font-size: 23px; line-height: 1.2; }
.meta { margin: 0; font-size: 15px; color: var(--soft); }

/* ---------- Newsletter ---------- */
.newsletter { padding: 88px 0; }
.newsletter-box {
	background: var(--yellow); border-radius: 24px;
	padding: 48px 40px;
	display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
}
.newsletter-box > div { flex: 1 1 380px; min-width: 0; }
.newsletter h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.05; }
.newsletter p { margin: 12px 0 0; color: #3B2A08; }
.newsletter form { flex: 1 1 380px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter input[type="email"] {
	flex: 1 1 220px; min-width: 0; height: 52px;
	border: 0; border-radius: 999px; padding: 0 22px;
	font-size: 16px; font-family: var(--body); color: var(--ink); background: var(--white);
}

/* ---------- Patička ---------- */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); color: #4E4038; padding: 48px 0; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-top .logo { font-size: 22px; }
.footer-top p { margin: 8px 0 0; font-size: 15px; max-width: 320px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.footer-nav a { color: #4E4038; display: block; padding: 8px 0; }
.footer-note { margin: 32px 0 0; font-size: 13px; color: var(--soft); }

/* ---------- Detail odrůdy ---------- */
.variety-hero { background: var(--cream); padding: 32px 0 56px; }
.breadcrumbs { font-size: 14px; color: var(--soft); margin: 0 0 24px; }
.breadcrumbs a { color: var(--soft); }
.variety-hero-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.variety-photo {
	flex: 1 1 420px; min-width: 0;
	aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden;
	background: var(--white); border: 1px solid var(--line);
	display: flex; align-items: center; justify-content: center; color: #7A6656;
}
.variety-photo img { width: 100%; height: 100%; object-fit: cover; }
.variety-photo svg { width: 120px; height: 120px; opacity: 0.5; }
.variety-intro { flex: 1 1 420px; min-width: 0; }
.variety-intro h1 { font-size: clamp(40px, 5vw, 64px); }
.variety-intro > .species { display: block; font-size: 17px; margin-top: 8px; }
.heat-big { margin-top: 24px; padding: 20px 24px; }
.heat-big .heat { font-size: 18px; }
.heat-big .heat-dots { gap: 4px; }
.heat-big .heat-dots i { width: 22px; height: 22px; border-radius: 6px; }
.shu { margin: 12px 0 0; font-size: 15px; color: var(--soft); }
.shu strong { color: var(--ink); }
.variety-lead { font-size: 19px; color: var(--muted); margin: 20px 0 0; }

.variety-layout { display: flex; flex-wrap: wrap; gap: 48px; padding: 56px 0 0; align-items: flex-start; }
.variety-aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.facts, .buy { padding: 24px; }
.facts h2, .buy h2 { font-size: 22px; margin-bottom: 16px; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 15px; }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; font-weight: 600; }
.shops { display: flex; flex-direction: column; gap: 10px; }
.shop {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	min-height: 52px; padding: 12px 16px;
	border: 1px solid var(--line-strong); border-radius: 12px;
	text-decoration: none; color: var(--ink); font-weight: 600;
}
.shop:hover { border-color: var(--red); color: var(--ink); }
.shop span { color: var(--red-link); white-space: nowrap; font-size: 15px; }
.disclosure { font-size: 13px; color: var(--soft); margin: 12px 0 0; }

/* ---------- Obsah článků ---------- */
.prose { flex: 999 1 560px; min-width: 0; max-width: 760px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 30px; margin: 40px 0 12px; }
.prose h3 { font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol, .prose figure, .prose table { margin: 0 0 18px; }
.prose img { border-radius: 12px; }
.prose blockquote { margin: 0 0 18px; padding: 4px 0 4px 20px; border-left: 4px solid var(--yellow); color: var(--muted); }
/* Tabulky: jednotné světlé ohraničení (přebíjí výchozí styl bloku Tabulka ve WordPressu) */
.prose .wp-block-table { margin: 0 0 24px; overflow-x: auto; }
.prose table,
.prose .wp-block-table table {
	width: 100%; border-collapse: separate; border-spacing: 0;
	font-size: 15px; line-height: 1.5;
	background: var(--white); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden;
}
.prose .wp-block-table thead,
.prose .wp-block-table tfoot { border: 0; }
.prose th, .prose td,
.prose .wp-block-table th,
.prose .wp-block-table td {
	border: 0; border-bottom: 1px solid var(--line);
	padding: 12px 14px; text-align: left; vertical-align: top;
}
.prose th + th, .prose td + td,
.prose .wp-block-table th + th,
.prose .wp-block-table td + td { border-left: 1px solid var(--line); }
.prose th, .prose thead td,
.prose .wp-block-table th,
.prose .wp-block-table thead td { background: var(--cream); font-weight: 600; }
.prose tbody tr:last-child > *,
.prose .wp-block-table tbody tr:last-child > * { border-bottom: 0; }
.prose .wp-block-table figcaption { text-align: left; }
.prose .wp-block-table .has-fixed-layout { table-layout: auto; }
.prose th, .prose td { overflow-wrap: normal; word-break: normal; }
@media (max-width: 600px) {
	.prose table { font-size: 14px; }
	.prose th, .prose td,
	.prose .wp-block-table th,
	.prose .wp-block-table td { padding: 10px; }
}
.prose figcaption { font-size: 14px; color: var(--soft); margin-top: 8px; }

/* ---------- Archiv a obecné stránky ---------- */
.page-head { background: var(--cream); padding: 48px 0; }
.page-head p { margin: 12px 0 0; color: var(--muted); max-width: 680px; }
.page-head .meta { margin-top: 12px; }
.content { padding-top: 48px; }
.content-narrow { max-width: 808px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip, .pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; min-width: 44px; padding: 0 18px;
	border-radius: 999px; border: 1px solid var(--line-strong);
	background: var(--white); color: var(--ink);
	text-decoration: none; font-weight: 600; font-size: 15px;
}
.chip:hover, .pagination a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active, .pagination .current { background: var(--red); border-color: var(--red); color: var(--white); }
.pagination .nav-links { margin: 48px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.empty { margin-top: 32px; color: var(--muted); }
.search-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.search-form input[type="search"] {
	flex: 1 1 240px; height: 52px; padding: 0 20px;
	border: 1px solid var(--line-strong); border-radius: 999px;
	font-size: 16px; font-family: var(--body); background: var(--white);
}
.search-form .search-submit { height: 52px; }

.comments-area { margin-top: 48px; }
.alignwide { max-width: 1000px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
