/* ========================================
	Page Template
	======================================== */
.page-header {
	background: var(--gradient-primary);
	padding: 80px 0 60px;
	text-align: center;
}

.page-title {
	font-size: 3rem;
	font-weight: 800;
	color: var(--white);
	margin: 0;
}

.site-branding {
	flex-direction: row;
	align-items: center;
	gap: 16px;
}

.site-logo {
	display: inline-flex;
	align-items: center;
}

.site-logo img {
	height: 46px;
	width: auto;
}

.site-eyebrow {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--text-light);
	margin-bottom: 4px;
}

.page-content {
	padding: 25px 0;
}

.content-wrapper {
	background: var(--white);
	border-radius: var(--border-radius-lg);
	padding: 50px;
	box-shadow: var(--shadow-md);
	max-width: 1200px;
	margin: 0 auto;
}

.page-content .featured-image {
	margin: -50px -50px 40px;
	border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
	overflow: hidden;
}

.page-content .featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

.entry-content {
	font-size: 1.1rem;
	line-height: 1.8;
}

.entry-content h2 {
	font-size: 1.8rem;
	color: var(--primary-color);
	margin: 20px 0 20px;
}

.entry-content h3 {
	font-size: 1.4rem;
	color: var(--primary-color);
	margin: 15px 0 15px;
}

.entry-content p {
	margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
	margin: 20px 0;
	padding-left: 30px;
}

.entry-content li {
	margin-bottom: 10px;
}

.entry-content blockquote {
	border-left: 4px solid var(--secondary-color);
	padding: 20px 30px;
	margin: 30px 0;
	background: var(--background);
	border-radius: 0 var(--border-radius) var(--border-radius) 0;
	font-style: italic;
	color: var(--text-light);
}

.entry-content a {
	color: var(--secondary-color);
	text-decoration: underline;
}

.entry-content a:hover {
	color: var(--primary-color);
}

.entry-content img {
	border-radius: var(--border-radius);
	margin: 20px 0;
}

.entry-content figure {
	margin: 30px 0;
}

.entry-content figcaption {
	text-align: center;
	font-size: 0.9rem;
	color: var(--text-light);
	margin-top: 10px;
}

/* ========================================
	Single Article Template
	======================================== */
.article-header {
	background: var(--gradient-primary);
	padding: 80px 0 60px;
	text-align: center;
}

.article-meta-top {
	margin-bottom: 20px;
}

.article-categories {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.category-badge {
	background: var(--accent-color);
	color: var(--white);
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.category-badge:hover {
	background: #dd6b20;
}

.article-title {
	font-size: 2.8rem;
	font-weight: 800;
	color: var(--white);
	margin: 0 0 30px;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.2;
}

.article-meta {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 30px;
	flex-wrap: wrap;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(255,255,255,0.8);
	font-size: 0.95rem;
}

.meta-item.author img {
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,0.3);
}

.meta-item svg {
	opacity: 0.8;
}

/* Featured Image */
.article-featured-image {
	margin-top: -30px;
	padding-bottom: 40px;
}

.featured-image-wrapper {
	max-width: 1000px;
	margin: 0 auto;
	border-radius: var(--border-radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-xl);
}

.featured-image-wrapper img {
	width: 100%;
	height: auto;
	display: block;
}

.featured-image-wrapper figcaption {
	background: var(--white);
	padding: 15px 20px;
	font-size: 0.9rem;
	color: var(--text-light);
	text-align: center;
}

/* Article Content */
.article-content {
	padding: 60px 0;
}

.article-content .content-wrapper {
	margin-bottom: 40px;
}

/* Tags */
.article-tags {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.tags-label {
	font-weight: 600;
	color: var(--text-light);
}

.tag-link {
	background: var(--background);
	color: var(--primary-color);
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 0.9rem;
	transition: var(--transition);
}

.tag-link:hover {
	background: var(--primary-color);
	color: var(--white);
}

/* Share */
.article-share {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	gap: 20px;
}

.share-label {
	font-weight: 600;
	color: var(--text-light);
}

.share-buttons {
	display: flex;
	gap: 10px;
}

.share-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	transition: var(--transition);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }

.share-btn:hover {
	transform: scale(1.1);
	opacity: 0.9;
}

/* Author Box */
.author-box {
	background: var(--white);
	border-radius: var(--border-radius-lg);
	padding: 40px;
	box-shadow: var(--shadow-md);
	display: flex;
	gap: 30px;
	margin-bottom: 40px;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

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

.author-info {
	flex: 1;
}

.author-name {
	font-size: 1.3rem;
	color: var(--primary-color);
	margin-bottom: 10px;
}

.author-bio {
	color: var(--text-light);
	line-height: 1.7;
	margin-bottom: 15px;
}

.author-link {
	color: var(--secondary-color);
	font-weight: 600;
}

.author-link:hover {
	color: var(--primary-color);
}

/* Post Navigation */
.post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	max-width: 900px;
	margin: 0 auto 60px;
}

.nav-link {
	background: var(--white);
	padding: 30px;
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
}

.nav-link:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-3px);
}

.nav-link.next {
	text-align: right;
}

.nav-label {
	display: block;
	font-size: 0.85rem;
	color: var(--text-light);
	margin-bottom: 8px;
}

.nav-title {
	display: block;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--primary-color);
}

/* Related Posts */
.related-posts {
	background: var(--background);
	padding: 80px 0;
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.post-card {
	background: var(--white);
	border-radius: var(--border-radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	transition: var(--transition);
}

.post-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-lg);
}

