/**
 * DinnerlyHub - Single Post Styles (Redesigned)
 * Clean, professional layout with improved readability.
 */

/* ==========================================================================
   BASE RESET
   ========================================================================== */

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

.dh-single {
	font-family: var(--dh-font);
	background: var(--dh-white);
}

/* ==========================================================================
   BREADCRUMB NAVIGATION
   ========================================================================== */

.dh-breadcrumb {
	max-width: var(--dh-max-width);
	margin: 0 auto;
	padding: 16px 24px;
}

.dh-breadcrumb__list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	font-size: 0.85rem;
	color: var(--dh-text-muted);
	margin: 0;
	padding: 0;
}

.dh-breadcrumb__link {
	color: var(--dh-text-muted);
	text-decoration: none;
	transition: color var(--dh-ease);
}

.dh-breadcrumb__link:hover {
	color: var(--dh-green);
}

.dh-breadcrumb__sep {
	color: #ccc;
}

.dh-breadcrumb__current {
	color: var(--dh-text-heading);
	font-weight: 500;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ==========================================================================
   MAIN LAYOUT
   ========================================================================== */

.dh-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	max-width: var(--dh-max-width);
	margin: 0 auto;
	padding: 0 24px 60px;
	align-items: start;
}

/* ==========================================================================
   ARTICLE CONTAINER
   ========================================================================== */

.dh-single__article {
	background: var(--dh-white);
	border-radius: var(--dh-radius-lg);
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(74, 124, 89, 0.12);
	min-width: 0;
}

/* ==========================================================================
   HERO IMAGE
   ========================================================================== */

.dh-single__hero {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.dh-single__hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}

.dh-single__article:hover .dh-single__hero-img {
	transform: scale(1.02);
}

.dh-single__hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		transparent 50%,
		rgba(0, 0, 0, 0.4) 100%
	);
	pointer-events: none;
}

.dh-single__hero-cats {
	position: absolute;
	top: 20px;
	left: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	z-index: 2;
}

.dh-single__cat-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: var(--dh-green);
	color: var(--dh-white);
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: var(--dh-radius-pill);
	text-decoration: none;
	transition: background var(--dh-ease), transform var(--dh-ease);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dh-single__cat-badge:hover {
	background: var(--dh-green-dark);
	transform: translateY(-2px);
}

.dh-single__cat-badge:focus-visible {
	outline: 2px solid var(--dh-white);
	outline-offset: 2px;
}

/* Inline categories (when no featured image) */
.dh-single__cats-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 24px 40px 0;
}

.dh-single__cats-inline .dh-single__cat-badge {
	box-shadow: none;
}

/* ==========================================================================
   ARTICLE BODY
   ========================================================================== */

.dh-single__body {
	padding: 36px 40px 48px;
}

/* ==========================================================================
   HEADER - Title & Meta
   ========================================================================== */

.dh-single__header {
	margin-bottom: 32px;
	padding-bottom: 28px;
	border-bottom: 1px solid rgba(74, 124, 89, 0.12);
}

.dh-single__title {
	font-family: var(--dh-font-heading);
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 700;
	color: var(--dh-text-heading);
	line-height: 1.3;
	margin: 0 0 24px;
	letter-spacing: -0.5px;
}

.dh-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 24px;
}

.dh-single__meta-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.dh-single__meta-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--dh-green-subtle);
	border-radius: 10px;
	color: var(--dh-green);
	flex-shrink: 0;
}

.dh-single__meta-label {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--dh-text-muted);
	margin-bottom: 2px;
}

.dh-single__meta-value {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--dh-text-heading);
}

.dh-single__author-link {
	color: var(--dh-green);
	text-decoration: none;
	transition: color var(--dh-ease);
}

.dh-single__author-link:hover {
	color: var(--dh-orange);
}

/* ==========================================================================
   CONTENT
   ========================================================================== */

.dh-single__content {
	font-size: 1.05rem;
	font-family: var(--dh-font-body);
	color: var(--dh-text-paragraph);
	line-height: 1.85;
}

.dh-single__content p {
	margin: 0 0 1.5em;
}

