:root {
	--bg-primary: #0a0e27;
	--bg-secondary: #151932;
	--bg-card: #1a1f3a;
	--accent-primary: #00f2fe;
	--accent-secondary: #4facfe;
	--text-primary: #e1e8f0;
	--text-secondary: #8892a6;
	--text-muted: #5a6478;
	--border-color: #2d3748;
	--success: #10b981;
	--error: #ef4444;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.5;
	min-height: 100vh;
	padding: 1rem;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at 20% 50%, rgba(0, 201, 255, 0.06) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(0, 242, 254, 0.06) 0%, transparent 50%);
	pointer-events: none;
	z-index: 0;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

header {
	text-align: center;
	margin-bottom: 2rem;
	padding: 1.5rem 0;
}

h1 {
	font-size: clamp(2rem, 5vw, 2.5rem);
	font-weight: 700;
	background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 0.5rem;
}

.subtitle {
	font-size: 0.95rem;
	color: var(--text-secondary);
}

.card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 0.75rem;
	margin-bottom: 1rem;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.card.expanded {
	border-color: rgba(0, 242, 254, 0.3);
}

.section-header {
	padding: 1rem 1.25rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	user-select: none;
	transition: background 0.2s ease;
}

.section-header:hover {
	background: rgba(0, 242, 254, 0.05);
}

.section-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--accent-primary);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.endpoint-count {
	font-size: 0.75rem;
	color: var(--text-muted);
	font-weight: 400;
	margin-left: 0.5rem;
}

.section-toggle {
	font-size: 1.2rem;
	color: var(--accent-primary);
	transition: transform 0.3s ease;
}

.card.expanded .section-toggle {
	transform: rotate(180deg);
}

.section-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.section-content-inner {
	padding: 0 1.25rem 1.25rem;
}

.card.expanded .section-content {
	max-height: 3000px;
}

.endpoint-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 0.75rem;
}

.endpoint {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	padding: 0.875rem;
	transition: all 0.2s ease;
	cursor: pointer;
}

.endpoint:hover {
	background: rgba(0, 242, 254, 0.05);
	border-color: var(--accent-primary);
	transform: translateY(-2px);
}

.endpoint-method {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	font-size: 0.7rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.method-get {
	background: rgba(16, 185, 129, 0.15);
	color: var(--success);
}
.method-post {
	background: rgba(59, 130, 246, 0.15);
	color: #3b82f6;
}
.method-put {
	background: rgba(245, 158, 11, 0.15);
	color: #f59e0b;
}
.method-delete {
	background: rgba(239, 68, 68, 0.15);
	color: var(--error);
}
.method-patch {
	background: rgba(168, 85, 247, 0.15);
	color: #a855f7;
}
.method-any {
	background: rgba(0, 242, 254, 0.15);
	color: var(--accent-primary);
}

.endpoint-path {
	font-family: 'JetBrains Mono', 'Courier New', monospace;
	font-size: 0.8rem;
	color: var(--text-primary);
	margin-bottom: 0.375rem;
	font-weight: 500;
}

.endpoint-desc {
	font-size: 0.75rem;
	color: var(--text-muted);
	line-height: 1.4;
}

.tester {
	background: var(--bg-secondary);
	border-radius: 0.75rem;
	padding: 1.25rem;
	border: 1px solid var(--border-color);
}

.input-group {
	margin-bottom: 1rem;
}

label {
	display: block;
	margin-bottom: 0.375rem;
	font-weight: 600;
	color: var(--text-secondary);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

input,
select,
textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-family: inherit;
	background: var(--bg-primary);
	color: var(--text-primary);
	transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--accent-primary);
	box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.1);
}

textarea {
	font-family: 'JetBrains Mono', 'Courier New', monospace;
	resize: vertical;
	min-height: 80px;
	line-height: 1.5;
}

.btn {
	background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
	color: var(--bg-primary);
	border: none;
	padding: 0.875rem 1.5rem;
	border-radius: 0.5rem;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
	width: 100%;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(0, 242, 254, 0.3);
}

.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.curl-box {
	margin-top: 1rem;
	background: var(--bg-primary);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	overflow: hidden;
}

.curl-header {
	background: rgba(0, 242, 254, 0.1);
	padding: 0.625rem 0.875rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--border-color);
}

.curl-title {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--accent-primary);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.copy-btn {
	background: transparent;
	border: 1px solid var(--accent-primary);
	color: var(--accent-primary);
	padding: 0.3rem 0.7rem;
	border-radius: 0.375rem;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	text-transform: uppercase;
}

.copy-btn:hover {
	background: var(--accent-primary);
	color: var(--bg-primary);
}

.copy-btn.copied {
	background: var(--success);
	border-color: var(--success);
	color: white;
}

.curl-content {
	padding: 0.875rem;
	font-family: 'JetBrains Mono', 'Courier New', monospace;
	font-size: 0.8rem;
	color: var(--text-primary);
	white-space: pre-wrap;
	word-wrap: break-word;
	line-height: 1.5;
	max-height: 200px;
	overflow-y: auto;
}

.curl-content::-webkit-scrollbar {
	width: 6px;
}

.curl-content::-webkit-scrollbar-track {
	background: var(--bg-secondary);
}

.curl-content::-webkit-scrollbar-thumb {
	background: var(--accent-primary);
	border-radius: 3px;
}

.response {
	margin-top: 1rem;
	padding: 1rem;
	background: var(--bg-primary);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	font-family: 'JetBrains Mono', 'Courier New', monospace;
	font-size: 0.8rem;
	white-space: pre-wrap;
	word-wrap: break-word;
	max-height: 400px;
	overflow-y: auto;
	line-height: 1.5;
}

.response::-webkit-scrollbar {
	width: 6px;
}

.response::-webkit-scrollbar-track {
	background: var(--bg-secondary);
}

.response::-webkit-scrollbar-thumb {
	background: var(--accent-primary);
	border-radius: 3px;
}

.response-status {
	color: var(--accent-primary);
	margin-bottom: 0.5rem;
	font-weight: 600;
	padding-bottom: 0.375rem;
	border-bottom: 1px solid var(--border-color);
}

.response-body {
	color: var(--text-primary);
}

.response-error {
	color: var(--error);
}

/* Footer Styles */
.footer {
	text-align: center;
	color: var(--text-muted);
	margin-top: 3rem;
	padding: 2rem 0 1rem;
	border-top: 1px solid var(--border-color);
}

.footer-content {
	max-width: 900px;
	margin: 0 auto;
}

.footer-main {
	font-size: 0.85rem;
	margin-bottom: 1.5rem;
}

.footer a {
	color: var(--accent-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer a:hover {
	color: var(--accent-secondary);
	text-decoration: underline;
}

/* Disclaimer Styles */
.footer-disclaimer {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 0.75rem;
	padding: 1.25rem;
	margin-top: 1.5rem;
	text-align: left;
}

.disclaimer-title {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--warning);
	margin-bottom: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.disclaimer-text {
	font-size: 0.8rem;
	line-height: 1.6;
	color: var(--text-secondary);
	margin-bottom: 1rem;
}

.footer-link {
	color: var(--accent-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-link:hover {
	color: var(--accent-secondary);
	text-decoration: underline;
}

@media (max-width: 768px) {
	.endpoint-grid {
		grid-template-columns: 1fr;
	}

	.footer-disclaimer {
		padding: 1rem;
	}

	.disclaimer-title {
		font-size: 0.85rem;
	}

	.disclaimer-text {
		font-size: 0.75rem;
	}
}
