/**
 * ELAP Portal Theme - Additional Styles
 * assets/css/theme-style.css
 *
 * @package ELAP_Portal_Theme
 */

/* =============================================================================
   Entry Content Styles
============================================================================= */

.entry-content blockquote {
	border-left: 4px solid #1a5c2a;
	padding: 12px 20px;
	margin: 16px 0;
	background: #f8fafc;
	border-radius: 0 8px 8px 0;
	color: #374151;
	font-style: italic;
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content code {
	background: #f0f2f5;
	border: 1px solid #e8ecf0;
	border-radius: 4px;
	padding: 2px 6px;
	font-size: 0.875em;
	font-family: 'Courier New', Courier, monospace;
}

.entry-content pre {
	background: #1a1a2e;
	color: #e8ecf0;
	padding: 16px 20px;
	border-radius: 8px;
	overflow-x: auto;
	margin-bottom: 1rem;
	font-family: 'Courier New', Courier, monospace;
	font-size: 0.9em;
	line-height: 1.5;
}

.entry-content pre code {
	background: transparent;
	border: none;
	padding: 0;
	font-size: inherit;
}

.entry-content hr {
	border: none;
	border-top: 1px solid #e8ecf0;
	margin: 24px 0;
}

.entry-content img {
	border-radius: 8px;
	margin-bottom: 1rem;
}

/* =============================================================================
   Archive Item Styles
============================================================================= */

.archive-item {
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.archive-item:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.archive-item .post-thumbnail-img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: 8px 8px 0 0;
	margin-bottom: 16px;
}

.archive-item .entry-title a {
	color: #1a5c2a;
	text-decoration: none;
}

.archive-item .entry-title a:hover {
	color: #2d8a45;
	text-decoration: underline;
}

.archive-item .entry-summary {
	color: #6b7280;
	font-size: 0.9rem;
	line-height: 1.6;
	margin-bottom: 16px;
}

/* =============================================================================
   Post Navigation
============================================================================= */

.post-navigation {
	margin-top: 24px;
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

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

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

/* =============================================================================
   Comments
============================================================================= */

.comments-area {
	margin-top: 32px;
}

.comments-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: #1a5c2a;
	margin-bottom: 20px;
}

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

.comment {
	padding: 16px;
	background: #f8fafc;
	border-radius: 8px;
	margin-bottom: 12px;
	border-left: 3px solid #e8ecf0;
}

.comment.bypostauthor {
	border-left-color: #1a5c2a;
}

.comment-meta {
	font-size: 0.875rem;
	color: #6b7280;
	margin-bottom: 10px;
}

.comment-author .fn {
	font-weight: 600;
	color: #1a5c2a;
}

.comment-body .reply a {
	font-size: 0.8125rem;
	color: #2d8a45;
}

/* Comment Form */
.comment-form label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: #374151;
	margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.9375rem;
	transition: border-color 0.2s ease;
	margin-bottom: 14px;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: #2d8a45;
	box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.15);
}

.comment-form .form-submit {
	margin-top: 8px;
}

.comment-form #submit {
	display: inline-flex;
	align-items: center;
	padding: 10px 24px;
	background: linear-gradient(135deg, #1a5c2a, #2d8a45);
	color: #ffffff;
	font-weight: 500;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.comment-form #submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

/* =============================================================================
   Search Form
============================================================================= */

.search-form {
	display: flex;
	gap: 8px;
}

.search-form .search-field {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.9375rem;
}

.search-form .search-submit {
	padding: 10px 20px;
	background: linear-gradient(135deg, #1a5c2a, #2d8a45);
	color: #ffffff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.2s ease;
}

.search-form .search-submit:hover {
	transform: translateY(-1px);
}

/* =============================================================================
   Widget Styles
============================================================================= */

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

.widget ul li {
	padding: 6px 0;
	border-bottom: 1px solid #f0f2f5;
	font-size: 0.9rem;
}

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

.widget ul li a {
	color: #374151;
}

.widget ul li a:hover {
	color: #1a5c2a;
}

.widget_calendar caption {
	font-weight: 600;
	color: #1a5c2a;
	margin-bottom: 8px;
}

/* =============================================================================
   Pagination Extended
============================================================================= */

.posts-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.posts-navigation .nav-previous a,
.posts-navigation .nav-next a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: #ffffff;
	border: 1px solid #e8ecf0;
	border-radius: 8px;
	font-size: 0.875rem;
	color: #374151;
	transition: all 0.2s ease;
}

.posts-navigation .nav-previous a:hover,
.posts-navigation .nav-next a:hover {
	background: #1a5c2a;
	color: #ffffff;
	border-color: #1a5c2a;
	text-decoration: none;
}

/* =============================================================================
   Accessibility - Skip Link
============================================================================= */

.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	padding: 8px 16px;
	background: #1a5c2a;
	color: #ffffff;
	z-index: 9999;
	border-radius: 0 0 8px 0;
}

.skip-link:focus {
	top: 0;
}

/* =============================================================================
   WP Admin Bar Adjustment
============================================================================= */

.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

/* =============================================================================
   Breadcrumbs
============================================================================= */

.breadcrumbs {
	margin-bottom: 20px;
}

.breadcrumb-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 0.875rem;
	color: #6b7280;
}

.breadcrumb-item a {
	color: #2d8a45;
	text-decoration: none;
}

.breadcrumb-item a:hover {
	text-decoration: underline;
}

.breadcrumb-item.active {
	color: #374151;
	font-weight: 500;
}

.breadcrumb-sep {
	color: #d1d5db;
	font-size: 0.75rem;
}

/* =============================================================================
   Dropdown Navigation
============================================================================= */

.main-navigation ul li {
	position: relative;
}

.main-navigation ul .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	min-width: 200px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	padding: 6px 0;
	z-index: 1100;
	flex-direction: column;
	gap: 0;
}

.main-navigation ul li:hover > .sub-menu,
.main-navigation ul li:focus-within > .sub-menu {
	display: flex;
}

.main-navigation ul .sub-menu li a {
	color: #374151;
	padding: 9px 16px;
	border-radius: 0;
	font-size: 0.875rem;
}

.main-navigation ul .sub-menu li a:hover {
	background: #f0f2f5;
	color: #1a5c2a;
}

.dropdown-caret {
	font-size: 0.6rem;
	margin-left: 2px;
	opacity: 0.7;
	vertical-align: middle;
}

/* =============================================================================
   Post Thumbnail (Featured Image)
============================================================================= */

.post-thumbnail-img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 16px;
}

/* =============================================================================
   Tag Links
============================================================================= */

.tag-link {
	display: inline-block;
	padding: 2px 10px;
	background: #f0f2f5;
	border-radius: 20px;
	font-size: 0.8125rem;
	color: #374151;
	margin-right: 4px;
	transition: background 0.2s;
}

.tag-link:hover {
	background: #1a5c2a;
	color: #ffffff;
	text-decoration: none;
}

/* =============================================================================
   Page Links (Multi-page posts)
============================================================================= */

.page-links {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 24px;
	font-size: 0.875rem;
	flex-wrap: wrap;
}

.page-links > span,
.page-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 10px;
	border-radius: 6px;
	border: 1px solid #e8ecf0;
	background: #ffffff;
	font-weight: 500;
	text-decoration: none;
	color: #374151;
	transition: all 0.2s;
}

.page-links a:hover {
	background: #1a5c2a;
	color: #ffffff;
	border-color: #1a5c2a;
}

/* =============================================================================
   Admin Notice (WP dashboard notices in front-end admin bar context)
============================================================================= */

.update-nag,
.updated,
.error,
.is-dismissible {
	display: none;
}
