/* Changelog Page Styles */
.changelog-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 0;
}

.changelog-intro h2 {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: var(--accent-color);
	position: relative;
	padding-bottom: 0.5rem;
	text-align: center;
}

.changelog-intro h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background-color: var(--accent-color);
	border-radius: 2px;
}

.changelog-intro p {
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--text-secondary);
	max-width: 800px;
	margin: 0 auto;
}

/* Update Cards */
.update-card {
	background-color: var(--card-bg);
	border-radius: 0.75rem;
	padding: 2rem;
	box-shadow: var(--shadow);
	border: 1px solid var(--border-color);
	margin-bottom: 2rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	overflow: hidden;
}

.update-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
	gap: 1rem;
}

.update-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0;
}

.update-meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.update-version {
	background-color: var(--accent-color);
	color: white;
	padding: 0.25rem 0.75rem;
	border-radius: 1rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.update-date {
	color: var(--text-secondary);
	font-size: 0.9rem;
}

.update-author {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-secondary);
	font-size: 0.9rem;
}

.update-author i {
	color: var(--accent-color);
}

.update-description {
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--text-secondary);
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border-color);
}

.update-details {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	position: relative;
}

.update-section {
	background-color: var(--bg-tertiary);
	border-radius: 0.5rem;
	padding: 1.25rem;
	position: relative;
}

.update-section h4 {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.update-section h4 i {
	color: var(--accent-color);
}

.update-list {
	list-style-type: none;
	padding-left: 0;
	margin: 0;
}

.update-list li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--text-secondary);
}

.update-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.5rem;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--accent-color);
}

.update-section.added {
	border-left: 3px solid #4CAF50;
}

.update-section.changed {
	border-left: 3px solid #FFC107;
}

.update-section.removed {
	border-left: 3px solid #F44336;
}

.update-section.fixed {
	border-left: 3px solid #9C27B0;
}

/* Sections */
.section-title {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--text-primary);
	margin: 2rem 0 1rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -1rem;
	left: 50%;
	transform: translateX(-50%);
	width: 0rem;
	height: 0.25rem;
	background-color: var(--accent-color);
	border-radius: 0.25rem;
}

.section-title i {
	color: var(--accent-color);
}

.toggle-btn {
	margin-left: auto;
	background: none;
	border: none;
	color: var(--accent-color);
	cursor: pointer;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.toggle-btn:hover {
	text-decoration: underline;
}

.latest-update-section {
	margin-bottom: 3rem;
}

/* Loading and Error States */
.loading-spinner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}

.spinner {
	width: 40px;
	height: 40px;
	border: 4px solid var(--border-color);
	border-top: 4px solid var(--accent-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 1rem;
}

.error-message {
	background-color: var(--card-bg);
	padding: 2rem;
	border-radius: 0.75rem;
	border: 1px solid #F44336;
}

.empty-state {
	background-color: var(--card-bg);
	padding: 2rem;
	border-radius: 0.75rem;
	border: 1px solid var(--border-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
	.update-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.update-meta {
		width: 100%;
		justify-content: space-between;
	}
}

@media (max-width: 480px) {
	.changelog-intro h2 {
		font-size: 1.75rem;
	}

	.update-card {
		padding: 1.5rem;
	}

	.update-title {
		font-size: 1.3rem;
	}

	.section-title {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.toggle-btn {
		margin-left: 0;
	}
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}