/**
 * Changelog List Shortcode Styles
 *
 * Styles for the [changelog_list] shortcode output.
 *
 * @package Core
 * @since   <next-version>
 */

/* Container */
.changelog-posts-display-area {
	width: 100%;
}

/* Individual changelog entry */
.eddwp-changelog-item {
	padding: 24px 0;
	border-bottom: 1px solid #e5e7eb;
}

.eddwp-changelog-item:first-child {
	padding-top: 0;
}

.eddwp-changelog-item:last-of-type {
	border-bottom: none;
}

/* Taxonomy labels container */
.eddwp-changelog-labels {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

/* Individual taxonomy label */
.eddwp-changelog-label {
	display: inline-block;
	padding: 6px 12px;
	background-color: #F4F7FA;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.eddwp-changelog-label:hover {
	background-color: #e5e9ed;
	color: #1f2937;
	text-decoration: none;
}

/* Content section */
.eddwp-changelog-item .content {
	color: #374151;
}

/* Title/date line */
.eddwp-changelog-title {
	display: block;
	font-size: 18px;
	font-weight: 600;
	color: #111827;
	margin-bottom: 12px;
}

/* Preserve list styles */
.eddwp-changelog-item .content ul,
.eddwp-changelog-item .content ol {
	margin: 0 0 16px 0;
	padding-left: 24px;
}

.eddwp-changelog-item .content ul {
	list-style-type: disc;
}

.eddwp-changelog-item .content ol {
	list-style-type: decimal;
}

.eddwp-changelog-item .content li {
	margin-bottom: 8px;
	line-height: 1.6;
}

.eddwp-changelog-item .content li:last-child {
	margin-bottom: 0;
}

/* Nested lists */
.eddwp-changelog-item .content ul ul,
.eddwp-changelog-item .content ol ol,
.eddwp-changelog-item .content ul ol,
.eddwp-changelog-item .content ol ul {
	margin-top: 8px;
	margin-bottom: 0;
}

/* Paragraphs in content */
.eddwp-changelog-item .content p {
	margin: 0 0 16px 0;
	line-height: 1.6;
}

.eddwp-changelog-item .content p:last-child {
	margin-bottom: 0;
}

/* No results message */
.edd-changelog-no-results {
	text-align: center;
	color: #6b7280;
	padding: 40px 20px;
}

/* Pagination */
.changelog-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 40px 0 0 0;
	flex-wrap: wrap;
}

.changelog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 48px;
	padding: 0 4px;
	border-radius: 50%;
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	transition: all 0.2s ease;
}

/* Regular page numbers - outlined circles */
.changelog-pagination .page-numbers:not(.current):not(.dots):not(.next):not(.prev) {
	border: 2px solid #1a1a1a;
	color: #1a1a1a;
	background: #ffffff;
}

.changelog-pagination .page-numbers:not(.current):not(.dots):not(.next):not(.prev):hover {
	background-color: #f8f9fa;
	transform: scale(1.05);
}

/* Current page - filled green circle */
.changelog-pagination .page-numbers.current {
	background-color: #28a745;
	color: #ffffff;
	border: 2px solid #28a745;
	font-weight: 600;
}

/* Next and Previous - light gray circles with arrows */
.changelog-pagination .page-numbers.next,
.changelog-pagination .page-numbers.prev {
	background-color: #e9ecef;
	color: #6c757d;
	border: 2px solid #e9ecef;
	font-size: 0;
}

.changelog-pagination .page-numbers.next:hover,
.changelog-pagination .page-numbers.prev:hover {
	background-color: #dee2e6;
	border-color: #dee2e6;
	transform: scale(1.05);
}

.changelog-pagination .page-numbers.prev::before {
	content: "←";
	font-size: 20px;
	font-weight: 400;
}

.changelog-pagination .page-numbers.next::before {
	content: "→";
	font-size: 20px;
	font-weight: 400;
}

/* Ellipsis */
.changelog-pagination .page-numbers.dots {
	border: none;
	background: transparent;
	color: #1a1a1a;
	min-width: auto;
	pointer-events: none;
	font-weight: 600;
	letter-spacing: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.eddwp-changelog-item {
		padding: 20px 0;
	}

	.eddwp-changelog-title {
		font-size: 16px;
	}

	.changelog-pagination {
		gap: 6px;
	}

	.changelog-pagination .page-numbers {
		min-width: 40px;
		height: 40px;
		font-size: 14px;
	}

	.changelog-pagination .page-numbers.next::before,
	.changelog-pagination .page-numbers.prev::before {
		font-size: 18px;
	}
}
