/*
Theme Name:   Rehabilitace.info (GeneratePress)
Theme URI:    https://www.rehabilitace.info/
Description:  Podřízená šablona pro GeneratePress – zdravotní magazín a katalog Rehabilitace.info.
Author:       Rehabilitace.info
Template:     generatepress
Version:      1.0.5
Text Domain:  rehabilitace-gp
*/

/* ===== Základ ===== */
:root {
	--reh-accent: #1a9aa6;
	--reh-accent-dark: #137a84;
	--reh-text: #222;
	--reh-muted: #6b6b6b;
	--reh-border: #e5e5e5;
	--reh-bg-soft: #f4f8f9;
	--reh-dark: #2f3a45;
}

body {
	color: var(--reh-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.7;
}

a { color: var(--reh-accent); }
a:hover, a:focus { color: var(--reh-accent-dark); }

h1, h2, h3, h4, h5, h6 {
	color: #2f2f2f;
	font-weight: 700;
	line-height: 1.3;
}
h1 { font-size: 32px; }
h2 { font-size: 25px; }
h3 { font-size: 20px; }

.entry-content img { border-radius: 6px; }

/* ===== Horní lišta ===== */
.reh-topbar {
	background: var(--reh-dark);
	font-size: 14px;
}
.reh-topbar-inner {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 4px 18px;
	padding: 6px 20px;
}
.reh-topbar a { color: #fff; text-decoration: none; }
.reh-topbar a:hover { color: #9fe3ea; }

/* ===== Hlavička a menu ===== */
.site-logo img, .custom-logo { max-height: 60px; width: auto; }
.inside-header { padding-top: 16px; padding-bottom: 16px; }
.site-header { border-bottom: 1px solid var(--reh-border); }
.main-navigation .main-nav ul li a { font-weight: 600; }

/* ===== Výpisy článků (rubriky, vyhledávání) ===== */
.blog .inside-article,
.archive .inside-article,
.search .inside-article {
	border-bottom: 1px solid var(--reh-border);
}
.archive .entry-title,
.search .entry-title { font-size: 22px; }
.entry-meta { color: var(--reh-muted); font-size: 14px; }
.read-more,
.entry-summary a.read-more { font-weight: 700; }

/* ===== Reklamy ===== */
/* Automatické reklamy AdSense vložené mezi obsah a sloupec – roztáhnout na celou šířku nad obsah,
   jinak rozbijí rozvržení stránky (GeneratePress používá flexbox). */
.site-content { flex-wrap: wrap; }
.site-content > .google-auto-placed {
	flex: 0 0 100%;
	max-width: 100%;
	order: -1;
	margin-bottom: 20px;
}
.reh-ad {
	margin: 20px 0;
	text-align: center;
	clear: both;
}
.reh-ad-label {
	margin: 4px 0 0;
	font-size: 11px;
	color: #999;
	text-transform: uppercase;
	letter-spacing: .3px;
}

/* ===== Box autora ===== */
.reh-author-box {
	margin: 36px 0 24px;
	padding: 20px;
	background: var(--reh-bg-soft);
	border-radius: 8px;
}
.reh-author-heading { margin: 0 0 12px; font-size: 18px; }
.reh-author-inner { display: flex; gap: 16px; align-items: flex-start; }
.reh-author-img img { border-radius: 50%; display: block; }
.reh-author-name { margin: 0 0 6px; font-weight: 700; }
.reh-author-desc { margin: 0; font-size: 15px; color: #444; }

/* ===== Sdílení a doporučený obsah ===== */
.reh-share, .reh-more { margin: 28px 0; }
.reh-share h2, .reh-more h2 { font-size: 21px; }

/* ===== Postranní sloupec ===== */
.sidebar .widget {
	background: transparent;
	padding: 0 0 24px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--reh-border);
}
.sidebar .widget:last-child { border-bottom: 0; }
.sidebar .widget-title,
.sidebar .widget h2 {
	font-size: 20px;
	margin-bottom: 14px;
}

/* ===== Micro News (Kush Micro News) ===== */
#micro-news .wrapNews {
	border: 0 !important;
	border-bottom: 1px solid var(--reh-border) !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	padding: 0 0 14px !important;
	margin: 0 0 14px !important;
}
#micro-news .wrapNews:last-child { border-bottom: 0 !important; margin-bottom: 0 !important; }
#micro-news .wrapNews h3 {
	color: #2f2f2f !important;
	font-size: 16px !important;
	line-height: 1.35 !important;
	font-weight: 700 !important;
	margin: 0 0 6px !important;
}
#micro-news .wrapNews p {
	color: #333 !important;
	font-size: 15px !important;
	line-height: 1.6 !important;
	margin: 0 !important;
}
#micro-news .wrapNews .postedOn {
	position: static !important;
	display: block !important;
	margin-top: 10px !important;
	padding: 0 !important;
	border: 0 !important;
	font-size: 12px !important;
	line-height: 1.4 !important;
	color: #888 !important;
	text-transform: uppercase;
	letter-spacing: .3px;
}