.dh-single__content h2 {
	font-family: var(--dh-font-heading);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--dh-text-heading);
	margin: 2.5em 0 1em;
	padding-left: 16px;
	border-left: 3px solid var(--dh-green);
	line-height: 1.35;
}

.dh-single__content h3 {
	font-family: var(--dh-font-heading);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--dh-text-heading);
	margin: 2em 0 0.8em;
	line-height: 1.4;
}

.dh-single__content h4 {
	font-family: var(--dh-font-heading);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--dh-text-heading);
	margin: 1.8em 0 0.6em;
}

.dh-single__content a {
	color: var(--dh-green);
	text-decoration: underline;
	text-decoration-color: rgba(74, 124, 89, 0.3);
	text-underline-offset: 3px;
	transition: text-decoration-color var(--dh-ease);
}

.dh-single__content a:hover {
	text-decoration-color: var(--dh-green);
}

.dh-single__content ul,
.dh-single__content ol {
	padding-left: 1.5em;
	margin: 0 0 1.5em;
}

.dh-single__content li {
	margin-bottom: 0.5em;
	line-height: 1.75;
}

.dh-single__content blockquote {
	margin: 2em 0;
	padding: 24px 28px;
	background: var(--dh-green-subtle);
	border-left: 4px solid var(--dh-green);
	border-radius: 0 var(--dh-radius-md) var(--dh-radius-md) 0;
	font-style: italic;
	color: #555;
}

.dh-single__content blockquote p:last-child {
	margin-bottom: 0;
}

.dh-single__content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--dh-radius-md);
	margin: 2em 0;
}

.dh-single__content figure {
	margin: 2em 0;
}

.dh-single__content figcaption {
	font-size: 0.88rem;
	color: var(--dh-text-muted);
	text-align: center;
	margin-top: 10px;
}

.dh-single__page-links {
	margin-top: 24px;
	padding: 16px 20px;
	background: var(--dh-green-subtle);
	border-radius: var(--dh-radius-md);
	font-size: 0.9rem;
}

/* ==========================================================================
   TAGS
   ========================================================================== */

.dh-single__tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid rgba(74, 124, 89, 0.12);
}

.dh-single__tags-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	color: var(--dh-text-muted);
	font-weight: 500;
}

.dh-single__tag {
	display: inline-block;
	padding: 6px 14px;
	background: var(--dh-green-subtle);
	color: var(--dh-green);
	font-size: 0.8rem;
	font-weight: 500;
	border-radius: var(--dh-radius-pill);
	text-decoration: none;
	transition: all var(--dh-ease);
}

.dh-single__tag:hover {
	background: var(--dh-green);
	color: var(--dh-white);
}

.dh-single__tag:focus-visible {
	outline: 2px solid var(--dh-green);
	outline-offset: 2px;
}

/* ==========================================================================
   SHARE SECTION
   ========================================================================== */

.dh-share {
	margin-top: 40px;
	padding: 28px;
	background: linear-gradient(135deg, #f8faf8 0%, #fef9f6 100%);
	border-radius: var(--dh-radius-lg);
	border: 1px solid rgba(74, 124, 89, 0.12);
}

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

.dh-share__icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--dh-white);
	border-radius: 12px;
	color: var(--dh-green);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	flex-shrink: 0;
}

.dh-share__text h3 {
	font-family: var(--dh-font-heading);
	font-size: 1rem;
	font-weight: 600;
	color: var(--dh-text-heading);
	margin: 0 0 2px;
}

.dh-share__text p {
	font-size: 0.85rem;
	color: var(--dh-text-muted);
	margin: 0;
}

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

.dh-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: var(--dh-radius-pill);
	color: var(--dh-white);
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform var(--dh-ease), box-shadow var(--dh-ease);
}

.dh-share__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.dh-share__btn:focus-visible {
	outline: 2px solid var(--dh-white);
	outline-offset: 2px;
}