.post-card-image {
	display: block;
	height: 200px;
	overflow: hidden;
}

.post-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.post-card-image.placeholder {
	background: var(--gradient-primary);
	display: flex;
	align-items: center;
	justify-content: center;
}

.post-card-image.placeholder svg {
	width: 60px;
	height: 60px;
	color: rgba(255,255,255,0.5);
}

.post-card-content {
	padding: 25px;
}

.post-card-category {
	display: inline-block;
	font-size: 0.8rem;
	color: var(--secondary-color);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 10px;
}

.post-card-date {
	font-size: 0.85rem;
	color: var(--text-light);
}

.post-card-title {
	font-size: 1.2rem;
	margin: 10px 0;
	line-height: 1.4;
}

.post-card-title a {
	color: var(--primary-color);
}

.post-card-title a:hover {
	color: var(--secondary-color);
}

.post-card-excerpt {
	font-size: 0.95rem;
	color: var(--text-light);
	line-height: 1.6;
}

.post-card-meta {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	justify-content: space-between;
	font-size: 0.85rem;
	color: var(--text-light);
}

/* ========================================
	Archive Template
	======================================== */
.archive-header {
	background: var(--gradient-primary);
	padding: 80px 0 60px;
	text-align: center;
}

.archive-title {
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--white);
	margin: 0;
}

.archive-description {
	max-width: 600px;
	margin: 20px auto 0;
	color: rgba(255,255,255,0.8);
	font-size: 1.1rem;
}

.archive-content {
	padding: 80px 0;
}

.archive-grid {
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Pagination */
.pagination {
	margin-top: 60px;
	text-align: center;
}

.pagination ul {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	list-style: none;
}

.pagination li a,
.pagination li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 15px;
	background: var(--white);
	border-radius: 8px;
	font-weight: 500;
	color: var(--text-color);
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
}

.pagination li a:hover {
	background: var(--primary-color);
	color: var(--white);
}

.pagination li span.current {
	background: var(--primary-color);
	color: var(--white);
}

/* No Results */
.no-results {
	text-align: center;
	padding: 80px 40px;
	background: var(--white);
	border-radius: var(--border-radius-lg);
}

.no-results h2 {
	font-size: 1.8rem;
	color: var(--primary-color);
	margin-bottom: 15px;
}

.no-results p {
	color: var(--text-light);
}

/* ========================================
	Breadcrumbs
	======================================== */
.breadcrumbs {
	margin-bottom: 20px;
}

.breadcrumbs a,
.breadcrumbs span {
	color: rgba(255,255,255,0.7);
	font-size: 0.9rem;
}

.breadcrumbs a:hover {
	color: var(--white);
}

/* ========================================
	404 Error Page
	======================================== */
.error-404 {
	padding: 100px 0;
	text-align: center;
	background: var(--background);
}

.error-content {
	max-width: 800px;
	margin: 0 auto;
}

.error-visual {
	position: relative;
	margin-bottom: 40px;
}

.error-number {
	font-size: 12rem;
	font-weight: 900;
	color: var(--primary-color);
	opacity: 0.1;
	line-height: 1;
	margin-bottom: -20px;
}

.error-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 120px;
	height: 120px;
	background: var(--gradient-primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-xl);
}

.error-icon svg {
	width: 60px;
	height: 60px;
	color: var(--white);
}

.error-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 20px;
}

.error-description {
	font-size: 1.2rem;
	color: var(--text-light);
	line-height: 1.7;
	margin-bottom: 40px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.error-actions {
	display: flex;
	gap: 20px;
	justify-content: center;
	margin-bottom: 60px;
	flex-wrap: wrap;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 30px;
	border-radius: var(--border-radius);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	transition: var(--transition);
	cursor: pointer;
	border: none;
}

.btn-primary {
	background: var(--gradient-primary);
	color: var(--white);
	box-shadow: var(--shadow-md);
}

.btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
}

.btn-secondary {
	background: var(--white);
	color: var(--primary-color);
	border: 2px solid var(--primary-color);
	box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
	background: var(--primary-color);
	color: var(--white);
	transform: translateY(-3px);
}

.error-search {
	margin-bottom: 60px;
}

.error-search h3 {
	font-size: 1.5rem;
	color: var(--primary-color);
	margin-bottom: 20px;
}

.search-form {
	display: flex;
	max-width: 500px;
	margin: 0 auto;
	background: var(--white);
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: var(--shadow-md);
}

.search-field {
	flex: 1;
	padding: 15px 20px;
	border: none;
	font-size: 1rem;
	outline: none;
}

.search-submit {
	padding: 15px 20px;
	background: var(--secondary-color);
	color: var(--white);
	border: none;
	cursor: pointer;
	transition: var(--transition);
}

.search-submit:hover {
	background: #319795;
}

.error-categories {
	margin-bottom: 40px;
}

.error-categories h3 {
	font-size: 1.5rem;
	color: var(--primary-color);
	margin-bottom: 30px;
}

.categories-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
	max-width: 800px;
	margin: 0 auto;
}

.category-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 20px;
	background: var(--white);
	border-radius: var(--border-radius);
	color: var(--primary-color);
	text-decoration: none;
	transition: var(--transition);
	box-shadow: var(--shadow-sm);
}

.category-link:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	color: var(--secondary-color);
}

.category-link svg {
	flex-shrink: 0;
}
