/*
 * RomaniaHUB – pagina unui articol (șablonul Elementor „Single Post”).
 * Aceleași reguli ca restul site-ului: colțuri 20px la carduri, 12px la butoane și câmpuri.
 */

.rh-article {
	--rh-accent: #6c1cff;
	--rh-accent-ink: #5612d6;
	--rh-ink: #16141f;
	--rh-text: #2b2838;
	--rh-muted: #5b5870;
	--rh-line: #dcd9e6;
	--rh-dark: #120c26;
}

/* ---------- Capul articolului ---------- */

/* Secțiunea Elementor în care stă titlul: fără fundalul ei, capul are fundalul lui */
.rh-article .elementor-section:has(.rh-art-head),
.rh-article .elementor-column:has(.rh-art-head) > .elementor-widget-wrap,
.rh-article .e-con:has(.rh-art-head) {
	background: none !important;
	box-shadow: none !important;
}

.rh-article .elementor-column:has(.rh-art-head) > .elementor-widget-wrap,
.rh-article .elementor-widget-theme-post-title > .elementor-widget-container {
	padding: 0 !important;
}

/* Capul începe la aceeași înălțime cu bara laterală și e la fel de lat ca poza de dedesubt */
.rh-article .elementor-section:has(.rh-art-head) {
	padding: 0 0 14px !important;
}

.rh-article .elementor-widget:has(> .elementor-widget-container > .rh-art-head),
.rh-article .elementor-widget:has(> .rh-art-head) {
	margin-bottom: 0 !important;
}