.dh-share__btn--facebook { background: #1877f2; }
.dh-share__btn--pinterest { background: #e60023; }
.dh-share__btn--x { background: #000; }
.dh-share__btn--whatsapp { background: #25d366; }
.dh-share__btn--email { background: var(--dh-green); }

/* ==========================================================================
   RELATED POSTS - Simplified with title only
   ========================================================================== */

.dh-related {
	margin-top: 48px;
	padding-top: 40px;
	border-top: 1px solid rgba(74, 124, 89, 0.12);
}

.dh-related__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 16px;
}

.dh-related__header-left {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dh-related__pill {
	display: inline-block;
	padding: 4px 12px;
	background: rgba(242, 101, 34, 0.10);
	color: var(--dh-orange);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-radius: var(--dh-radius-pill);
	width: fit-content;
}

.dh-related__title {
	font-family: var(--dh-font-heading);
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--dh-text-heading);
	margin: 0;
}

.dh-related__see-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--dh-orange);
	text-decoration: none;
	transition: gap var(--dh-ease), color var(--dh-ease);
}

.dh-related__see-all:hover {
	gap: 10px;
	color: var(--dh-orange-dark);
}

.dh-related__see-all:focus-visible {
	outline: 2px solid var(--dh-orange);
	outline-offset: 3px;
	border-radius: 4px;
}

.dh-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* Related Card - Simplified */
.dh-related__card {
	background: var(--dh-white);
	border-radius: var(--dh-radius-md);
	overflow: hidden;
	border: 1px solid rgba(74, 124, 89, 0.12);
	transition: transform var(--dh-ease), box-shadow var(--dh-ease);
	animation: relatedFadeIn 0.4s ease forwards;
	animation-delay: var(--card-delay, 0s);
	opacity: 0;
}

@keyframes relatedFadeIn {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.dh-related__card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.dh-related__card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.dh-related__card-img-wrap {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.dh-related__card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--dh-ease);
}

.dh-related__card:hover .dh-related__card-img {
	transform: scale(1.05);
}

.dh-related__card-img-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f0f7f2 0%, #fdf4ef 100%);
}

.dh-related__card-cat {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	background: var(--dh-green);
	color: var(--dh-white);
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	border-radius: var(--dh-radius-pill);
	z-index: 2;
}

.dh-related__card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, transparent 40%);
	pointer-events: none;
}

.dh-related__card-title {
	padding: 16px;
	font-family: var(--dh-font-heading);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--dh-text-heading);
	line-height: 1.4;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color var(--dh-ease);
}

.dh-related__card:hover .dh-related__card-title {
	color: var(--dh-green);
}

/* ==========================================================================
   COMMENTS SECTION
   ========================================================================== */

.dh-comments {
	margin-top: 48px;
	padding-top: 40px;
	border-top: 1px solid rgba(74, 124, 89, 0.12);
}

.dh-comments__header {
	margin-bottom: 24px;
}

.dh-comments__pill {
	display: inline-block;
	padding: 4px 12px;
	background: var(--dh-green-subtle);
	color: var(--dh-green);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-radius: var(--dh-radius-pill);
	margin-bottom: 8px;
}

.dh-comments__title {
	font-family: var(--dh-font-heading);
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--dh-text-heading);
	margin: 0;
}

.dh-comments__count {
	color: var(--dh-orange);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
	.dh-single__layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.dh-related__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.dh-breadcrumb {
		padding: 12px 16px;
	}

	.dh-single__layout {
		padding: 0 16px 40px;
	}

	.dh-single__body {
		padding: 28px 24px 36px;
	}

	.dh-single__cats-inline {
		padding: 20px 24px 0;
	}

	.dh-single__meta {
		gap: 16px;
	}

	.dh-single__content {
		font-size: 1rem;
	}
}

@media (max-width: 640px) {
	.dh-single__body {
		padding: 24px 20px 32px;
	}

	.dh-single__cats-inline {
		padding: 16px 20px 0;
	}

	.dh-single__title {
		font-size: 1.4rem;
	}

	.dh-single__meta {
		flex-direction: column;
		gap: 12px;
	}

	.dh-single__meta-icon {
		width: 36px;
		height: 36px;
	}

	.dh-related__grid {
		grid-template-columns: 1fr;
	}

	.dh-share {
		padding: 20px;
	}

	.dh-share__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.dh-share__buttons {
		width: 100%;
	}

	.dh-share__btn {
		flex: 1;
		min-width: 60px;
		padding: 12px 14px;
	}

	.dh-share__btn span {
		display: none;
	}
}
