/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* ==========================================================
   SDH Szerviz – Single Post 2026
   Inspiráció: Wired, The Verge, Ars Technica
   ========================================================== */

body.single-post {
	--sdh-bg:     #080c14;
	--sdh-border: rgba(255, 255, 255, 0.08);
	--sdh-text:   #e4ebf5;
	--sdh-muted:  #7a8699;
	--sdh-accent: #ff3a34;
	background: var(--sdh-bg);
	color: var(--sdh-text);
	font-family: Arial, sans-serif;
}

/* ── Főkonténer ─────────────────────────────────── */
body.single-post main {
	width: min(980px, 94vw);
	margin: 0 auto 100px;
	padding-top: 48px;
}

/* ── HERO (Bricks post-header) ──────────────────── */
body.single-post .bricks-post-header.has-image {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	min-height: clamp(360px, 58vh, 580px);
	background-size: cover !important;
	background-position: center top !important;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	margin-bottom: 56px;
	box-shadow: 0 24px 72px rgba(0, 0, 0, 0.55);
}

/* Sötét gradiens overlay */
body.single-post .bricks-post-header.has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(5, 8, 16, 0.05) 0%,
		rgba(5, 8, 16, 0.25) 35%,
		rgba(5, 8, 16, 0.80) 72%,
		rgba(5, 8, 16, 0.96) 100%
	);
	z-index: 0;
}

/* Accent vonal alul */
body.single-post .bricks-post-header.has-image::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 2px;
	background: linear-gradient(
		90deg,
		rgba(255, 58, 52, 0),
		rgba(255, 58, 52, 0.9),
		rgba(255, 58, 52, 0)
	);
	z-index: 2;
}

body.single-post .bricks-post-header > * {
	position: relative;
	z-index: 1;
}

body.single-post .bricks-post-header {
	padding: clamp(28px, 4vw, 56px);
}

