/**
 * PC Changelog Manager - Public Styles
 *
 * @package PCChangelogManager
 */

/* ========================================
   CSS Variables
   ======================================== */

:root {
	/* Primary Colors */
	--pc-clm-primary: #2271b1;
	--pc-clm-primary-hover: #135e96;
	--pc-clm-primary-light: #e8f4fd;

	/* Semantic Colors */
	--pc-clm-success: #000000;
	--pc-clm-success-light: #ffffff;
	--pc-clm-warning: #dba617;
	--pc-clm-warning-light: #fef3cd;
	--pc-clm-error: #000000;
	--pc-clm-error-light: #ffffff;
	--pc-clm-info: #000000;
	--pc-clm-info-light: #ffffff;

	/* Category Colors */
	--pc-clm-category-new-features: #000000;
	--pc-clm-category-bug-fixes: #333333;
	--pc-clm-category-improvements: #666666;
	--pc-clm-category-security: #dba617;
	--pc-clm-category-deprecated: #888888;
	--pc-clm-category-removed: #aaaaaa;

	/* Typography */
	--pc-clm-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
	--pc-clm-font-size-base: 16px;
	--pc-clm-font-size-sm: 14px;
	--pc-clm-font-size-lg: 18px;
	--pc-clm-font-size-xl: 24px;
	--pc-clm-font-size-2xl: 32px;

	/* Spacing */
	--pc-clm-spacing-xs: 4px;
	--pc-clm-spacing-sm: 8px;
	--pc-clm-spacing-md: 16px;
	--pc-clm-spacing-lg: 24px;
	--pc-clm-spacing-xl: 32px;
	--pc-clm-spacing-2xl: 48px;

	/* Border Radius */
	--pc-clm-radius-sm: 4px;
	--pc-clm-radius-md: 8px;
	--pc-clm-radius-lg: 12px;

	/* Shadows */
	--pc-clm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--pc-clm-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
	--pc-clm-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

	/* Transitions */
	--pc-clm-transition-fast: 150ms ease;
	--pc-clm-transition-base: 250ms ease;
	--pc-clm-transition-slow: 350ms ease;
}

.pc-clm-archive-container {
	font-family: var(--pc-clm-font-family);
	font-size: var(--pc-clm-font-size-base);
	line-height: 1.6;
	color: #000000;
	padding: 0;
	max-width: 100%;
	margin: 0 auto;
}

.pc-clm-single-entry {
	font-family: var(--pc-clm-font-family);
	font-size: var(--pc-clm-font-size-base);
	line-height: 1.6;
	color: #000000;
	background-color: #ffffff;
	padding: var(--pc-clm-spacing-lg);
	border-radius: var(--pc-clm-radius-md);
	border: 2px solid #000000;
	max-width: 900px;
	margin: 20px auto;
}

.pc-clm-archive-header {
	text-align: left;
	margin-bottom: 40px;
	padding-bottom: 20px;
	border-bottom: 2px solid #000000;
}

.pc-clm-archive-title {
	font-size: var(--pc-clm-font-size-2xl);
	font-weight: 800;
	margin: 0 0 12px 0;
	color: #000000;
	letter-spacing: -0.02em;
}

.pc-clm-archive-header .archive-description {
	font-size: var(--pc-clm-font-size-lg);
	color: #000000;
	margin: 0;
	background: transparent;
}

/* ========================================
   Archive Content
   ======================================== */

.pc-clm-archive-content {
	margin-bottom: 32px;
	min-height: 100px;
}

.pc-clm-archive-content:empty {
	display: none;
}

/* ========================================
   Changelog Entry
   ======================================== */

.pc-clm-entry {
	position: relative;
	margin-bottom: var(--pc-clm-spacing-md);
	background-color: #ffffff;
	border-radius: var(--pc-clm-radius-md);
	border: 2px solid #000000;
	border-left: 4px solid #000000;
	transition: all var(--pc-clm-transition-base);
	overflow: hidden;
	max-width: 100%;
}



.pc-clm-entry-wrapper {
	padding: var(--pc-clm-spacing-lg);
	background-color: #ffffff;
}

