@font-face {
	font-family: "Torus";
	src: url("https://osu-profile-stats.vercel.app/assets/fonts/Torus-Regular.otf");
}

:root {
	--bg-color: #35272e;
	--text-color: #ffffff;
	--accent-color: #ff66aa;
	--accent-hover-color: #fff0f6;
	--card-bg-color: #44444422;
	--border-color: #ffffff33;
	--content-bg: #2b2127;
}

* {
	font-family: "Torus", Arial, sans-serif;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	height: 100%;
	line-height: 1.6;
	background-color: var(--bg-color);
	color: var(--text-color);
	display: flex;
	flex-direction: column;
}

header.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 2rem;
	background-color: var(--bg-color);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	top: 0;
	z-index: 1001;
}

header.navbar .logo-link {
	text-decoration: none;
	color: var(--text-color);
}

header.navbar .logo {
	font-size: 1.5rem;
	font-weight: bold;
}

header.navbar nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 1rem;
}

header.navbar nav ul li a {
	text-decoration: none;
	color: var(--text-color);
	transition: color 0.3s, background-color 0.3s;
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1rem;
	border-radius: 8px;
}

header.navbar nav ul li a i {
	margin-right: 0.5em;
}

header.navbar nav ul li a:not(.nav-button):hover {
	background-color: var(--card-bg-color);
	color: var(--accent-hover-color);
}
header.navbar nav ul li a.active {
	color: var(--accent-color);
	background-color: var(--card-bg-color);
}

.nav-button {
	background-color: var(--accent-color);
	color: var(--text-color);
}

.nav-button:hover {
	background-color: var(--accent-hover-color);
	color: var(--bg-color) !important;
}

.nav-toggle {
	display: none;
	cursor: pointer;
	border: none;
	background: transparent;
	width: 40px;
	height: 40px;
	z-index: 1001;
}

.hamburger {
	display: block;
	position: relative;
	width: 24px;
	height: 2px;
	background: var(--text-color);
	transition: all 0.2s ease-in-out;
}
.hamburger::before,
.hamburger::after {
	content: "";
	position: absolute;
	height: 2px;
	background: var(--text-color);
	width: 100%;
	left: 0;
	transition: all 0.2s ease-in-out;
}
.hamburger::before {
	top: -8px;
}
.hamburger::after {
	bottom: -8px;
}

.api-container {
	display: flex;
	max-width: 1400px;
	margin: 0 auto;
	padding: 2rem;
	gap: 2rem;
	flex: 1;
}

.api-nav {
	width: 250px;
	flex-shrink: 0;
	position: sticky;
	top: 100px;
	height: calc(100vh - 120px);
	overflow-y: auto;
}

.api-nav h3 {
	font-size: 1.2rem;
	color: var(--accent-color);
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--border-color);
}

.api-nav ul {
	list-style: none;
}

.api-nav ul li a {
	display: block;
	padding: 0.5rem 1rem;
	color: #ccc;
	text-decoration: none;
	border-radius: 5px;
	transition: all 0.2s ease;
	border-left: 3px solid transparent;
}

.api-nav ul li a:hover {
	background-color: var(--card-bg-color);
	color: #fff;
}

.api-nav ul li a.active {
	color: var(--accent-color);
	font-weight: bold;
	border-left-color: var(--accent-color);
}

.api-content {
	flex: 1;
	min-width: 0;
}

.api-content section {
	padding: 2rem;
	margin-bottom: 2rem;
	background-color: var(--content-bg);
	border: 1px solid var(--border-color);
	border-radius: 15px;
}

.api-content h1 {
	font-size: 2.5rem;
	color: var(--accent-color);
	margin-bottom: 1rem;
}
.api-content h2 {
	font-size: 2rem;
	color: #fff;
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--border-color);
}
.api-content h3 {
	font-size: 1.4rem;
	color: #eee;
	margin-top: 2rem;
	margin-bottom: 1rem;
}
.api-content p {
	color: #ddd;
	line-height: 1.7;
	margin-bottom: 1rem;
}

.fade-in {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.endpoint-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	background-color: #221a20;
	padding: 0.8rem 1.2rem;
	border-radius: 8px;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}
.method {
	font-weight: bold;
	padding: 0.2rem 0.6rem;
	border-radius: 5px;
	font-size: 0.9rem;
}
.method.get {
	background-color: #3a7a44;
	color: #fff;
}
.path {
	font-family: "Courier New", Courier, monospace;
	font-size: 1.1rem;
	color: #eee;
	word-break: break-all;
}

code {
	background-color: #221a20;
	padding: 0.2em 0.4em;
	border-radius: 3px;
	font-family: "Courier New", Courier, monospace;
	font-size: 0.9em;
}
pre {
	background-color: #221a20;
	padding: 1rem;
	border-radius: 8px;
	font-size: 0.9rem;
}
pre code {
	background-color: transparent;
	padding: 0;
	border-radius: 0;
	white-space: pre-wrap;
	word-break: break-word;
}

.table-container {
	margin-top: 1.5rem;
}
table {
	width: 100%;
	border-collapse: collapse;
}
th,
td {
	padding: 0.8rem 1rem;
	text-align: left;
	border-bottom: 1px solid var(--border-color);
}
th {
	color: var(--accent-color);
	font-size: 1rem;
}
td code {
	color: var(--accent-hover-color);
}
.required {
	color: #ff8c8c;
	font-size: 0.8em;
	margin-left: 0.5em;
	font-weight: bold;
	vertical-align: middle;
}

.response-preview {
	margin-top: 1rem;
	padding: 1rem;
	background-color: #221a20;
	border-radius: 8px;
}
.response-preview img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

.notice {
	background-color: rgba(255, 102, 170, 0.1);
	border-left: 4px solid var(--accent-color);
	padding: 1rem;
	margin: 1.5rem 0;
	border-radius: 0 8px 8px 0;
}
.notice code {
	background-color: rgba(255, 102, 170, 0.2);
}

footer {
	text-align: center;
	padding: 1.5rem 2rem;
	background-color: #2b2127;
	color: white;
	font-size: 0.9rem;
	border-top: 1px solid var(--border-color);
}
.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	max-width: 1200px;
	margin: 0 auto;
	gap: 1rem;
}
.footer-content p {
	margin: 0;
	font-size: 0.9rem;
	color: #ccc;
}
.social-links {
	display: flex;
	gap: 1rem;
}
.social-links a {
	color: white;
	text-decoration: none;
	font-size: 1.5rem;
	transition: color 0.3s;
}
.social-links a:hover {
	color: var(--accent-color);
}
