/* font color variables */
:root {
	--font-color: #34495e;
}

.main-container {
	max-width: 1024px;
	margin: 0 auto;
	font-family: "Open Sans", sans-serif;
	color: var(--font-color);
	gap: 20px;
	padding: 0 15px;
}
.repo-changelog {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.release {
	margin-bottom: 30px;
}
h1 {
	font-size: 24px;
	margin-bottom: 20px;
}
.release-title {
	font-size: 20px;
	margin-bottom: 10px;
}
.changelog-item {
	display: flex;
	flex-direction: column;
	align-items: left;
	gap: 2px;
	font-size: 14px;
	color: var(--font-color);
	margin-bottom: 20px;
}
.badge-container {
	width: 110px;
}
.message-container {
	flex: 1;
}

.badge {
	padding: 0px 4px 4px 4px;
	display: inline-block;
	border-radius: 12px;
	font-size: 10px;
	font-weight: bold;
	margin: 0;
	text-align: center;
	text-transform: uppercase;
	width: 110px;
}
.new .badge {
	background-color: #e6f7e6;
	color: #28a745;
}
.improvement .badge {
	background-color: #e6f1ff;
	color: #0366d6;
}
.fix .badge {
	background-color: #ffebe6;
	color: #d73a49;
}
.changelog-accordion {
	width: 100%;
	margin-bottom: 20px;
	border: 1px solid #ccc;
	border-radius: 25px;
	max-height: 600px; /* Start expanded */
	overflow: hidden;
	transition: max-height 0.3s ease-out;
}
.changelog-accordion.collapsed {
	max-height: 60px; /* Height when collapsed */
}
.changelog-accordion-title {
	padding: 15px 25px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #ccc;
}
.changelog-accordion-title h3 {
	font-size: 18px;
	margin: 0;
}
.arrow {
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid #000000;
	transition: transform 0.3s ease-out;
}
.arrow-container {
	display: flex;
	justify-content: right;
	align-items: right;
	padding: 10px;
}
.changelog-accordion.collapsed .arrow {
	transform: rotate(180deg);
}
.changelog-accordion-content {
	padding: 15px 25px;
	overflow-y: auto;
}
.changelog-accordion-content ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}
.changelog-accordion-content li {
	margin-bottom: 5px;
	font-size: 14px;
}
.changelog-accordion-content a {
	text-decoration: none;
	color: var(--font-color);
}
.changelog-accordion-content a:hover {
	text-decoration: underline;
}

.changelog-accordion-title-text {
	margin: 0;
	padding: 0;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 14px;
}

@media (min-width: 768px) {
	.changelog-accordion {
		width: 25%;
	}

	.changelogs-container {
		width: 65%;
	}

	.changelog-item {
		flex-direction: row;
		align-items: center;
		gap: 10px;
	}

	.badge-container {
		width: 110px;
	}

	.badge {
		padding: 0px 4px 4px 4px;
	}
	.repo-changelog {
		flex-direction: row-reverse;
	}
	.repo-selector {
		justify-content: center;
	}
}

.repo-selector {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	justify-content: right;
}

.repo-button {
	position: relative;
	display: inline-block;
	cursor: pointer;
}

.repo-button input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.repo-button span {
	display: inline-block;
	padding: 10px 20px;
	background-color: #f0f0f0;
	border: 1px solid #ccc;
	border-radius: 4px;
	transition: all 0.3s ease;
	font-size: 14px;
	cursor: pointer;
}

.repo-button input[type="radio"]:checked + span {
	background-color: #007bff;
	color: white;
	border-color: #007bff;
}

.repo-button:hover span {
	background-color: #e0e0e0;
}

.repo-button input[type="radio"]:checked:hover + span {
	background-color: #0056b3;
}

.repo-changelog {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.repo-changelog.hidden {
	opacity: 0;
	visibility: hidden;
	height: 0;
	overflow: hidden;
}