.pc-clm-entry {
	position: relative;
	margin-bottom: var(--pc-clm-spacing-md);
	background-color: #ffffff;
	border-radius: var(--pc-clm-radius-md);
	border: 2px solid #000000;
	border-left: 4px solid #000000;
	transition: all var(--pc-clm-transition-base);
	overflow: hidden;
}

.pc-clm-archive-container .pc-clm-entry {
	max-width: 100%;
}

.pc-clm-entry:hover {
	border-color: #000000;
	box-shadow: var(--pc-clm-shadow-lg);
	transform: translateY(-2px);
}

.pc-clm-entry-wrapper:hover {
	box-shadow: var(--pc-clm-shadow-lg);
	transform: translateY(-2px);
}

.pc-clm-entry-inner {
	padding: var(--pc-clm-spacing-lg);
	background-color: #ffffff;
	border-radius: var(--pc-clm-radius-md);
}

.pc-clm-entry.pc-clm-category-new-features { border-left-color: var(--pc-clm-category-new-features); }
.pc-clm-entry.pc-clm-category-bug-fixes { border-left-color: var(--pc-clm-category-bug-fixes); }
.pc-clm-entry.pc-clm-category-improvements { border-left-color: var(--pc-clm-category-improvements); }
.pc-clm-entry.pc-clm-category-security { border-left-color: var(--pc-clm-category-security); }
.pc-clm-entry.pc-clm-category-deprecated { border-left-color: var(--pc-clm-category-deprecated); }
.pc-clm-entry.pc-clm-category-removed { border-left-color: var(--pc-clm-category-removed); }

.pc-clm-entry:last-child {
	margin-bottom: 0;
}

.pc-clm-entry-content-wrapper {
	background-color: #ffffff;
	padding: 12px;
	border-radius: var(--pc-clm-radius-md);
	margin-top: 8px;
}

.pc-clm-entry-content {
	background-color: #ffffff;
	padding: 12px;
}

.pc-clm-single-entry .pc-clm-entry-content {
	background-color: transparent;
	padding: 0;
	margin-top: 16px;
}

.pc-clm-single-entry .pc-clm-entry-title {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 16px;
}

.pc-clm-entry-title {
	font-size: var(--pc-clm-font-size-lg);
	font-weight: 700;
	margin: 0 0 var(--pc-clm-spacing-xs) 0;
	line-height: 1.3;
}

.pc-clm-entry-title a {
	color: #000000;
	text-decoration: none;
}

.pc-clm-entry-title a:hover {
	color: #666666;
}

.pc-clm-entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: var(--pc-clm-spacing-sm);
}

/* Version Badge */
.pc-clm-version-badge {
	display: inline-block;
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 700;
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
	color: #ffffff;
	background-color: #000000;
	border-radius: var(--pc-clm-radius-sm);
}

/* Release Date */
.pc-clm-release-date,
.pc-clm-date {
	font-size: 13px;
	color: #000000;
	font-weight: 600;
}

/* Category Badge */
.pc-clm-category-badge {
	display: inline-block;
	padding: 2px 10px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-radius: 20px;
	background-color: #f5f5f5;
	color: #000000;
	border: 1px solid #000000;
}