/* ── Cím ────────────────────────────────────────── */
body.single-post .brxe-post-title {
	font-size: clamp(1.9rem, 3.8vw, 3.5rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: #ffffff;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
	max-width: 820px;
	margin: 0 0 16px;
	text-wrap: balance;
}

/* ── Meta ───────────────────────────────────────── */
body.single-post .brxe-post-meta {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 0.84rem;
	color: rgba(228, 235, 245, 0.70);
	letter-spacing: 0.015em;
	background: none !important;
	border: none !important;
	padding: 0 !important;
	border-radius: 0 !important;
	text-transform: none !important;
}

/* ── Cikk törzskonténer ─────────────────────────── */
body.single-post article.brxe-container {
	background: none;
	border: none;
	box-shadow: none;
	border-radius: 0;
	padding: 0;
	max-width: 980px;
	margin-inline: auto;
}

/* ── Szövegtörzs ────────────────────────────────── */
body.single-post .brxe-post-content {
	max-width: 100%;
	margin: 0;
}

body.single-post .brxe-post-content p,
body.single-post .brxe-post-content li {
	font-size: clamp(1.16rem, 1.26vw, 1.27rem);
	line-height: 1.86;
	color: var(--sdh-text);
	text-wrap: pretty;
	margin-bottom: 1.45em;
}

/* Drop cap */
body.single-post .brxe-post-content > p:first-of-type::first-letter {
	float: left;
	font-size: 3.6em;
	line-height: 0.82;
	padding-right: 0.1em;
	margin-top: 0.06em;
	font-weight: 800;
	color: var(--sdh-accent);
}

/* Alcímek */
body.single-post .brxe-post-content h2,
body.single-post .brxe-post-content h3,
body.single-post .brxe-post-content h4 {
	font-size: clamp(1.38rem, 2.09vw, 1.93rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin-top: 2.4rem;
	margin-bottom: 0.75rem;
	color: #f0f5ff;
	border-left: 3px solid var(--sdh-accent);
	padding-left: 14px;
}

body.single-post .brxe-post-content a {
	color: #5ba3ff;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s;
}

body.single-post .brxe-post-content a:hover {
	color: #92c3ff;
}

/* Képek a szövegben */
body.single-post .brxe-post-content img {
	display: block;
	width: 100%;
	max-width: 100%;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
	margin: 2em auto;
}

/* Idézet */
body.single-post .brxe-post-content blockquote {
	border-left: 3px solid var(--sdh-accent);
	margin: 2em 0;
	padding: 1em 1.6em;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 0 10px 10px 0;
	font-style: italic;
	font-size: 1.1em;
	color: rgba(228, 235, 245, 0.8);
}

/* strong */
body.single-post .brxe-post-content strong {
	color: #fff;
	font-weight: 700;
}

/* ── Szerző ─────────────────────────────────────── */
body.single-post .brxe-post-author {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid var(--sdh-border);
}

body.single-post .brxe-post-author h2,
body.single-post .brxe-post-author h2 a {
	font-size: 1rem;
	font-weight: 600;
	color: var(--sdh-text);
	text-decoration: none;
	margin: 0;
}

/* Avatar */
body.single-post .brxe-post-author .avatar {
	width: 44px !important;
	height: 44px !important;
	border-radius: 50%;
}

/* ── Cimkék / Megosztás ─────────────────────────── */
body.single-post .bricks-post-meta-wrapper {
	margin-top: 24px;
	margin-bottom: 48px;
}

body.single-post .bricks-post-meta-wrapper ul {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	align-items: center;
}

body.single-post .bricks-post-meta-wrapper li {
	margin: 0;
	padding: 0;
}

body.single-post .bricks-post-meta-wrapper a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	border: 1.5px solid var(--sdh-border);
	font-size: 0;
	text-decoration: none;
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}

body.single-post .bricks-post-meta-wrapper img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

/* Hover states per platform */
body.single-post .bricks-post-meta-wrapper a.facebook:hover {
	background: #1877F2;
	border-color: #1877F2;
	box-shadow: 0 8px 20px rgba(24, 119, 242, 0.35);
	transform: translateY(-2px);
}

body.single-post .bricks-post-meta-wrapper a.x:hover {
	background: #000000;
	border-color: #000000;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
	transform: translateY(-2px);
}

body.single-post .bricks-post-meta-wrapper a.linkedin:hover {
	background: #0A66C2;
	border-color: #0A66C2;
	box-shadow: 0 8px 20px rgba(10, 102, 194, 0.35);
	transform: translateY(-2px);
}

body.single-post .bricks-post-meta-wrapper a.pinterest:hover {
	background: #E60023;
	border-color: #E60023;
	box-shadow: 0 8px 20px rgba(230, 0, 35, 0.35);
	transform: translateY(-2px);
}

body.single-post .bricks-post-meta-wrapper a.email:hover {
	background: #EA4335;
	border-color: #EA4335;
	box-shadow: 0 8px 20px rgba(234, 67, 53, 0.35);
	transform: translateY(-2px);
}

/* ── Kapcsolódó cikkek fejléce ──────────────────── */
body.single-post article.brxe-container > h2 {
	max-width: 980px;
	margin-inline: auto;
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	font-weight: 700;
	margin-bottom: 22px;
	margin-top: 64px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--sdh-border);
}

/* ── Kapcsolódó cikkek ──────────────────────────── */
body.single-post .brxe-related-posts {
	max-width: 980px;
	margin-inline: auto;
}

