/**
 * Editorial Magazine Layout - Single Post Styles
 * Version: 1.0.0
 */

/* ============================================
   Hero Section
   ============================================ */

.single-editorial {
	margin: 0;
	padding: 0;
}

.editorial-hero {
	position: relative;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	margin-bottom: 60px;
}

.editorial-hero-image {
	position: relative;
	width: 100%;
	height: 70vh;
	min-height: 500px;
	max-height: 800px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.editorial-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0) 0%,
		rgba(0, 0, 0, 0.1) 40%,
		rgba(0, 0, 0, 0.6) 100%
	);
	pointer-events: none;
}

.editorial-hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 60px 20px 80px;
	max-width: 900px;
	width: 100%;
}

.editorial-hero-no-image {
	background: #fafafa;
	height: auto;
	min-height: auto;
}

.editorial-hero-content-plain {
	padding: 80px 20px 60px;
}

/* Category Badge */
.editorial-category-badge {
	display: inline-block;
	padding: 8px 20px;
	background: rgba(255, 255, 255, 0.95);
	color: #1a1a1a;
	font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
	margin-bottom: 24px;
	transition: all 0.3s ease;
}

.editorial-category-badge:hover {
	background: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.editorial-category-badge-dark {
	background: #1a1a1a;
	color: #fff;
}

.editorial-category-badge-dark:hover {
	background: #333;
}

/* Title */
.editorial-title {
	font-family: 'Playfair Display', 'Georgia', serif;
	font-size: clamp(32px, 5vw, 56px);
	font-weight: 700;
	line-height: 1.15;
	color: #fff;
	margin: 0 0 24px;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
	letter-spacing: -0.5px;
}

.editorial-title-dark {
	color: #1a1a1a;
	text-shadow: none;
}

/* Meta */
.editorial-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	color: rgba(255, 255, 255, 0.9);
	font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 14px;
}

.editorial-meta-dark {
	color: #666;
}

.editorial-reading-time {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.editorial-reading-time svg {
	opacity: 0.8;
}

/* ============================================
   Content Wrapper
   ============================================ */

.editorial-content-wrapper {
	max-width: 100%;
	margin: 0 auto;
	padding: 0 20px;
}

.editorial-content {
	max-width: 680px;
	margin: 0 auto;
}

/* ============================================
   Post Content
   ============================================ */

.editorial-post-content {
	font-family: 'Merriweather', Georgia, serif;
	font-size: 18px;
	line-height: 1.85;
	color: #333;
}

.editorial-post-content p {
	margin-bottom: 1.75em;
}

.editorial-post-content h2,
.editorial-post-content h3,
.editorial-post-content h4 {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	color: #1a1a1a;
	margin-top: 2.5em;
	margin-bottom: 0.75em;
	line-height: 1.3;
}

.editorial-post-content h2 {
	font-size: 32px;
}

.editorial-post-content h3 {
	font-size: 26px;
}

.editorial-post-content h4 {
	font-size: 22px;
}

.editorial-post-content a {
	color: #1a1a1a;
	text-decoration: underline;
	text-decoration-color: rgba(26, 26, 26, 0.3);
	text-underline-offset: 3px;
	transition: text-decoration-color 0.2s ease;
}

.editorial-post-content a:hover {
	text-decoration-color: #1a1a1a;
}

/* Images break out of content width */
.editorial-post-content img,
.editorial-post-content figure,
.editorial-post-content .wp-block-image {
	max-width: calc(100% + 120px);
	width: calc(100% + 120px);
	margin-left: -60px;
	margin-right: -60px;
	border-radius: 4px;
}

.editorial-post-content figure img {
	width: 100%;
	margin: 0;
}

.editorial-post-content figcaption {
	text-align: center;
	font-size: 14px;
	color: #888;
	margin-top: 12px;
	font-style: italic;
}

/* Blockquotes / Pull Quotes */
.editorial-post-content blockquote,
.editorial-post-content .wp-block-quote {
	position: relative;
	max-width: calc(100% + 80px);
	margin: 3em -40px;
	padding: 40px 50px;
	background: #fafafa;
	border: none;
	border-left: 4px solid #1a1a1a;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 24px;
	font-style: italic;
	line-height: 1.6;
	color: #333;
}

.editorial-post-content blockquote p {
	margin-bottom: 0;
}

.editorial-post-content blockquote cite {
	display: block;
	margin-top: 20px;
	font-family: 'Karla', sans-serif;
	font-size: 14px;
	font-style: normal;
	color: #888;
	letter-spacing: 0.5px;
}

/* Lists */
.editorial-post-content ul,
.editorial-post-content ol {
	margin: 1.75em 0;
	padding-left: 1.5em;
}

.editorial-post-content li {
	margin-bottom: 0.75em;
}

/* ============================================
   Sources Section
   ============================================ */

.editorial-sources-section {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 1px solid #e5e5e5;
}

.editorial-sources-heading {
	font-family: 'Karla', sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #888;
	margin-bottom: 20px;
}

.editorial-source-url {
	margin-bottom: 8px;
}

.editorial-source-url a {
	font-family: 'Karla', sans-serif;
	font-size: 14px;
	color: #666 !important;
	text-decoration: none !important;
	word-break: break-all;
	transition: color 0.2s ease;
}

.editorial-source-url a:hover {
	color: #1a1a1a !important;
}

/* ============================================
   Post Footer
   ============================================ */

.editorial-post-foot {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 1px solid #e5e5e5;
}

.editorial-tags {
	margin-bottom: 30px;
}

.editorial-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.editorial-tag-list a {
	display: inline-block;
	padding: 8px 16px;
	background: #f5f5f5;
	color: #555;
	font-family: 'Karla', sans-serif;
	font-size: 13px;
	text-decoration: none;
	border-radius: 3px;
	transition: all 0.2s ease;
}

.editorial-tag-list a:hover {
	background: #1a1a1a;
	color: #fff;
}

.editorial-share {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}

/* ============================================
   Author Box
   ============================================ */

.editorial-author-section {
	margin-top: 60px;
	padding: 40px 0;
	border-top: 1px solid #e5e5e5;
	border-bottom: 1px solid #e5e5e5;
}

.editorial-author-box {
	display: flex;
	align-items: flex-start;
	gap: 24px;
}

.editorial-author-avatar img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
}