.pc-clm-category-badge.pc-clm-category-new-features { background-color: #f5f5f5; color: #000000; border-color: #000000; }
.pc-clm-category-badge.pc-clm-category-bug-fixes { background-color: #e0e0e0; color: #333333; border-color: #333333; }
.pc-clm-category-badge.pc-clm-category-improvements { background-color: #d0d0d0; color: #666666; border-color: #666666; }
.pc-clm-category-badge.pc-clm-category-security { background-color: #ffffff; color: #dba617; border-color: #dba617; }

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

.pc-clm-entry-content {
	font-size: 15px;
	line-height: 1.6;
	color: #000000;
	font-weight: 500;
	background-color: #ffffff;
	padding: 12px;
}

.pc-clm-entry-content p {
	margin: 0 0 var(--pc-clm-spacing-sm) 0;
}

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

.pc-clm-entry-content ul,
.pc-clm-entry-content ol {
	margin: 0 0 var(--pc-clm-spacing-md) 0;
	padding-left: 20px;
}

.pc-clm-entry-content li {
	margin-bottom: 4px;
}

/* ========================================
    Entry Header
    ======================================== */

.pc-clm-entry-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: var(--pc-clm-spacing-sm);
	gap: var(--pc-clm-spacing-md);
}

.pc-clm-entry-meta {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 0;
}

/* ========================================
    Upvote Section
    ======================================== */

.pc-clm-upvote-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.pc-clm-upvote-btn {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 12px;
	background-color: #ffffff;
	border: 2px solid #000000;
	border-radius: 20px;
	color: #000000;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: all var(--pc-clm-transition-fast);
	outline: none;
	position: relative;
	min-width: 70px;
	justify-content: center;
}

.pc-clm-upvote-btn:not(:disabled):hover {
	background-color: #000000;
	border-color: #000000;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: var(--pc-clm-shadow-md);
}

.pc-clm-upvote-btn:not(:disabled):active {
	transform: translateY(0);
	box-shadow: none;
}

.pc-clm-upvote-btn.voted {
	background-color: #000000;
	border-color: #000000;
	color: #ffffff;
}

.pc-clm-upvote-btn.loading {
	opacity: 0.7;
}

.pc-clm-upvote-btn.loading .pc-clm-upvote-icon {
	animation: pulse 1s ease-in-out infinite;
}

.pc-clm-upvote-icon svg {
	width: 16px;
	height: 16px;
	transition: transform var(--pc-clm-transition-fast);
}

.pc-clm-upvote-btn:hover .pc-clm-upvote-icon svg {
	transform: scale(1.1);
}

.pc-clm-upvote-count {
	font-weight: 700;
	min-width: 16px;
	text-align: center;
}

.pc-clm-upvote-label {
	font-size: 10px;
	color: #000000;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-weight: 600;
	white-space: nowrap;
}

.pc-clm-upvote-btn.voted + .pc-clm-upvote-label {
	color: #000000;
	font-weight: 700;
}

/* Loading animation */
@keyframes pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

/* ========================================
    Entry Footer
    ======================================== */

.pc-clm-entry-footer {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #f0f0f0;
}

.pc-clm-read-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #000000;
	text-decoration: none;
	transition: color 0.15s ease;
}

.pc-clm-read-more:hover {
	color: #666666;
}

.pc-clm-read-more .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.pc-clm-read-more:hover .dashicons {
	transform: translateX(2px);
}

/* ========================================
    No Entries State
    ======================================== */

.pc-clm-no-entries,
.pc-clm-widget-empty {
	text-align: center;
	padding: 48px 20px;
	color: #000000;
	background-color: #ffffff;
	border-radius: 6px;
	border: 2px solid #000000;
	font-weight: 600;
	margin: 20px 0;
}

.pc-clm-no-entries p,
.pc-clm-widget-empty p {
	margin: 0;
}

/* ========================================
   Shortcode Styles
   ======================================== */

.pc-clm-shortcode-wrapper {
	font-family: var(--pc-clm-font-family);
}

.pc-clm-shortcode-title {
	font-size: var(--pc-clm-font-size-xl);
	font-weight: 700;
	margin: 0 0 var(--pc-clm-spacing-lg) 0;
	color: #000000;
}

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

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

.pc-clm-widget-entry {
	padding: var(--pc-clm-spacing-md) 0;
	border-bottom: 1px solid #000000;
}

.pc-clm-widget-entry:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.pc-clm-widget-entry-header {
	display: flex;
	align-items: center;
	gap: var(--pc-clm-spacing-sm);
	margin-bottom: var(--pc-clm-spacing-xs);
}

.pc-clm-widget-version {
	font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
	font-size: 12px;
	font-weight: 600;
	color: #000000;
}

.pc-clm-widget-date {
	font-size: 12px;
	color: #000000;
}

.pc-clm-widget-entry-title {
	font-size: var(--pc-clm-font-size-sm);
	font-weight: 600;
	color: #000000;
	text-decoration: none;
	transition: color var(--pc-clm-transition-fast);
	display: block;
	line-height: 1.4;
}

.pc-clm-widget-entry-title:hover {
	color: #000000;
}

.pc-clm-widget-category {
	display: inline-block;
	margin-top: var(--pc-clm-spacing-xs);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	padding: 2px 6px;
	border-radius: 3px;
	background-color: #000000;
	color: #ffffff;
}

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

.pc-clm-archive-container .pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 2px solid #000000;
}

.pc-clm-archive-container .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	font-size: 14px;
	font-weight: 600;
	color: #000000;
	background-color: #ffffff;
	border: 2px solid #000000;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.15s ease;
}

