/**
 * Portfolio Single Project Styles
 *
 * @package Hello_Elementor_Child
 */

/* ═══════════════════════════════════════════════════════════
   Variables (inherit brand colors from blog.css :root)
═══════════════════════════════════════════════════════════ */
:root {
	--pf-primary:     #5B7699;
	--pf-accent:      #B87456;
	--pf-accent-dark: #9a5e3f;
	--pf-text:        #24272D;
	--pf-muted:       #6b7280;
	--pf-border:      #e5e7eb;
	--pf-bg-light:    #f8f9fa;
	--pf-white:       #ffffff;
	--pf-radius:      8px;
	--pf-max:         1440px;
	--pf-sidebar-w:   300px;
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.pf-hero {
	background: var(--pf-white);
	padding: 36px 24px 28px;
	border-bottom: 1px solid var(--pf-border);
}
.pf-hero-inner {
	max-width: var(--pf-max);
	margin: 0 auto;
}

/* Breadcrumb */
.pf-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--pf-muted);
	margin-bottom: 16px;
}
.pf-breadcrumb a {
	color: var(--pf-accent);
	font-weight: 600;
	text-decoration: none;
}
.pf-breadcrumb a:hover { text-decoration: underline; }

/* Title */
.pf-hero-title {
	font-size: clamp(22px, 3vw, 38px);
	font-weight: 800;
	line-height: 1.2;
	color: var(--pf-text);
	margin-bottom: 14px;
	max-width: 820px;
}

/* Excerpt */
.pf-hero-excerpt {
	font-size: 15px;
	color: var(--pf-muted);
	max-width: 720px;
	margin-bottom: 16px;
	line-height: 1.7;
}

/* Tags */
.pf-hero-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}
.pf-tag {
	background: var(--pf-white);
	border: 1px solid var(--pf-border);
	color: var(--pf-primary);
	font-size: 11px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: .4px;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.pf-tag:hover { background: var(--pf-primary); color: var(--pf-white); }

/* Meta strip */
.pf-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border-top: 1px solid var(--pf-border);
	padding-top: 16px;
}
.pf-meta-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-right: 32px;
	margin-right: 32px;
	border-right: 1px solid var(--pf-border);
}
.pf-meta-item:last-child {
	border-right: none;
	margin-right: 0;
	padding-right: 0;
}
.pf-meta-label {
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .8px;
	color: var(--pf-muted);
}
.pf-meta-value {
	font-size: 13px;
	font-weight: 600;
	color: var(--pf-text);
}

/* ═══════════════════════════════════════════════════════════
   IMAGE GALLERY
═══════════════════════════════════════════════════════════ */
.pf-gallery {
	background: #1a1d21;
	position: relative;
	user-select: none;
}

/* Main image — responsive via aspect-ratio */
.pf-gallery-main {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 7;
	overflow: hidden;
	background: #1a1d21;
}
.pf-gallery-main img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	opacity: 1;
	transition: opacity .4s ease;
}
.pf-gallery-main img.pf-img-hidden {
	opacity: 0;
}

/* Autoplay progress bar */
.pf-gallery-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 3px;
	width: 0%;
	background: var(--pf-accent);
	z-index: 5;
	transition: none;
}

/* ── Nav arrows — fully scoped, won't conflict ── */
.pf-gallery .pf-gallery-nav {
	all: unset;
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 44px !important;
	height: 44px !important;
	border-radius: 50% !important;
	background: rgba(36,39,45,.7) !important;
	border: 2px solid rgba(255,255,255,.25) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	color: #fff !important;
	z-index: 10 !important;
	transition: background .2s, border-color .2s !important;
	box-shadow: 0 2px 10px rgba(0,0,0,.4) !important;
	line-height: 1 !important;
}
.pf-gallery .pf-gallery-nav:hover {
	background: var(--pf-accent) !important;
	border-color: var(--pf-accent) !important;
}
.pf-gallery .pf-gallery-nav svg {
	width: 18px !important;
	height: 18px !important;
	display: block !important;
	stroke: #fff !important;
	fill: none !important;
	flex-shrink: 0 !important;
}
.pf-gallery .pf-gallery-prev { left: 16px !important; }
.pf-gallery .pf-gallery-next { right: 16px !important; }

/* Slide counter */
.pf-gallery-counter {
	position: absolute;
	bottom: 12px;
	right: 16px;
	background: rgba(36,39,45,.65);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 20px;
	z-index: 5;
	backdrop-filter: blur(4px);
	letter-spacing: .4px;
}

/* Thumbnail strip */
.pf-gallery-thumbs {
	display: flex;
	gap: 3px;
	padding: 3px;
	background: #111315;
	overflow-x: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--pf-accent) #111315;
}
.pf-gallery-thumbs::-webkit-scrollbar { height: 3px; }
.pf-gallery-thumbs::-webkit-scrollbar-thumb { background: var(--pf-accent); border-radius: 2px; }
.pf-thumb {
	all: unset;
	flex-shrink: 0;
	width: clamp(72px, 8vw, 110px);
	aspect-ratio: 4 / 3;
	border: 2px solid transparent;
	border-radius: 3px;
	overflow: hidden;
	cursor: pointer;
	display: block;
	opacity: .55;
	transition: border-color .2s, opacity .2s;
}
.pf-thumb:hover { opacity: .85; }
.pf-thumb.active {
	border-color: var(--pf-accent);
	opacity: 1;
}
.pf-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   CONTENT LAYOUT  (Article | Sidebar)
═══════════════════════════════════════════════════════════ */
.pf-layout {
	max-width: var(--pf-max);
	margin: 0 auto;
	padding: 60px 24px 100px;
	display: grid;
	grid-template-columns: 1fr var(--pf-sidebar-w);
	gap: 48px;
	align-items: start;
}

