/* ==========================================================================
   Digest Archives Plugin Styles
   ========================================================================== */

/* --- Archive Heading --- */
.hg-digest-archive-heading {
	font-size: 2rem;
	font-weight: 600;
	color: #002D42;
}

/* --- Category Blocks (Homepage) --- */
.hg-digest-category-block {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.hg-digest-category-block:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.hg-digest-category-block-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.hg-digest-category-block-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	border-radius: 8px 8px 0 0;
}
.hg-digest-category-block-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}
.hg-digest-category-block-placeholder {
	width: 100%;
	height: 200px;
	background: #e9ecef;
}
.hg-digest-category-block-content {
	padding: 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.hg-digest-category-block-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #333;
	margin-bottom: 16px;
	line-height: 1.3;
}
.hg-digest-category-block-description {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #666;
	margin-bottom: 20px;
	flex: 1;
}
.hg-digest-category-block-button {
	margin-top: auto;
	text-align: center;
}
.hg-digest-category-block-button span {
	display: inline-block;
	padding: 10px 24px;
	border: 2px solid #002D42;
	color: #002D42;
	background: #fff;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.95rem;
	transition: all 0.3s ease;
}
.hg-digest-category-block:hover .hg-digest-category-block-button span {
	background: #002D42;
	color: #fff;
}

/* --- Grid Items (Archive Pages) --- */
.hg-digest-grid-item {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	background: #fff;
	display: flex;
	flex-direction: column;
	min-height: 160px;
}
.hg-digest-digest-item .hg-digest-grid-content {
	justify-content: center;
}
.hg-digest-grid-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
.hg-digest-grid-content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.hg-digest-grid-title {
	font-size: 1.25rem;
	line-height: 1.4;
	font-weight: 600;
	margin-bottom: 8px;
}
.hg-digest-grid-title a:hover {
	text-decoration: underline !important;
}
.hg-digest-grid-meta {
	font-size: 0.9rem;
	color: #666;
	margin-bottom: 12px;
}
.hg-digest-grid-read {
	padding-top: 16px;
}

/* --- Buttons --- */
.hg-digest-btn-read {
	display: inline-block;
	padding: 10px 24px;
	background-color: #002D42;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.95rem;
	transition: all 0.3s ease;
}
.hg-digest-btn-read:hover {
	background-color: #004d6b;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 45, 66, 0.2);
}
.hg-digest-btn-outline {
	display: inline-block;
	padding: 10px 24px;
	border: 2px solid #002D42;
	color: #002D42;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
}
.hg-digest-btn-outline:hover {
	background: #002D42;
	color: #fff;
}

/* --- Pagination --- */
.hg-digest-pagination .page-numbers {
	display: inline-block;
	padding: 8px 16px;
	margin: 0 4px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	background: #fff;
}
.hg-digest-pagination .page-numbers:hover {
	background: #f0f0f0;
	border-color: #002D42;
}
.hg-digest-pagination .page-numbers.current {
	background: #002D42;
	color: #fff;
	border-color: #002D42;
}

/* --- Single Post --- */
.hg-digest-single-category {
	font-size: 1rem;
	font-weight: 600;
	color: #002D42;
	text-transform: uppercase;
}
.hg-digest-single-meta {
	font-size: 0.95rem;
	color: #666;
}
.hg-digest-single-title {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
	color: #002D42;
}
.hg-digest-single-content {
	font-size: 1.1rem;
	line-height: 1.8;
	color: #333;
}

/* --- Shortcode List --- */
.hg-digest-list-item {
	border-bottom: 1px solid #eee;
	padding: 16px 0;
}
.hg-digest-list-item:last-child {
	border-bottom: none;
}
.hg-digest-list-item h3 {
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 8px;
}
.hg-digest-list-item h3 a {
	text-decoration: none;
	color: #333;
}
.hg-digest-list-item h3 a:hover {
	text-decoration: underline;
}