body.single-post .brxe-related-posts ul {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.single-post .brxe-related-posts li {
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid var(--sdh-border);
	border-radius: 14px;
	transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

body.single-post .brxe-related-posts li:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 58, 52, 0.4);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

body.single-post .brxe-related-posts figure {
	margin: 0;
	overflow: hidden;
	height: 158px;
	border-radius: 10px;
	width: 158px;
}

body.single-post .brxe-related-posts figure a,
body.single-post .brxe-related-posts figure img {
	display: block;
	width: 158px;
	height: 158px;
	object-fit: cover;
	object-position: center;
	border-radius: 10px !important;
	margin: 0 !important;
	box-shadow: none !important;
	transition: transform 0.3s ease;
}

body.single-post .brxe-related-posts li:hover figure img {
	transform: scale(1.04);
}

body.single-post .brxe-related-posts li > .brxe-container,
body.single-post .brxe-related-posts li > div {
	padding: 14px 16px;
	background: none;
	border: none;
	box-shadow: none;
	border-radius: 0;
	max-width: 100%;
	margin: 0;
}

body.single-post .brxe-related-posts h3 {
	font-size: 0.93rem;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 6px;
	color: var(--sdh-text);
}

body.single-post .brxe-related-posts h3 a {
	color: inherit;
	text-decoration: none;
}

body.single-post .brxe-related-posts h3 a:hover {
	color: #92c3ff;
}

body.single-post .brxe-related-posts .post-date,
body.single-post .brxe-related-posts time {
	font-size: 0.76rem;
	color: var(--sdh-muted);
}

/* A date-szöveg a kapcsolódó cikknél */
body.single-post .brxe-related-posts li > .brxe-container > *:last-child {
	font-size: 0.76rem;
	color: var(--sdh-muted);
	margin: 0;
}

/* ── Megjegyzések ───────────────────────────────── */
body.single-post .brxe-post-comments {
	max-width: 740px;
	margin: 60px auto 0;
	background: none;
	border: none;
	border-radius: 0;
	padding: 0;
}

body.single-post .brxe-post-comments h2 {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 28px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--sdh-border);
}

body.single-post .brxe-post-comments form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

body.single-post .brxe-post-comments input:not([type="checkbox"]):not([type="submit"]):not([type="radio"]),
body.single-post .brxe-post-comments textarea {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--sdh-border);
	border-radius: 10px;
	color: var(--sdh-text);
	padding: 12px 16px;
	font-size: 0.95rem;
	width: 100%;
	transition: border-color 0.2s;
}

body.single-post .brxe-post-comments input:focus,
body.single-post .brxe-post-comments textarea:focus {
	outline: none;
	border-color: rgba(255, 58, 52, 0.55);
}

body.single-post .brxe-post-comments textarea {
	grid-column: 1 / -1;
	min-height: 120px;
	resize: vertical;
}

body.single-post .brxe-post-comments p:has(input[type="checkbox"]),
body.single-post .brxe-post-comments > p:last-of-type {
	grid-column: 1 / -1;
}

body.single-post .brxe-post-comments input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--sdh-accent);
}

body.single-post .brxe-post-comments input[type="submit"],
body.single-post .brxe-post-comments button[type="submit"] {
	background: var(--sdh-accent);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 13px 34px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
}

body.single-post .brxe-post-comments input[type="submit"]:hover,
body.single-post .brxe-post-comments button[type="submit"]:hover {
	background: #d92020;
	transform: translateY(-1px);
}

/* ── Bejegyzés navigáció ────────────────────────── */
body.single-post .brxe-post-navigation {
	max-width: 980px;
	margin: 52px auto 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

body.single-post .brxe-post-navigation > a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 22px;
	border-radius: 14px;
	border: 1px solid var(--sdh-border);
	background: rgba(255, 255, 255, 0.02);
	text-decoration: none;
	transition: all 0.2s;
}

body.single-post .brxe-post-navigation > a:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 58, 52, 0.4);
	transform: translateY(-2px);
}

body.single-post .brxe-post-navigation h5 {
	font-size: 0.97rem;
	line-height: 1.3;
	color: var(--sdh-text);
	margin: 0;
	font-weight: 600;
}

body.single-post .brxe-post-navigation > a img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 10px;
	flex-shrink: 0;
	margin: 0 !important;
	box-shadow: none !important;
}