/* ===== Související články (WordPress Related Posts) ===== */
.wp_rp_title {
	color: #2f2f2f !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	overflow-wrap: anywhere;
	hyphens: auto;
}
.wp_rp_title:hover { color: var(--reh-accent) !important; }

/* ===== Hodnocení hvězdičkami (Multi Rating) u nadpisů ===== */
.rating-result.after_title {
	display: inline-block;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	vertical-align: middle;
	white-space: nowrap;
	margin-left: 6px;
}
.rating-result.after_title .mr-star-rating i { font-size: 15px !important; }
.rating-result.after_title .star-result,
.rating-result.after_title .count {
	font-size: 14px !important;
	color: #888 !important;
}

/* ===== Tlačítka v obsahu (homepage) v barvě webu ===== */
.entry-content .wp-block-button__link {
	background: var(--reh-accent);
	color: #fff;
	border-radius: 6px;
	font-weight: 600;
}
.entry-content .wp-block-button__link:hover,
.entry-content .wp-block-button__link:focus {
	background: var(--reh-accent-dark);
	color: #fff;
}

/* ===== Katalog (Sabai) ===== */
.sabai-directory-category-children { margin-left: 22px; }

/* ===== Patička ===== */
.site-info { font-size: 14px; }
.site-info a { color: inherit; }
.reh-sep { opacity: .5; margin: 0 4px; }

/* ===== Náhradní shortcody staré šablony ===== */
.reh-col { margin-bottom: 1em; }
.reh-clear { clear: both; }
.reh-toggle {
	margin: 1em 0;
	padding: 10px 14px;
	background: var(--reh-bg-soft);
	border-radius: 6px;
}
.reh-toggle summary { cursor: pointer; font-weight: 700; }

/* ===== Mobil ===== */
@media (max-width: 768px) {
	body { font-size: 16px; }

	/* Hlavička: logo vlevo, menu (hamburger) vpravo na jednom řádku */
	.site-header .inside-header {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		padding: 10px 16px;
	}
	.site-header .site-logo, .site-header .site-branding { margin: 0; }
	.site-logo img, .custom-logo { max-height: 44px; }
	.site-header .main-navigation { width: auto; margin-left: auto; background: transparent; }
	.site-header #site-navigation.toggled { width: 100%; }
	.site-header .mobile-menu-control-wrapper,
	.site-header .mobile-menu-control-wrapper.toggled { width: auto; background: transparent; }

	/* Menší okraje obsahu na mobilu */
	.separate-containers .inside-article,
	.separate-containers .comments-area,
	.separate-containers .page-header,
	.one-container .site-content,
	.inside-page-header { padding: 20px 16px; }
	.separate-containers .widget { padding: 20px 16px; }

	/* Horní lišta na jeden řádek */
	.reh-topbar-inner { gap: 4px 12px; padding: 5px 10px; }
	h1 { font-size: 26px; }
	h2 { font-size: 22px; }
	.reh-topbar-inner { justify-content: center; font-size: 12.5px; }
	.reh-author-inner { flex-direction: column; }
}

/* ---------- Shrnutí článku (blok <code><ul>…</ul></code> na začátku článků) ---------- */
.entry-content p:has(> code:only-child:empty) { display: none; margin: 0; }
.entry-content > code {
	display: block;
	font-family: inherit;
	font-size: inherit;
	line-height: 1.6;
	color: inherit;
	white-space: normal;
	background: #eef7f8;
	border: 1px solid #cfe7ea;
	border-left: 4px solid var(--reh-accent, #1a9aa6);
	border-radius: 8px;
	padding: 20px 24px 8px;
	margin: 0 0 1.6em;
}
.entry-content > code::before {
	content: "Shrnutí článku";
	display: block;
	font-weight: 700;
	font-size: 1.05em;
	color: #137a84;
	margin-bottom: 10px;
}
.entry-content > code ul { list-style: none; margin: 0; padding: 0; }
.entry-content > code li { position: relative; padding-left: 28px; margin: 0 0 12px; }
.entry-content > code li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 3px;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: #1a9aa6;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 19px;
	text-align: center;
}
.entry-content > code strong { color: #2f3a45; }
@media (max-width: 768px) {
	.entry-content > code { padding: 16px 16px 6px; }
}
