/**
 * Veritas Blog Single Post — Styles
 *
 * Typography, post header, content column, author bio card,
 * and related posts section for the single blog post page.
 *
 * @package PLVeritasHelper
 * @since   1.7.0
 */

/* ─── Shared Tokens ───────────────────────────────────────────── */
.vbs-header,
.vbs-content,
.vbs-author,
.vbs-related,
.vbs-share,
.vbs-nav {
	--vbs-gold:       #FFCC00;
	--vbs-gold-hover: #E6B800;
	--vbs-gold-text:  #8B6914;
	--vbs-black:      #1A1A1A;
	--vbs-white:      #FFFFFF;
	--vbs-muted:      #666666;
	--vbs-border:     #E8E8E8;
	--vbs-radius:     8px;
	--vbs-font-head:  'Cormorant Garamond', Georgia, serif;
	--vbs-font-body:  'Inter', sans-serif;

}

/* ═══════════════════════════════════════════════════════════════
   POST HEADER
   ═══════════════════════════════════════════════════════════════ */

.vbs-header {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0 0 24px;
	padding: 28px;
	background: #fafafa;
	border: 1px solid var(--vbs-border);
	border-radius: var(--vbs-radius);
}

.vbs-header__title {
	font-family: var(--vbs-font-head);
	font-size: clamp(28px, 5vw, 48px);
	font-weight: 600;
	color: var(--vbs-black);
	line-height: 1.15;
	margin: 0 0 24px;
}

/* Author meta row */
.vbs-header__meta {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 32px;
}

.vbs-header__avatar-link {
	flex-shrink: 0;
}

.vbs-header__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

.vbs-header__meta-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.vbs-header__author {
	font-family: var(--vbs-font-body);
	font-size: 15px;
	font-weight: 600;
	color: var(--vbs-black);
	text-decoration: none;
}

a.vbs-header__author:hover {
	color: var(--vbs-gold-text);
}

.vbs-header__date-row {
	font-family: var(--vbs-font-body);
	font-size: 13px;
	color: var(--vbs-muted);
	display: flex;
	align-items: center;
	gap: 8px;
}

.vbs-header__sep {
	color: var(--vbs-border);
}

/* Featured image */
.vbs-header__image {
	border-radius: var(--vbs-radius);
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.vbs-header__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Hero video (replaces featured image when post has YouTube embed) */
.elementor-widget-veritas_blog_post_header {
	align-self: stretch !important;
	width: 100% !important;
}

.elementor-widget-veritas_blog_post_header .elementor-widget-container {
	width: 100%;
}

.vbs-header__video {
	width: 100% !important;
	border-radius: var(--vbs-radius);
	overflow: hidden;
}

.vbs-header__video iframe {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 9;
	border: 0;
}

/* ═══════════════════════════════════════════════════════════════
   POST CONTENT
   ═══════════════════════════════════════════════════════════════ */

.vbs-content {
	margin: 0 0 24px;
	padding: 28px;
	background: #fafafa;
	border: 1px solid var(--vbs-border);
	border-radius: var(--vbs-radius);
	font-family: var(--vbs-font-body);
	font-size: 17px;
	line-height: 1.8;
	color: #333;
	width: 100%;
}

/* Override WP core / theme max-width on blocks */
.vbs-content > * {
	max-width: 100% !important;
	margin-left: 0;
	margin-right: 0;
}

/* Headings */
.vbs-content h1,
.vbs-content h2,
.vbs-content h3,
.vbs-content h4 {
	font-family: var(--vbs-font-head);
	color: var(--vbs-black);
	margin: 2em 0 0.6em;
	line-height: 1.25;
}

.vbs-content h2 { font-size: 30px; font-weight: 600; }
.vbs-content h3 { font-size: 24px; font-weight: 600; }
.vbs-content h4 { font-size: 20px; font-weight: 600; }

/* Paragraphs */
.vbs-content p {
	margin: 0 0 1.4em;
}

/* Links */
.vbs-content a {
	color: var(--vbs-gold-text);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}

.vbs-content a:hover {
	color: var(--vbs-gold-hover);
}

/* Lists */
.vbs-content ul,
.vbs-content ol {
	margin: 0 0 1.4em;
	padding-left: 1.6em;
}

.vbs-content li {
	margin-bottom: 0.4em;
}

.vbs-content li::marker {
	color: var(--vbs-gold-text);
}

/* Blockquotes */
.vbs-content blockquote {
	margin: 1.8em 0;
	padding: 20px 24px;
	border-left: 4px solid var(--vbs-gold);
	background: #fafafa;
	border-radius: 0 var(--vbs-radius) var(--vbs-radius) 0;
	font-style: italic;
	color: #555;
}

.vbs-content blockquote p:last-child {
	margin-bottom: 0;
}

/* Images */
.vbs-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--vbs-radius);
	margin: 1.2em 0;
}

.vbs-content figure {
	margin: 1.8em 0;
}

.vbs-content figcaption {
	font-size: 13px;
	color: var(--vbs-muted);
	text-align: center;
	margin-top: 8px;
}

/* Embeds (YouTube, etc.) */
.vbs-content .wp-block-embed {
	margin: 1.8em 0;
}

.vbs-content .wp-block-embed__wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: var(--vbs-radius);
}

.vbs-content .wp-block-embed__wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Tables */
.vbs-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.4em 0;
	font-size: 15px;
}

.vbs-content th,
.vbs-content td {
	padding: 10px 14px;
	border: 1px solid var(--vbs-border);
	text-align: left;
}