body.single-post .brxe-post-navigation > a .nav-label {
	font-size: 0.74rem;
	color: var(--sdh-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: block;
	margin-bottom: 4px;
}

/* ── Képek globális fix ─────────────────────────── */
body.single-post img,
body.single-post .image,
body.single-post .css-filter {
	filter: none !important;
	backdrop-filter: none !important;
	image-rendering: auto !important;
	opacity: 1 !important;
}

/* ── Reszponzív ─────────────────────────────────── */
@media (max-width: 900px) {
	body.single-post .brxe-related-posts ul {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	body.single-post main {
		width: 96vw;
		padding-top: 20px;
		margin-bottom: 60px;
	}

	body.single-post .bricks-post-header.has-image {
		min-height: 260px;
		border-radius: 12px;
		margin-bottom: 36px;
	}

	body.single-post .brxe-post-title {
		font-size: clamp(1.6rem, 7.5vw, 2.4rem);
	}

	body.single-post .brxe-related-posts ul,
	body.single-post .brxe-post-navigation {
		grid-template-columns: 1fr;
	}

	body.single-post .brxe-post-comments form {
		grid-template-columns: 1fr;
	}
}
/* ── Mobil overflow védelem ─────────────────────── */
body.single-post {
	overflow-x: hidden;
}

body.single-post,
body.single-post *,
body.single-post *::before,
body.single-post *::after {
	box-sizing: border-box;
}

body.single-post main,
body.single-post article,
body.single-post .brxe-container,
body.single-post .brxe-post-content,
body.single-post .brxe-post-comments,
body.single-post .brxe-post-navigation,
body.single-post .brxe-related-posts {
	max-width: 100%;
}

body.single-post .brxe-post-content,
body.single-post .brxe-post-content p,
body.single-post .brxe-post-content li,
body.single-post .brxe-post-content h1,
body.single-post .brxe-post-content h2,
body.single-post .brxe-post-content h3,
body.single-post .brxe-post-content h4,
body.single-post .brxe-post-content h5,
body.single-post .brxe-post-content h6,
body.single-post .brxe-post-content a,
body.single-post .brxe-post-content span,
body.single-post .brxe-post-content strong,
body.single-post .brxe-post-content em,
body.single-post .brxe-post-content td,
body.single-post .brxe-post-content th {
	overflow-wrap: anywhere;
	word-break: break-word;
}

body.single-post .brxe-post-content table,
body.single-post .brxe-post-content pre,
body.single-post .brxe-post-content iframe,
body.single-post .brxe-post-content embed,
body.single-post .brxe-post-content object,
body.single-post .brxe-post-content video {
	max-width: 100%;
}

body.single-post .brxe-post-content table {
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

body.single-post .brxe-post-content pre {
	white-space: pre-wrap;
}

body.single-post .brxe-related-posts li,
body.single-post .brxe-post-navigation > a,
body.single-post .brxe-post-comments,
body.single-post .bricks-post-meta-wrapper li,
body.single-post .bricks-post-meta-wrapper a {
	min-width: 0;
}

body.single-post .brxe-post-navigation > a,
body.single-post .brxe-related-posts li,
body.single-post .brxe-post-comments form,
body.single-post .bricks-post-meta-wrapper ul {
	min-width: 0;
}

@media (max-width: 1024px) {
	body.single-post article.brxe-container,
	body.single-post .brxe-post-content,
	body.single-post .brxe-post-content > *,
	body.single-post .brxe-post-content p,
	body.single-post .brxe-post-content ul,
	body.single-post .brxe-post-content ol,
	body.single-post .brxe-post-content li,
	body.single-post .brxe-post-content blockquote,
	body.single-post .brxe-post-content h1,
	body.single-post .brxe-post-content h2,
	body.single-post .brxe-post-content h3,
	body.single-post .brxe-post-content h4,
	body.single-post .brxe-post-content h5,
	body.single-post .brxe-post-content h6 {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}
}

body.single-post .sdh-author-share-row {
	display: flex;
	flex-wrap: wrap !important;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

body.single-post .sdh-author-share-row .bricks-post-meta-wrapper {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	margin-left: 0 !important;
	overflow-x: hidden;
}

body.single-post .sdh-author-share-row ul.brxe-post-sharing,
body.single-post .sdh-author-share-row .brxe-post-sharing {
	display: flex;
	flex-wrap: wrap !important;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding-right: 0;
}

@media (max-width: 640px) {
	body.single-post .sdh-author-share-row {
		gap: 8px;
	}

	body.single-post .sdh-author-share-row .bricks-post-meta-wrapper a {
		width: 38px;
		height: 38px;
	}
}