/* youtube-music-cli docs - Modern Material Theme */

:root {
	/* Light mode colors */
	--bg-primary: #fafafa;
	--bg-secondary: #ffffff;
	--bg-code: #f5f5f5;
	--text-primary: #212121;
	--text-secondary: #757575;
	--accent: #6200ea;
	--accent-light: #7c4dff;
	--border: #e0e0e0;
	--shadow: rgba(0, 0, 0, 0.1);
	--success: #00c853;
	--warning: #ffab00;
	--error: #ff1744;
}

[data-theme='dark'] {
	--bg-primary: #121212;
	--bg-secondary: #1e1e1e;
	--bg-code: #2d2d2d;
	--text-primary: #e0e0e0;
	--text-secondary: #9e9e9e;
	--accent: #bb86fc;
	--accent-light: #d4a5ff;
	--border: #333333;
	--shadow: rgba(0, 0, 0, 0.3);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family:
		'Inter',
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		Roboto,
		sans-serif;
	background: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.6;
	margin: 0;
	padding: 0;
	transition:
		background-color 0.3s,
		color 0.3s;
}

/* Sticky Navbar */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: var(--bg-secondary);
	border-bottom: 1px solid var(--border);
	box-shadow: 0 2px 8px var(--shadow);
	z-index: 1000;
	padding: 0 1rem;
}

.navbar-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.navbar-brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--accent);
	text-decoration: none;
}

.navbar-brand:hover {
	color: var(--accent-light);
}

.navbar-nav {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.navbar-nav a {
	color: var(--text-secondary);
	text-decoration: none;
	font-weight: 500;
	padding: 0.5rem 0;
	border-bottom: 2px solid transparent;
	transition:
		color 0.2s,
		border-color 0.2s;
}

.navbar-nav a:hover,
.navbar-nav a.active {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.theme-toggle {
	background: var(--bg-code);
	border: 1px solid var(--border);
	border-radius: 24px;
	padding: 0.5rem 1rem;
	cursor: pointer;
	color: var(--text-primary);
	font-size: 1rem;
	transition: background 0.2s;
}

.theme-toggle:hover {
	background: var(--border);
}

/* Mobile menu */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--text-primary);
	font-size: 1.5rem;
	cursor: pointer;
}

/* Main content */
main {
	max-width: 900px;
	margin: 0 auto;
	padding: 96px 1.5rem 3rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--text-primary);
	margin-top: 2rem;
	margin-bottom: 1rem;
	font-weight: 600;
}

h1 {
	font-size: 2.5rem;
}
h2 {
	font-size: 1.75rem;
	border-bottom: 2px solid var(--accent);
	padding-bottom: 0.5rem;
}
h3 {
	font-size: 1.25rem;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Code blocks */
code {
	font-family: 'JetBrains Mono', 'Fira Code', monospace;
	background: var(--bg-code);
	padding: 0.2rem 0.4rem;
	border-radius: 4px;
	font-size: 0.9em;
}

pre {
	background: var(--bg-code);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 1rem;
	overflow-x: auto;
}

pre code {
	background: none;
	padding: 0;
}

/* Tables */
table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
}

th,
td {
	padding: 0.75rem 1rem;
	text-align: left;
	border-bottom: 1px solid var(--border);
}

th {
	background: var(--bg-code);
	font-weight: 600;
}

tr:hover {
	background: var(--bg-code);
}

/* Cards */
.card {
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 1.5rem;
	margin: 1rem 0;
	box-shadow: 0 2px 8px var(--shadow);
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem;
	margin: 2rem 0;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s;
}

.btn-primary {
	background: var(--accent);
	color: white;
}

.btn-primary:hover {
	background: var(--accent-light);
	text-decoration: none;
}

.btn-secondary {
	background: var(--bg-code);
	color: var(--text-primary);
	border: 1px solid var(--border);
}

.btn-secondary:hover {
	background: var(--border);
	text-decoration: none;
}

/* Hero section */
.hero {
	text-align: center;
	padding: 3rem 0;
	margin-bottom: 2rem;
}

.hero h1 {
	font-size: 3rem;
	margin-bottom: 0.5rem;
}

.hero p {
	font-size: 1.25rem;
	color: var(--text-secondary);
	margin-bottom: 2rem;
}

.hero-buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* Feature list */
.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	margin: 2rem 0;
}

.feature {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.feature-icon {
	font-size: 1.5rem;
}

.feature h3 {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
}

.feature p {
	margin: 0;
	color: var(--text-secondary);
	font-size: 0.95rem;
}

/* Footer */
footer {
	border-top: 1px solid var(--border);
	padding: 2rem;
	text-align: center;
	color: var(--text-secondary);
	margin-top: 4rem;
}

footer a {
	color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
	.navbar-nav {
		display: none;
		position: absolute;
		top: 64px;
		left: 0;
		right: 0;
		background: var(--bg-secondary);
		flex-direction: column;
		padding: 1rem;
		border-bottom: 1px solid var(--border);
		gap: 0;
	}

	.navbar-nav.open {
		display: flex;
	}

	.navbar-nav a {
		padding: 0.75rem 0;
		border-bottom: none;
	}

	.menu-toggle {
		display: block;
	}

	main {
		padding-top: 80px;
	}

	.hero h1 {
		font-size: 2rem;
	}

	h1 {
		font-size: 1.75rem;
	}
	h2 {
		font-size: 1.5rem;
	}
}

/* Keyboard shortcut styling */
kbd {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.85em;
	background: var(--bg-code);
	border: 1px solid var(--border);
	border-radius: 4px;
	box-shadow: 0 1px 2px var(--shadow);
}

/* Alerts/Notes */
.note {
	padding: 1rem;
	border-left: 4px solid var(--accent);
	background: var(--bg-code);
	border-radius: 0 8px 8px 0;
	margin: 1rem 0;
}

.note.warning {
	border-left-color: var(--warning);
}

.note.error {
	border-left-color: var(--error);
}

/* Smooth scrolling for anchor links */
:target {
	scroll-margin-top: 80px;
}
