/**
 * Additional Styles
 * 
 * @package DevAutomation
 */

/* Entry Meta */
.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	font-size: 0.875rem;
	color: var(--gray);
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--border);
}

.entry-meta span {
	display: flex;
	align-items: center;
	gap: 5px;
}

.entry-meta a {
	color: var(--gray);
	font-weight: 500;
}

.entry-meta a:hover {
	color: var(--primary-color);
}

/* Entry Content */
.entry-content {
	line-height: 1.8;
	font-size: 1.0625rem;
	color: #374151;
}

/* Article Title */
.entry-title {
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1.2;
	color: #111827;
	margin-bottom: 1.5rem;
	letter-spacing: -0.025em;
}

/* Heading Styles */
.entry-content h1 {
	font-size: 2.25rem;
	font-weight: 700;
	color: #111827;
	margin-top: 3rem;
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 3px solid var(--primary-color);
	letter-spacing: -0.02em;
}

.entry-content h2 {
	font-size: 1.875rem;
	font-weight: 700;
	color: #1f2937;
	margin-top: 2.5rem;
	margin-bottom: 1.25rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #e5e7eb;
	letter-spacing: -0.015em;
}

.entry-content h3 {
	font-size: 1.5rem;
	font-weight: 600;
	color: #374151;
	margin-top: 2rem;
	margin-bottom: 1rem;
}

.entry-content h4 {
	font-size: 1.25rem;
	font-weight: 600;
	color: #4b5563;
	margin-top: 1.75rem;
	margin-bottom: 0.875rem;
}

.entry-content h5 {
	font-size: 1.125rem;
	font-weight: 600;
	color: #6b7280;
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
}