/* ── Article content ── */
.pf-article { min-width: 0; }

.pf-post-content h2 {
	font-size: clamp(18px, 2vw, 22px);
	font-weight: 800;
	color: var(--pf-primary);
	margin: 28px 0 10px;
}
.pf-post-content h3 {
	font-size: clamp(15px, 1.6vw, 17px);
	font-weight: 700;
	color: var(--pf-primary);
	margin: 20px 0 8px;
}
.pf-post-content p {
	font-size: 15px;
	color: #444;
	line-height: 1.75;
	margin-bottom: 16px;
}
.pf-post-content ul,
.pf-post-content ol {
	margin: 0 0 16px 20px;
}
.pf-post-content li {
	font-size: 15px;
	color: #444;
	margin-bottom: 8px;
	line-height: 1.65;
}
.pf-post-content a {
	color: var(--pf-accent);
	font-weight: 600;
	text-decoration: underline;
}
.pf-post-content a:hover { color: var(--pf-accent-dark); }
.pf-post-content img {
	max-width: 100%;
	border-radius: var(--pf-radius);
	margin: 8px 0 18px;
}
.pf-post-content blockquote {
	border-left: 4px solid var(--pf-accent);
	padding: 14px 20px;
	margin: 24px 0;
	background: var(--pf-bg-light);
	border-radius: 0 var(--pf-radius) var(--pf-radius) 0;
	font-style: italic;
	color: var(--pf-primary);
}

/* Post nav */
.pf-post-nav {
	display: flex;
	gap: 16px;
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--pf-border);
}
.pf-nav-link {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 20px;
	background: var(--pf-bg-light);
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius);
	text-decoration: none;
	transition: border-color .2s;
}
.pf-nav-link:hover { border-color: var(--pf-accent); }
.pf-nav-next { text-align: right; }
.pf-nav-dir {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .8px;
	color: var(--pf-muted);
	font-weight: 700;
}
.pf-nav-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--pf-primary);
	line-height: 1.35;
}

/* ── Sidebar ── */
.pf-sidebar {
	position: sticky;
	top: 100px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Project Details card */
.pf-details-card {
	background: var(--pf-bg-light);
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius);
	overflow: hidden;
}
.pf-details-title {
	background: var(--pf-primary);
	color: var(--pf-white);
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .8px;
	padding: 14px 20px;
	margin: 0;
}
.pf-details-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
/* pf-details-block is pasted from Classic Editor */
.pf-details-block {
	list-style: none;
	padding: 0;
	margin: 0;
}
.pf-details-item,
.pf-details-block .pf-detail-row {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 20px;
	border-bottom: 1px solid var(--pf-border);
}
.pf-details-item:last-child,
.pf-details-block .pf-detail-row:last-child { border-bottom: none; }
.pf-details-label,
.pf-detail-label {
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .7px;
	color: var(--pf-muted);
}
.pf-details-value,
.pf-detail-value {
	font-size: 13px;
	font-weight: 600;
	color: var(--pf-text);
}

/* CTA button — !important overrides global theme link color */
.pf-details-card .pf-cta-btn,
.pf-details-card .pf-cta-btn:link,
.pf-details-card .pf-cta-btn:visited {
	display: block !important;
	background: var(--pf-accent) !important;
	color: #ffffff !important;
	text-align: center !important;
	padding: 14px 20px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	border-radius: 0 0 var(--pf-radius) var(--pf-radius) !important;
	transition: background .2s !important;
	letter-spacing: .3px !important;
}
.pf-details-card .pf-cta-btn:hover,
.pf-details-card .pf-cta-btn:focus {
	background: var(--pf-accent-dark) !important;
	color: #ffffff !important;
}

/* Share box */
.pf-share-box {
	background: var(--pf-bg-light);
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius);
	padding: 18px 20px;
}
.pf-share-label {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .8px;
	color: var(--pf-muted);
	margin-bottom: 12px;
}
.pf-share-icons { display: flex; gap: 10px; }
.pf-share-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--pf-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: background .2s;
}
.pf-share-icon:hover { background: var(--pf-accent); }
.pf-share-icon svg { width: 16px; height: 16px; fill: white; }

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

/* Tablet */
@media (max-width: 1024px) {
	:root { --pf-sidebar-w: 260px; }
	.pf-layout { gap: 32px; padding: 48px 24px 80px; }
	.pf-gallery-main { aspect-ratio: 16 / 8; }
}

/* Mobile */
@media (max-width: 768px) {
	.pf-hero { padding: 24px 16px 20px; }

	.pf-hero-meta {
		gap: 16px;
	}
	.pf-meta-item {
		border-right: none;
		margin-right: 0;
		padding-right: 0;
		border-bottom: 1px solid var(--pf-border);
		padding-bottom: 12px;
		width: 100%;
	}
	.pf-meta-item:last-child { border-bottom: none; padding-bottom: 0; }

	.pf-gallery-main { aspect-ratio: 16 / 9; }
	.pf-gallery .pf-gallery-nav { width: 36px !important; height: 36px !important; }
	.pf-gallery .pf-gallery-nav svg { width: 14px !important; height: 14px !important; }

	.pf-layout {
		grid-template-columns: 1fr;
		padding: 32px 16px 60px;
		gap: 40px;
	}
	.pf-sidebar { position: static; }
	.pf-post-nav { flex-direction: column; }
}

/* Small mobile */
@media (max-width: 480px) {
	.pf-gallery-nav { width: 36px; height: 36px; }
	.pf-gallery-nav svg { width: 16px; height: 16px; }
}