.pc-clm-archive-container .page-numbers:hover {
	background-color: #000000;
	border-color: #000000;
	color: #ffffff;
}

.pc-clm-archive-container .page-numbers.current {
	background-color: #000000;
	border-color: #000000;
	color: #ffffff;
}

.pc-clm-archive-container .page-numbers.dots {
	border: none;
	background: none;
	color: #000000;
}

.pc-clm-archive-container .prev,
.pc-clm-archive-container .next {
	min-width: auto;
	padding: 0 16px;
}

/* ========================================
   Dark Mode Support
   ======================================== */

@media (prefers-color-scheme: dark) {
	.pc-clm-archive-container {
		color: #000000;
		background-color: #ffffff;
	}

	.pc-clm-archive-header {
		border-bottom-color: #000000;
	}

	.pc-clm-archive-title {
		color: #000000;
	}

	.pc-clm-archive-header .archive-description {
		color: #000000;
	}

	.pc-clm-entry {
		background-color: #ffffff;
		border-color: #000000;
	}

	.pc-clm-entry:hover {
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	}

	.pc-clm-entry-title a {
		color: #000000;
	}

	.pc-clm-entry-title a:hover {
		color: #000000;
	}

	.pc-clm-entry-content {
		color: #000000;
	}

	.pc-clm-read-more {
		color: #000000;
	}

	.pc-clm-read-more:hover {
		color: #000000;
	}

	.pc-clm-no-entries,
	.pc-clm-widget-empty {
		background-color: #ffffff;
		border-color: #000000;
		color: #000000;
	}

	.pc-clm-archive-container .page-numbers {
		background-color: #ffffff;
		border-color: #000000;
		color: #000000;
	}

	.pc-clm-archive-container .page-numbers:hover {
		background-color: #000000;
		color: #ffffff;
	}

	.pc-clm-archive-container .pagination {
		border-top-color: #000000;
	}

	.pc-clm-version-badge {
		background-color: #000000;
		color: #ffffff;
	}

	.pc-clm-release-date,
	.pc-clm-date {
		color: #000000;
	}

	.pc-clm-widget-entry {
		border-bottom-color: #000000;
	}

	.pc-clm-widget-entry-title {
		color: #000000;
	}

	.pc-clm-widget-entry-title:hover {
		color: #000000;
	}

	.pc-clm-category-new-features {
		background-color: #000000;
		color: #ffffff;
	}

	.pc-clm-category-bug-fixes {
		background-color: #333333;
		color: #ffffff;
	}

	.pc-clm-category-improvements {
		background-color: #666666;
		color: #ffffff;
	}

	.pc-clm-category-security {
		background-color: #dba617;
		color: #000000;
	}

	.pc-clm-category-deprecated {
		background-color: #888888;
		color: #ffffff;
	}

	.pc-clm-category-removed {
		background-color: #aaaaaa;
		color: #ffffff;
	}

	/* Upvote section dark mode */
	.pc-clm-upvote-btn {
		background-color: #ffffff;
		border-color: #000000;
		color: #000000;
	}

	.pc-clm-upvote-btn:not(:disabled):hover {
		background-color: #000000;
		border-color: #000000;
		color: #ffffff;
	}
	}

	.pc-clm-upvote-btn.voted {
		background-color: #000000;
		border-color: #000000;
		color: #ffffff;
	}

	.pc-clm-upvote-label {
		color: #000000;
	}

	.pc-clm-upvote-btn.voted + .pc-clm-upvote-label {
		color: #000000;
	}

	/* Notifications dark mode */
	.pc-clm-notification {
		background-color: #ffffff;
		border: 2px solid #000000;
		color: #000000;
	}
}