.entry-content h6 {
	font-size: 1rem;
	font-weight: 600;
	color: #6b7280;
	margin-top: 1.25rem;
	margin-bottom: 0.625rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Paragraph */
.entry-content p {
	margin-bottom: 1.5rem;
	line-height: 1.75;
}

.entry-content p:first-of-type {
	font-size: 1.125rem;
	color: #4b5563;
	line-height: 1.8;
}

/* Strong/Bold Text */
.entry-content strong,
.entry-content b {
	font-weight: 700;
	color: #1f2937;
}

/* Emphasis/Italic Text */
.entry-content em,
.entry-content i {
	font-style: italic;
	color: #374151;
}

.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 2rem 0;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.entry-content img:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.entry-content figure {
	margin: 2.5rem 0;
}

.entry-content figure img {
	margin: 0;
}

.entry-content figcaption {
	margin-top: 0.75rem;
	font-size: 0.875rem;
	color: #6b7280;
	text-align: center;
	font-style: italic;
}

.entry-content blockquote {
	margin: 2.5rem 0;
	padding: 1.5rem 2rem;
	background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
	border-left: 5px solid var(--primary-color);
	border-radius: 8px;
	font-style: italic;
	font-size: 1.125rem;
	color: #1f2937;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content blockquote cite {
	display: block;
	margin-top: 1rem;
	font-size: 0.9375rem;
	font-style: normal;
	color: #6b7280;
	font-weight: 600;
}

.entry-content blockquote cite:before {
	content: "— ";
}

/* Lists Styling */
.entry-content ul,
.entry-content ol {
	margin-bottom: 1.75rem;
	margin-top: 1rem;
	padding-left: 2rem;
}

.entry-content ul {
	list-style-type: disc;
}

.entry-content ol {
	list-style-type: decimal;
}

.entry-content li {
	margin-bottom: 0.75rem;
	line-height: 1.7;
	padding-left: 0.5rem;
}

.entry-content li::marker {
	color: var(--primary-color);
	font-weight: 600;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

/* Links in Content */
.entry-content a {
	color: var(--primary-color);
	text-decoration: underline;
	text-decoration-color: rgba(4, 120, 87, 0.3);
	text-underline-offset: 3px;
	transition: all 0.2s ease;
	font-weight: 500;
}

.entry-content a:hover {
	color: var(--primary-hover);
	text-decoration-color: var(--primary-hover);
	text-underline-offset: 4px;
}

.entry-content code {
	background: #f3f4f6;
	color: #e11d48;
	padding: 3px 8px;
	border-radius: 4px;
	font-family: "Menlo", "Monaco", "Courier New", monospace;
	font-size: 0.875em;
	font-weight: 500;
	border: 1px solid #e5e7eb;
}

.entry-content pre {
	background: #1f2937;
	color: #f9fafb;
	padding: 1.5rem;
	border-radius: 10px;
	overflow-x: auto;
	margin: 2rem 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border: 1px solid #374151;
}

.entry-content pre code {
	background: none;
	color: inherit;
	padding: 0;
	border: none;
	font-size: 0.9375rem;
	line-height: 1.6;
}

/* Tables Styling */
.entry-content table {
	width: 100%;
	margin: 2rem 0;
	border-collapse: collapse;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.entry-content table thead {
	background: var(--primary-color);
	color: white;
}

.entry-content table th {
	padding: 1rem;
	text-align: left;
	font-weight: 600;
	font-size: 0.9375rem;
	border-bottom: 2px solid var(--primary-hover);
}

.entry-content table td {
	padding: 0.875rem 1rem;
	border-bottom: 1px solid #e5e7eb;
}

.entry-content table tbody tr:hover {
	background: #f9fafb;
}

.entry-content table tbody tr:last-child td {
	border-bottom: none;
}

/* Horizontal Rule */
.entry-content hr {
	margin: 3rem 0;
	border: none;
	height: 2px;
	background: linear-gradient(to right, transparent, #e5e7eb, transparent);
}

/* Dividers with Text */
.entry-content hr.styled {
	position: relative;
	height: 1px;
	background: #e5e7eb;
	margin: 3rem 0;
}

/* Video & iFrame */
.entry-content iframe,
.entry-content video {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 2rem 0;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Video Container */
.entry-content .video-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
	margin: 2rem 0;
	border-radius: 12px;
}

.entry-content .video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
}

/* Special Callout Boxes */
.entry-content .callout {
	margin: 2rem 0;
	padding: 1.5rem;
	border-radius: 10px;
	border-left: 4px solid;
}

.entry-content .callout.info {
	background: #eff6ff;
	border-color: #3b82f6;
	color: #1e40af;
}

.entry-content .callout.warning {
	background: #fef3c7;
	border-color: #f59e0b;
	color: #92400e;
}

.entry-content .callout.success {
	background: #ecfdf5;
	border-color: #10b981;
	color: #065f46;
}

.entry-content .callout.error {
	background: #fee2e2;
	border-color: #ef4444;
	color: #991b1b;
}

/* Featured Image */
.entry-featured-image {
	margin-bottom: 30px;
	border-radius: 12px;
	overflow: hidden;
}

.entry-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Tags List */
.tags-list {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
}

.tags-list a {
	display: inline-block;
	padding: 6px 12px;
	background: var(--light-gray);
	border-radius: 6px;
	margin-right: 8px;
	margin-bottom: 8px;
	font-size: 0.875rem;
	color: var(--dark);
	transition: all 0.2s;
}

.tags-list a:hover {
	background: var(--primary-light);
	color: var(--primary-color);
}

/* Post Navigation */
.post-navigation {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin: 40px 0;
	padding: 30px 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.post-navigation a {
	flex: 1;
	padding: 20px;
	background: var(--light-gray);
	border-radius: 8px;
	transition: all 0.3s;
}

.post-navigation a:hover {
	background: var(--primary-light);
	transform: translateY(-2px);
}

.nav-subtitle {
	display: block;
	font-size: 0.875rem;
	color: var(--gray);
	margin-bottom: 5px;
}

.nav-title {
	font-weight: 600;
	color: var(--dark);
}

/* Pagination */
.navigation.pagination,
.navigation .nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 60px 0 40px;
	flex-wrap: wrap;
	align-items: center;
}

.navigation .nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 48px;
	padding: 0 12px;
	background: var(--white);
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	color: #6b7280;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.navigation .nav-links .page-numbers::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	background: rgba(34, 197, 94, 0.1);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition:
		width 0.3s,
		height 0.3s;
}

.navigation .nav-links .page-numbers:hover {
	border-color: #22c55e;
	color: #22c55e;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.navigation .nav-links .page-numbers:hover::before {
	width: 100%;
	height: 100%;
}

.navigation .nav-links .page-numbers.current {
	background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
	border-color: #22c55e;
	color: var(--white);
	box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
	font-weight: 700;
}

/* Prev/Next buttons styling */
.navigation .nav-links .page-numbers.prev,
.navigation .nav-links .page-numbers.next {
	min-width: auto;
	padding: 0 16px;
	font-size: 13px;
	font-weight: 600;
	display: inline-flex;
	gap: 6px;
}

.navigation .nav-links .page-numbers.prev:hover,
.navigation .nav-links .page-numbers.next:hover {
	background: #f3f4f6;
	border-color: #22c55e;
	color: #22c55e;
}

/* Dots/Span styling */
.navigation .nav-links .page-numbers.dots {
	min-width: auto;
	padding: 0 8px;
	color: #9ca3af;
	border: none;
	background: transparent;
	cursor: default;
}

.navigation .nav-links .page-numbers.dots:hover {
	transform: none;
	box-shadow: none;
	border: none;
}

/* Hide screen reader text */
.navigation .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* Mobile responsive */
@media (max-width: 640px) {
	.navigation.pagination,
	.navigation .nav-links {
		gap: 6px;
		margin: 40px 0 30px;
	}

	.navigation .nav-links .page-numbers {
		min-width: 40px;
		height: 40px;
		padding: 0 10px;
		font-size: 12px;
	}

	.navigation .nav-links .page-numbers.prev,
	.navigation .nav-links .page-numbers.next {
		padding: 0 12px;
	}
}

/* Sidebar Widgets */
.widget {
	margin-bottom: 30px;
	padding: 25px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 12px;
}

.widget-title {
	font-size: 1.25rem;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--primary-color);
}

.widget ul {
	list-style: none;
	padding: 0;
}

.widget li {
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border);
}