.editorial-author-info {
	flex: 1;
}

.editorial-author-label {
	display: block;
	font-family: 'Karla', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #888;
	margin-bottom: 4px;
}

.editorial-author-name {
	display: block;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 12px;
}

.editorial-author-bio {
	font-family: 'Karla', sans-serif;
	font-size: 15px;
	line-height: 1.7;
	color: #666;
	margin: 0;
}

/* ============================================
   Related Posts
   ============================================ */

.editorial-related-posts {
	margin-top: 80px;
	margin-bottom: 60px;
	padding-top: 60px;
	border-top: 1px solid #e5e5e5;
}

.editorial-related-header {
	text-align: center;
	margin-bottom: 50px;
}

.editorial-related-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 28px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 20px;
}

.editorial-related-line {
	width: 60px;
	height: 3px;
	background: #1a1a1a;
	margin: 0 auto;
}

.editorial-related-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
}

.editorial-related-item {
	position: relative;
}

.editorial-related-image-link {
	display: block;
	overflow: hidden;
	border-radius: 4px;
	margin-bottom: 20px;
}

.editorial-related-image {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.4s ease, opacity 0.3s ease;
}

.editorial-related-image-link:hover .editorial-related-image {
	transform: scale(1.03);
	opacity: 0.9;
}

.editorial-related-content {
	text-align: left;
}

.editorial-related-category {
	display: inline-block;
	font-family: 'Karla', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #888;
	text-decoration: none;
	margin-bottom: 10px;
	transition: color 0.2s ease;
}

.editorial-related-category:hover {
	color: #1a1a1a;
}

.editorial-related-post-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
}

.editorial-related-post-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.editorial-related-post-title a:hover {
	color: #555;
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 1024px) {
	.editorial-post-content img,
	.editorial-post-content figure,
	.editorial-post-content .wp-block-image {
		max-width: calc(100% + 60px);
		width: calc(100% + 60px);
		margin-left: -30px;
		margin-right: -30px;
	}
	
	.editorial-post-content blockquote {
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		padding: 30px 35px;
	}
}

@media (max-width: 768px) {
	.editorial-hero-image {
		height: 60vh;
		min-height: 400px;
	}
	
	.editorial-hero-content {
		padding: 40px 20px 60px;
	}
	
	.editorial-title {
		font-size: 28px;
	}
	
	.editorial-category-badge {
		padding: 6px 14px;
		font-size: 10px;
	}
	
	.editorial-content-wrapper {
		padding: 0 16px;
	}
	
	.editorial-post-content {
		font-size: 17px;
		line-height: 1.8;
	}
	
	.editorial-post-content h2 {
		font-size: 26px;
	}
	
	.editorial-post-content h3 {
		font-size: 22px;
	}
	
	.editorial-post-content img,
	.editorial-post-content figure,
	.editorial-post-content .wp-block-image {
		max-width: calc(100% + 32px);
		width: calc(100% + 32px);
		margin-left: -16px;
		margin-right: -16px;
		border-radius: 0;
	}
	
	.editorial-post-content blockquote {
		font-size: 20px;
		padding: 25px 25px;
	}
	
	.editorial-author-box {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	
	.editorial-related-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.editorial-related-post-title {
		font-size: 18px;
	}
}

@media (max-width: 480px) {
	.editorial-hero-image {
		height: 50vh;
		min-height: 350px;
	}
	
	.editorial-title {
		font-size: 24px;
	}
	
	.editorial-meta {
		font-size: 13px;
	}
	
	.editorial-post-content {
		font-size: 16px;
	}
}

/* ============================================
   Font Import (Playfair Display)
   ============================================ */

@font-face {
	font-family: "Playfair Display";
	font-weight: 400;
	font-style: normal;
	src: local('Playfair Display Regular'), local('PlayfairDisplay-Regular'), url(//sundayflat.com/wp-content/uploads/sgf-css/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2'), url(//sundayflat.com/wp-content/uploads/sgf-css/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYhg.woff) format('woff');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
