/**
 * Noveco Theme - Additional Styles
 *
 * @package Noveco
 * @since 1.0.0
 */

/*--------------------------------------------------------------
>>> Additional Components & Enhancements
--------------------------------------------------------------*/

/* Accessibility */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Skip link */
.skip-link {
	left: -9999em;
	top: 2.5em;
	z-index: 999999999;
	text-decoration: underline;
}

.skip-link:focus {
	display: block;
	left: 6px;
	top: 7px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	line-height: normal;
	padding: 15px 23px 14px;
	z-index: 100000;
	right: auto;
}

/* Content Styles */
.entry-content {
	line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin-top: 2rem;
	margin-bottom: 1rem;
}

.entry-content p {
	margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
	margin-bottom: 1.5rem;
	padding-left: 2rem;
}

.entry-content li {
	margin-bottom: 0.5rem;
}

.entry-content blockquote {
	margin: 2rem 0;
	padding: 1.5rem;
	background: #EEF7E0;
	border-left: 4px solid #4E7A1E;
	font-style: italic;
}

.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.entry-content pre {
	background: #f5f5f5;
	padding: 1rem;
	border-radius: 4px;
	overflow-x: auto;
}

.entry-content code {
	background: #EEF7E0;
	padding: 0.2rem 0.4rem;
	border-radius: 4px;
	font-family: 'Courier New', monospace;
	font-size: 0.9em;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5rem;
}

.entry-content table th,
.entry-content table td {
	padding: 0.75rem;
	border: 1px solid #EEF7E0;
	text-align: left;
}

.entry-content table th {
	background: #EEF7E0;
	font-weight: 600;
	color: #4E7A1E;
}

/* Pagination */
.pagination,
.posts-pagination {
	margin: 3rem 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
}

.pagination .page-numbers,
.posts-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 1rem;
	border-radius: 20px;
	background: #ffffff;
	border: 2px solid #EEF7E0;
	color: #4E7A1E;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.posts-pagination .page-numbers:hover {
	background: #4E7A1E;
	color: #ffffff;
	border-color: #4E7A1E;
	transform: translateY(-2px);
}

.pagination .page-numbers.current,
.posts-pagination .page-numbers.current {
	background: #4E7A1E;
	color: #ffffff;
	border-color: #4E7A1E;
}

/* Comments */
.comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 2px solid #EEF7E0;
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-body {
	background: #EEF7E0;
	padding: 1.5rem;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-metadata {
	font-size: 0.875rem;
	color: #999;
	margin-bottom: 1rem;
}

.comment-content p {
	margin-bottom: 1rem;
}

.reply {
	margin-top: 1rem;
}

.reply a {
	font-size: 0.875rem;
	font-weight: 600;
}

/* Forms */
.comment-form,
.search-form {
	margin-top: 2rem;
}

.comment-form label,
.search-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 2px solid #EEF7E0;
	border-radius: 8px;
	font-size: 1rem;
	transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus,
.search-form input:focus {
	outline: none;
	border-color: #4E7A1E;
	box-shadow: 0 0 0 3px rgba(78, 122, 30, 0.1);
}

.comment-form textarea {
	min-height: 150px;
	resize: vertical;
}

.comment-form input[type="submit"],
.search-form input[type="submit"] {
	background: #4E7A1E;
	color: #ffffff;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 24px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.comment-form input[type="submit"]:hover,
.search-form input[type="submit"]:hover {
	background: #3C6317;
	transform: translateY(-2px);
}

/* Widgets */
.widget {
	margin-bottom: 2rem;
}

.widget-title {
	font-size: 1.25rem;
	margin-bottom: 1rem;
	color: #4E7A1E;
}

.widget ul {
	list-style: none;
	padding: 0;
}

.widget ul li {
	padding: 0.5rem 0;
	border-bottom: 1px solid #EEF7E0;
}

.widget ul li:last-child {
	border-bottom: none;
}

/* Post Navigation */
.post-navigation {
	margin: 3rem 0;
	padding: 2rem 0;
	border-top: 2px solid #EEF7E0;
	border-bottom: 2px solid #EEF7E0;
	display: flex;
	justify-content: space-between;
	gap: 2rem;
}

.nav-previous,
.nav-next {
	flex: 1;
}

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

.post-navigation a {
	display: inline-block;
	padding: 1rem 1.5rem;
	background: #EEF7E0;
	border-radius: 8px;
	transition: all 0.2s;
}

.post-navigation a:hover {
	background: #D1E7F5;
	transform: translateY(-2px);
}

/* Loading Animation */
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.is-loading::after {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #EEF7E0;
	border-top-color: #4E7A1E;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
	margin-left: 0.5rem;
	vertical-align: middle;
}

/* Fade In Animation */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in {
	animation: fadeIn 0.4s ease-out;
}

/* Smooth transitions */
* {
	transition: background-color 0.2s ease,
	            color 0.2s ease,
	            border-color 0.2s ease,
	            transform 0.2s ease,
	            opacity 0.2s ease;
}

/* Print styles */
@media print {
	.noveco-header,
	.noveco-footer,
	.noveco-menu-toggle,
	.comments-area,
	.post-navigation {
		display: none;
	}

	body {
		font-size: 12pt;
	}

	.noveco-container {
		max-width: 100%;
	}
}