.rh-art-head {
	position: relative;
	overflow: hidden;
	margin-top: 10px;
	padding: 32px 36px 30px;
	border-radius: 20px;
	background:
		radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 22px 22px,
		radial-gradient(circle at 92% 0%, rgba(108, 28, 255, .55) 0, rgba(108, 28, 255, 0) 55%),
		linear-gradient(135deg, #120c26 0%, #1d0f4a 60%, #2b0f73 100%);
	color: #fff;
	text-align: left;
}

.rh-art-head .rh-art-crumbs {
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.rh-art-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.rh-art-cats a {
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(169, 139, 255, .18);
	color: #e3dbff !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background .15s ease;
}

.rh-art-cats a:hover {
	background: rgba(169, 139, 255, .32);
}

.rh-article h1.rh-art-title {
	max-width: 900px;
	margin: 0 0 20px;
	color: #fff;
	font-size: clamp(28px, 2.6vw, 40px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.8px;
}

.rh-art-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	font-size: 14px;
	font-weight: 600;
	color: #cfc6f5;
}

.rh-art-meta__author {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff !important;
	font-weight: 800;
	text-decoration: none !important;
}

.rh-art-meta__avatar {
	width: 36px !important;
	height: 36px !important;
	border: 2px solid rgba(255, 255, 255, .25);
	border-radius: 50% !important;
	object-fit: cover;
}

.rh-art-meta__info {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.rh-art-meta__dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #8f84b8;
}

/* ---------- Poza principală ---------- */

.rh-article .elementor-widget-theme-post-featured-image {
	margin-bottom: 14px !important;
}

.rh-article .elementor-widget-theme-post-featured-image img {
	width: 100%;
	border-radius: 20px !important;
	object-fit: cover;
}

/* ---------- Textul articolului ---------- */

.rh-article .elementor-widget-theme-post-content {
	color: var(--rh-text);
	font-size: 18px;
	line-height: 1.75;
}

.rh-article .elementor-widget-theme-post-content p,
.rh-article .elementor-widget-theme-post-content li {
	font-size: 18px !important;
	line-height: 1.75 !important;
	text-align: left !important;
}

.rh-article .elementor-widget-theme-post-content p {
	margin: 0 0 1.2em;
}

.rh-article .elementor-widget-theme-post-content h2 {
	margin: 1.6em 0 .6em;
	color: var(--rh-ink);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -.4px;
}

.rh-article .elementor-widget-theme-post-content h3 {
	margin: 1.4em 0 .5em;
	color: var(--rh-ink);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
}

.rh-article .elementor-widget-theme-post-content h4 {
	margin: 1.3em 0 .5em;
	color: var(--rh-ink);
	font-size: 19px;
	font-weight: 800;
}

.rh-article .elementor-widget-theme-post-content strong,
.rh-article .elementor-widget-theme-post-content b {
	color: var(--rh-ink);
	font-weight: 800;
}

.rh-article .elementor-widget-theme-post-content a:not(.wp-block-button__link):not([class*="btn"]):not([class*="button"]) {
	color: var(--rh-accent-ink);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: rgba(108, 28, 255, .35);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.rh-article .elementor-widget-theme-post-content a:not(.wp-block-button__link):not([class*="btn"]):not([class*="button"]):hover {
	text-decoration-color: var(--rh-accent);
}

.rh-article .elementor-widget-theme-post-content ul,
.rh-article .elementor-widget-theme-post-content ol {
	margin: 0 0 1.2em;
	padding-left: 1.4em;
}

.rh-article .elementor-widget-theme-post-content li {
	margin-bottom: .4em;
}

.rh-article .elementor-widget-theme-post-content ul > li::marker {
	color: var(--rh-accent);
}

.rh-article .elementor-widget-theme-post-content blockquote {
	margin: 1.6em 0;
	padding: 20px 24px;
	border: 0;
	border-left: 4px solid var(--rh-accent);
	border-radius: 12px;
	background: #f5f0ff;
	color: var(--rh-ink);
	font-size: 19px;
	font-style: normal;
	font-weight: 600;
}

.rh-article .elementor-widget-theme-post-content blockquote p:last-child {
	margin-bottom: 0;
}

.rh-article .elementor-widget-theme-post-content img {
	height: auto;
	border-radius: 12px;
}

.rh-article .elementor-widget-theme-post-content figcaption,
.rh-article .elementor-widget-theme-post-content .wp-caption-text {
	margin-top: 8px;
	color: var(--rh-muted);
	font-size: 14px;
	text-align: center;
}

.rh-article .elementor-widget-theme-post-content table {
	width: 100%;
	overflow: hidden;
	border-collapse: collapse;
	border-radius: 12px;
	font-size: 16px;
}

.rh-article .elementor-widget-theme-post-content th,
.rh-article .elementor-widget-theme-post-content td {
	padding: 10px 14px;
	border: 1px solid #ebe8f3;
}

.rh-article .elementor-widget-theme-post-content th {
	background: #f5f0ff;
	color: var(--rh-ink);
}

/* „Citește și” (modulul Inline Related Posts) */
.rh-article .inline-related-posts {
	margin: 1.6em 0 !important;
	padding: 20px 24px !important;
	border: 1px solid #e2d6ff !important;
	border-left: 4px solid var(--rh-accent) !important;
	border-radius: 12px !important;
	background: #faf7ff !important;
	font-size: 16px;
	line-height: 1.5;
}

.rh-article .inline-related-posts > p {
	margin: 0 0 8px !important;
	color: var(--rh-accent-ink) !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.rh-article .inline-related-posts ul {
	margin: 0 !important;
	padding-left: 1.2em !important;
}

.rh-article .inline-related-posts li {
	margin-bottom: 6px !important;
	font-size: 16px !important;
	line-height: 1.5 !important;
}

.rh-article .inline-related-posts li a {
	border: 0 !important;
	color: var(--rh-ink) !important;
	font-weight: 700 !important;
	text-decoration: none !important;
}

.rh-article .inline-related-posts li a:hover {
	color: var(--rh-accent-ink) !important;
}

/* ---------- Butoanele de distribuire (coloana din stânga textului) ---------- */

.rh-article .elementor-widget-share-buttons .elementor-grid-item {
	margin-bottom: 8px !important;
}

.rh-article .elementor-widget-share-buttons .elementor-share-btn {
	width: 40px !important;
	height: 40px !important;
	border: 1px solid #e2d6ff !important;
	border-radius: 12px !important;
	background: #f5f0ff !important;
	color: var(--rh-accent-ink) !important;
	transition: background .15s ease, color .15s ease;
}

.rh-article .elementor-widget-share-buttons .elementor-share-btn .elementor-share-btn__icon,
.rh-article .elementor-widget-share-buttons .elementor-share-btn i {
	width: 40px !important;
	color: inherit !important;
	font-size: 16px !important;
}

.rh-article .elementor-widget-share-buttons .elementor-share-btn:hover {
	background: var(--rh-accent) !important;
	color: #fff !important;
}

/* Coloana cu butoane merge odată cu textul până la finalul articolului (Elementor îi pune position:relative direct pe element) */
.rh-article .elementor-column:has(> .elementor-widget-wrap > .elementor-widget-share-buttons) > .elementor-widget-wrap {
	position: sticky !important;
	top: 110px !important;
	align-self: flex-start;
}

/* ---------- Întrebări frecvente (blocul FAQ de la Yoast) ---------- */

.rh-article .schema-faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 8px 0 32px;
}

.rh-article .schema-faq-section {
	overflow: hidden;
	border: 1px solid #ebe8f3;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(18, 12, 38, .04);
	transition: border-color .15s ease, background .15s ease;
}

.rh-article .elementor-widget-theme-post-content .schema-faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 24px;
	color: var(--rh-ink);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.4;
}

.rh-article .elementor-widget-theme-post-content .schema-faq-answer {
	margin: 0 !important;
	padding: 0 24px 20px !important;
	color: var(--rh-text);
	font-size: 16px !important;
	line-height: 1.7 !important;
}

/* Cu JavaScript: întrebările se deschid și se închid (răspunsurile rămân în pagină pentru Google) */
.rh-faq-js .schema-faq-question {
	cursor: pointer;
	user-select: none;
}

.rh-faq-js .schema-faq-question::after {
	content: "+";
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 12px;
	background: #f5f0ff;
	color: var(--rh-accent-ink);
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	transition: background .15s ease, color .15s ease;
}

.rh-faq-js .schema-faq-question:hover::after,
.rh-faq-js .schema-faq-question:focus-visible::after {
	background: var(--rh-accent);
	color: #fff;
}

.rh-faq-js .schema-faq-question:focus-visible {
	outline: 2px solid var(--rh-accent);
	outline-offset: -2px;
	border-radius: 20px;
}

.rh-faq-js .schema-faq-section:not(.is-open) .schema-faq-answer {
	display: none;
}

.rh-faq-js .schema-faq-section.is-open {
	border-color: #d9c9ff;
	background: #fcfaff;
}

.rh-faq-js .schema-faq-section.is-open .schema-faq-question::after {
	content: "−";
	background: var(--rh-accent);
	color: #fff;
}

/* ---------- Autorul ---------- */

.rh-article .elementor-author-box {
	align-items: center;
	gap: 20px;
	padding: 24px;
	border: 1px solid #ebe8f3;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(18, 12, 38, .05);
}

.rh-article .elementor-author-box__avatar {
	margin: 0 !important;
}

.rh-article .elementor-author-box__avatar img {
	width: 72px !important;
	height: 72px !important;
	border-radius: 50% !important;
	object-fit: cover;
}

.rh-article .elementor-author-box__name {
	margin: 0 0 6px !important;
	color: var(--rh-ink) !important;
	font-size: 20px !important;
	font-weight: 800 !important;
}

.rh-article .elementor-author-box__bio {
	color: var(--rh-muted) !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
}

/* ---------- Comentarii ---------- */

/* Tema pune aici un .container de 1170px, mai lat decât coloana: îl aducem la lățimea coloanei */
.rh-article .elementor-widget-post-comments .container {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
}

.rh-article .elementor-widget-post-comments .row {
	margin: 0 !important;
}

.rh-article .elementor-widget-post-comments .row > [class*="col-"] {
	float: none;
	width: 100% !important;
	padding: 0 !important;
}

.rh-article .elementor-widget-post-comments .no-results-wrapper {
	margin: 0 0 24px;
	padding: 24px;
	border: 1px dashed #d8cdf5;
	border-radius: 20px;
	background: #faf8ff;
	color: var(--rh-muted);
	font-size: 14px;
}

.rh-article .elementor-widget-post-comments .no-results-wrapper .no-results-icon {
	color: #a89bd0;
}

/* Un singur card pentru formular (fără card în card) */
.rh-article .elementor-widget-post-comments .element {
	padding: 24px !important;
	border: 1px solid #ebe8f3 !important;
	border-radius: 20px !important;
	background: #fff !important;
	box-shadow: 0 6px 20px rgba(18, 12, 38, .05) !important;
}

.rh-article .elementor-widget-post-comments .element .pf-head {
	margin-bottom: 16px;
}

.rh-article .elementor-widget-post-comments .element .pf-head h5,
.rh-article .elementor-widget-post-comments .element .pf-head .title-style-1 h5 {
	color: var(--rh-ink) !important;
	font-size: 20px !important;
	font-weight: 800 !important;
}

.rh-article .elementor-widget-post-comments #respond,
.rh-article .elementor-widget-post-comments .comment-respond {
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
}

.rh-article .elementor-widget-post-comments label {
	color: var(--rh-ink);
	font-size: 13px;
	font-weight: 700;
}

.rh-article .elementor-widget-post-comments input[type="text"],
.rh-article .elementor-widget-post-comments input[type="email"],
.rh-article .elementor-widget-post-comments input[type="url"],
.rh-article .elementor-widget-post-comments textarea {
	min-height: 48px;
	padding: 12px 16px !important;
	border: 1px solid var(--rh-line) !important;
	border-radius: 12px !important;
	background: #faf9fd !important;
	color: var(--rh-ink) !important;
	font-size: 15px !important;
	box-shadow: none !important;
}

.rh-article .elementor-widget-post-comments textarea {
	min-height: 130px;
}

.rh-article .elementor-widget-post-comments input:focus,
.rh-article .elementor-widget-post-comments textarea:focus {
	border-color: var(--rh-accent) !important;
	background: #fff !important;
	box-shadow: 0 0 0 4px rgba(108, 28, 255, .14) !important;
	outline: none;
}

.rh-article .elementor-widget-post-comments button[type="submit"],
.rh-article .elementor-widget-post-comments input[type="submit"] {
	min-height: 48px;
	padding: 12px 22px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: linear-gradient(90deg, #6c1cff, #4b2dff) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	box-shadow: 0 10px 24px rgba(108, 28, 255, .25);
}

/* ---------- Bara laterală: căutarea ---------- */

.rh-article .elementor-widget-search-form .elementor-search-form__container {
	overflow: hidden;
	border: 1px solid var(--rh-line) !important;
	border-radius: 12px !important;
	background: #fff !important;
}

.rh-article .elementor-widget-search-form input[type="search"] {
	min-height: 48px;
	padding: 0 16px !important;
	border: 0 !important;
	background: none !important;
	font-size: 15px !important;
}

.rh-article .elementor-widget-search-form .elementor-search-form__submit {
	min-width: 48px;
	border-radius: 0 !important;
	background: var(--rh-accent) !important;
}

/* ---------- Articolul anterior / următor ---------- */

/* Rămâne bara lipită jos pe ecran (setarea „Sticky: bottom” din Elementor, doar pe calculator), dar mai subțire și curată */
.rh-article .elementor-section:has(.elementor-widget-post-navigation) {
	border-top: 1px solid #ebe8f3;
	background: rgba(255, 255, 255, .94) !important;
	box-shadow: 0 -10px 30px rgba(18, 12, 38, .08);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	padding: 0 !important;
	z-index: 999 !important;
}

.rh-article .elementor-section:has(.elementor-widget-post-navigation) > .elementor-container {
	max-width: 1440px !important;
	margin: 0 auto;
	padding: 12px 0 !important;
}

.rh-article .elementor-section:has(.elementor-widget-post-navigation) .elementor-widget-wrap,
.rh-article .elementor-post-navigation {
	padding: 0 !important;
}

.rh-article .elementor-post-navigation {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	border: 0 !important;
}

.rh-article .elementor-post-navigation__separator-wrapper {
	display: none !important;
}

.rh-article .elementor-post-navigation__link {
	width: auto !important;
	max-width: none !important;
	min-width: 0;
}

.rh-article .elementor-post-navigation__link a {
	display: flex !important;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 10px 16px;
	border: 1px solid #ebe8f3;
	border-radius: 12px;
	background: #fff;
	text-decoration: none !important;
	transition: border-color .15s ease, background .15s ease;
}

.rh-article .elementor-post-navigation__link a:hover {
	border-color: #c9b8ff;
	background: #faf7ff;
}

/* Textul ocupă tot locul rămas: la „anterior” săgeata e în stânga, la „următor” în dreapta */
.rh-article .elementor-post-navigation__link__prev,
.rh-article .elementor-post-navigation__link__next {
	flex: 1 1 auto;
	min-width: 0;
}

.rh-article .elementor-post-navigation__next a {
	flex-direction: row !important;
	text-align: right;
}

.rh-article .post-navigation__arrow-wrapper {
	display: grid !important;
	flex: 0 0 auto;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #f5f0ff;
	color: var(--rh-accent-ink) !important;
	font-size: 18px !important;
	transition: background .15s ease, color .15s ease;
}

.rh-article .elementor-post-navigation__link a:hover .post-navigation__arrow-wrapper {
	background: var(--rh-accent);
	color: #fff !important;
}

.rh-article .post-navigation__prev--label,
.rh-article .post-navigation__next--label {
	display: block;
	margin-bottom: 2px;
	color: var(--rh-accent-ink) !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	letter-spacing: .4px;
	text-transform: uppercase !important;
}

.rh-article .post-navigation__prev--title,
.rh-article .post-navigation__next--title {
	display: block;
	overflow: hidden;
	color: var(--rh-ink) !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	line-height: 1.4 !important;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- Spațiu între articol și bara din dreapta ---------- */

@media (min-width: 768px) {
	.rh-article .elementor-top-column:has(.elementor-widget-theme-post-content) > .elementor-widget-wrap {
		padding-right: 24px !important;
	}
}

/* ---------- Telefon ---------- */

@media (max-width: 767px) {
	.rh-art-head {
		padding: 22px 18px 20px;
		border-radius: 18px;
	}

	.rh-article h1.rh-art-title {
		font-size: 26px;
	}

	/* Pe telefon: autorul pe un rând, data și timpul de citit pe următorul */
	.rh-art-meta__dot--author {
		display: none;
	}

	.rh-art-meta__info {
		flex: 1 0 100%;
	}

	/* Coloana articolului atingea marginile ecranului */
	.rh-article .elementor-top-column:has(.elementor-widget-theme-post-content) > .elementor-widget-wrap {
		padding: 0 10px 24px !important;
	}

	.rh-article .elementor-widget-theme-post-content,
	.rh-article .elementor-widget-theme-post-content p,
	.rh-article .elementor-widget-theme-post-content li {
		font-size: 17px !important;
	}

	.rh-article .inline-related-posts > p {
		font-size: 13px !important;
	}

	.rh-article .inline-related-posts li {
		font-size: 16px !important;
	}

	.rh-article .elementor-widget-theme-post-content .schema-faq-question {
		padding: 16px 18px;
		font-size: 17px;
	}

	.rh-article .elementor-widget-theme-post-content .schema-faq-answer {
		padding: 0 18px 18px !important;
	}

	.rh-article .elementor-widget-theme-post-content h2 {
		font-size: 24px;
	}

	.rh-article .elementor-widget-theme-post-content h3 {
		font-size: 20px;
	}

	.rh-article .elementor-post-navigation {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.rh-article .elementor-author-box {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}