.vbs-content th {
	background: #f6f6f6;
	font-weight: 600;
}

/* Separator / HR */
.vbs-content hr {
	border: none;
	border-top: 2px solid var(--vbs-border);
	margin: 2.5em 0;
}

/* ═══════════════════════════════════════════════════════════════
   AUTHOR BIO CARD
   ═══════════════════════════════════════════════════════════════ */

.vbs-author {
	margin: 0 0 24px;
	display: flex;
	flex-direction: column;
	padding: 28px;
	background: #fafafa;
	border: 1px solid var(--vbs-border);
	border-radius: var(--vbs-radius);
}

.vbs-author__header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 16px;
}

.vbs-author__photo-wrap {
	flex-shrink: 0;
}

.vbs-author__photo {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
}

.vbs-author__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.vbs-author__label {
	font-family: var(--vbs-font-body);
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--vbs-muted);
	margin: 0;
}

.vbs-author__name {
	font-family: var(--vbs-font-body);
	font-size: 19px;
	font-weight: 600;
	color: var(--vbs-black);
	margin: 0;
}

.vbs-author__name a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.vbs-author__name a:hover {
	color: var(--vbs-gold-text);
}

.vbs-author__title {
	font-family: var(--vbs-font-body);
	font-size: 14px;
	color: var(--vbs-muted);
	margin: 0;
}

.vbs-author__bio {
	font-family: var(--vbs-font-body);
	font-size: 14px;
	line-height: 1.6;
	color: #555;
	margin: 8px 0 0;
}

.vbs-author__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	font-family: var(--vbs-font-body);
	font-size: 13px;
	font-weight: 600;
	color: var(--vbs-gold-text) !important;
	text-decoration: none !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: gap 0.15s ease, opacity 0.15s ease;
}

.vbs-author__link svg {
	width: 14px;
	height: 10px;
	flex-shrink: 0;
	transition: transform 0.15s ease;
}

.vbs-author__link:hover svg {
	transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════════
   POST NAVIGATION (Prev / Next)
   ═══════════════════════════════════════════════════════════════ */

.vbs-nav {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin: 0 0 24px;
	padding-top: 24px;
	border-top: 2px solid var(--vbs-border);
}

.vbs-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	text-decoration: none !important;
	font-family: var(--vbs-font-body);
	font-size: 14px;
	font-weight: 700;
	background: #f0c33c;
	color: #1d2327 !important;
	border-radius: 4px;
	transition: background 0.2s ease, transform 0.15s ease;
	cursor: pointer;
}

.vbs-nav__link:hover {
	background: #e5b52e;
	transform: translateY(-2px);
}

.vbs-nav__link--next {
	flex-direction: row-reverse;
}

.vbs-nav__link--prev {
	background: #fff;
	color: #1d2327 !important;
	border: 2px solid #1d2327;
}

.vbs-nav__link--prev:hover {
	background: #f5f5f5;
	transform: translateY(-2px);
}

.vbs-nav__link--placeholder {
	visibility: hidden;
}

.vbs-nav__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.vbs-nav__label svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	fill: currentColor;
	transition: transform 0.15s ease;
}

.vbs-nav__link--prev:hover .vbs-nav__label svg {
	transform: translateX(-3px);
}

.vbs-nav__link--next:hover .vbs-nav__label svg {
	transform: translateX(3px);
}

.vbs-nav__title {
	font-family: var(--vbs-font-body);
	font-size: 15px;
	font-weight: 500;
	color: var(--vbs-black);
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   SOCIAL SHARE
   ═══════════════════════════════════════════════════════════════ */

.vbs-share {
	margin: 0 0 24px;
	padding: 28px !important;
	background: #fafafa !important;
	border: 1px solid var(--vbs-border) !important;
	border-radius: var(--vbs-radius) !important;
}

.vbs-share__heading {
	font-family: var(--vbs-font-body);
	font-size: 14px;
	font-weight: 600;
	color: var(--vbs-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 16px;
}

.vbs-share__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.vbs-share__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	font-family: var(--vbs-font-body);
	font-size: 13px;
	font-weight: 600;
	color: #fff !important;
	text-decoration: none !important;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.vbs-share__btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.1);
}

.vbs-share__btn svg {
	width: 16px !important;
	height: 16px !important;
	max-width: 16px !important;
	max-height: 16px !important;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Brand colors */
.vbs-share__btn--facebook {
	background: #1877F2;
}

.vbs-share__btn--facebook svg {
	fill: currentColor;
	stroke: none;
}

.vbs-share__btn--twitter {
	background: #000;
}

.vbs-share__btn--twitter svg {
	fill: currentColor;
	stroke: none;
}

.vbs-share__btn--linkedin {
	background: #0A66C2;
}

.vbs-share__btn--linkedin svg {
	fill: currentColor;
	stroke: none;
}

.vbs-share__btn--email {
	background: #6B7280;
}

.vbs-share__btn--copy {
	background: #374151;
}

/* Elementor widget full width */
.elementor-widget-veritas_blog_social_share .elementor-widget-container {
	width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
	.vbs-author__photo {
		width: 64px;
		height: 64px;
	}

	.vbs-header__title {
		font-size: 28px;
	}

	.vbs-nav__title {
		white-space: normal;
	}
}

@media (max-width: 600px) {
	.vbs-content {
		font-size: 16px;
	}

	.vbs-content h2 { font-size: 24px; }
	.vbs-content h3 { font-size: 20px; }
	.vbs-content h4 { font-size: 18px; }
}