/* ========================================
   Responsive Design
   ======================================== */

@media screen and (max-width: 768px) {
	.pc-clm-archive-container {
		padding: 0 12px;
	}

	.pc-clm-archive-header {
		margin-bottom: 20px;
		padding: 20px 0;
	}

	.pc-clm-archive-title {
		font-size: 22px;
	}

	.pc-clm-entry {
		padding: 16px;
	}

	.pc-clm-entry-title {
		font-size: 17px;
	}

	.pc-clm-entry-meta {
		gap: 6px;
	}

	.pc-clm-version-badge {
		padding: 3px 8px;
		font-size: 12px;
	}

	.pc-clm-category-badge {
		padding: 3px 8px;
		font-size: 10px;
	}

	.pc-clm-entry-header {
		flex-direction: column;
		align-items: stretch;
		gap: var(--pc-clm-spacing-sm);
	}

	.pc-clm-upvote-section {
		align-self: flex-end;
	}
}

@media screen and (max-width: 480px) {
	.pc-clm-archive-container {
		padding: 0 8px;
	}

	.pc-clm-archive-title {
		font-size: 20px;
	}

	.pc-clm-entry {
		padding: 14px;
	}

	.pc-clm-entry-title {
		font-size: 16px;
	}

	.pc-clm-entry-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.pc-clm-version-badge,
	.pc-clm-release-date {
		display: inline-block;
	}

	.pc-clm-upvote-section {
		align-self: flex-end;
		margin-top: var(--pc-clm-spacing-sm);
	}

	.pc-clm-upvote-btn {
		min-width: 70px;
		padding: 8px 12px;
	}
}

/* ========================================
   Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
	.pc-clm-entry {
		transition: none;
	}

	.pc-clm-entry:hover {
		transform: none;
	}

	.pc-clm-read-more .dashicons {
		transition: none;
	}

	.pc-clm-read-more:hover .dashicons {
		transform: none;
	}
}

@media (prefers-contrast: high) {
	.pc-clm-entry {
		border-width: 2px;
	}

	.pc-clm-version-badge {
		border: 1px solid currentColor;
	}

	.pc-clm-category-badge {
		border: 1px solid currentColor;
	}
}

/* ========================================
    Notifications
    ======================================== */

.pc-clm-notification {
	position: fixed;
	top: 20px;
	right: 20px;
	padding: 12px 16px;
	background-color: #fff;
	border-radius: var(--pc-clm-radius-md);
	border-left: 4px solid;
	box-shadow: var(--pc-clm-shadow-lg);
	font-size: 14px;
	font-weight: 500;
	z-index: 10000;
	transform: translateX(100%);
	opacity: 0;
	transition: all var(--pc-clm-transition-base);
	max-width: 300px;
}

.pc-clm-notification.show {
	transform: translateX(0);
	opacity: 1;
}

.pc-clm-notification-success {
	border-left-color: var(--pc-clm-success);
	color: var(--pc-clm-success);
}

.pc-clm-notification-error {
	border-left-color: var(--pc-clm-error);
	color: var(--pc-clm-error);
}

.pc-clm-notification-info {
	border-left-color: var(--pc-clm-info);
	color: var(--pc-clm-info);
}

/* Focus visible for keyboard navigation */
.pc-clm-entry-title a:focus-visible,
.pc-clm-read-more:focus-visible,
.pc-clm-upvote-btn:focus-visible {
	outline: 2px solid var(--pc-clm-primary);
	outline-offset: 2px;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
	.pc-clm-archive-container {
		max-width: 100%;
		padding: 0;
	}

	.pc-clm-entry {
		box-shadow: none;
		border: 1px solid #ccc;
		page-break-inside: avoid;
	}

	.pc-clm-entry:hover {
		transform: none;
		box-shadow: none;
	}

	.pc-clm-read-more {
		display: none;
	}

	.pc-clm-category-badge {
		border: 1px solid #000;
	}
}