.widget li:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.widget a {
	color: var(--dark);
	transition: color 0.2s;
}

.widget a:hover {
	color: var(--primary-color);
}

/* Responsive Utilities */
@media (max-width: 992px) {
	.post-navigation {
		flex-direction: column;
	}

	.entry-title {
		font-size: 2rem;
	}

	.entry-content h1 {
		font-size: 1.875rem;
	}

	.entry-content h2 {
		font-size: 1.5rem;
	}
}

@media (max-width: 768px) {
	.entry-meta {
		font-size: 0.8125rem;
	}

	.entry-content {
		font-size: 1rem;
	}

	.entry-title {
		font-size: 1.75rem;
		margin-bottom: 1.25rem;
	}

	.entry-content h1 {
		font-size: 1.625rem;
		margin-top: 2rem;
	}

	.entry-content h2 {
		font-size: 1.375rem;
		margin-top: 1.75rem;
	}

	.entry-content h3 {
		font-size: 1.25rem;
	}

	.entry-content h4 {
		font-size: 1.125rem;
	}

	.entry-content p:first-of-type {
		font-size: 1.0625rem;
	}

	.entry-content blockquote {
		padding: 1rem 1.25rem;
		font-size: 1rem;
	}

	.entry-content table {
		font-size: 0.875rem;
	}

	.entry-content table th,
	.entry-content table td {
		padding: 0.625rem;
	}

	.entry-content pre {
		padding: 1rem;
		font-size: 0.875rem;
	}
}
