@import "tokens.css";

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

body {
	font-family: var(--font-sans);
	line-height: var(--line-height-relaxed);
	color: var(--color-text);
	background: var(--color-surface);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Header */
.section-header {
	background: var(--color-primary);
	color: white;
	padding: var(--size-8) var(--size-4);
}

.section-header .container {
	max-width: var(--max-width-content);
	margin: 0 auto;
}

.section-header .breadcrumb {
	font-size: var(--font-size-0);
	opacity: 0.9;
	margin-bottom: var(--size-2);
}

.section-header .breadcrumb a {
	color: white;
	text-decoration: none;
}

.section-header .breadcrumb a:hover {
	text-decoration: underline;
}

.section-header h1 {
	font-size: var(--font-size-6);
	font-weight: var(--font-weight-bold);
	margin-bottom: var(--size-2);
}

.section-header .subtitle {
	font-size: var(--font-size-2);
	opacity: 0.9;
}

/* Main Content */
.section-content {
	flex: 1;
	padding: var(--size-8) var(--size-4);
}

.section-content .container {
	max-width: var(--max-width-content);
	margin: 0 auto;
}

/* Content Areas Grid */
.content-areas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--size-6);
	list-style: none;
	margin-bottom: var(--size-10);
}

.content-card {
	background: var(--color-background);
	border-radius: var(--radius-4);
	box-shadow: var(--shadow-2);
	overflow: hidden;
	transition: transform 200ms ease, box-shadow 200ms ease;
}

.content-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-3);
}

.content-card a {
	display: block;
	padding: var(--size-6);
	text-decoration: none;
	color: inherit;
	border-left: 4px solid var(--color-primary);
}

.content-card h3 {
	font-size: var(--font-size-3);
	font-weight: var(--font-weight-bold);
	color: var(--color-primary);
	margin-bottom: var(--size-2);
}

.content-card p {
	color: var(--color-text-muted);
	font-size: var(--font-size-1);
}

/* Tutorial List */
.tutorial-list {
	background: var(--color-background);
	border-radius: var(--radius-4);
	box-shadow: var(--shadow-2);
	padding: var(--size-6);
	margin-bottom: var(--size-8);
}

.tutorial-list h2 {
	font-size: var(--font-size-4);
	font-weight: var(--font-weight-bold);
	margin-bottom: var(--size-6);
	padding-bottom: var(--size-3);
	border-bottom: 2px solid var(--color-border);
}

.tutorial-list ol {
	list-style: none;
	counter-reset: tutorial-counter;
}

.tutorial-list li {
	counter-increment: tutorial-counter;
	margin-bottom: var(--size-3);
}

.tutorial-list li a {
	display: flex;
	align-items: center;
	padding: var(--size-3) var(--size-4);
	text-decoration: none;
	color: var(--color-text);
	border-radius: var(--radius-3);
	transition: background 150ms ease;
}

.tutorial-list li a:hover {
	background: var(--color-gray-100);
}

.tutorial-list li a::before {
	content: counter(tutorial-counter);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	background: var(--color-primary);
	color: white;
	border-radius: 50%;
	font-size: var(--font-size-0);
	font-weight: var(--font-weight-bold);
	margin-right: var(--size-4);
	flex-shrink: 0;
}

.tutorial-list li a .title {
	font-weight: var(--font-weight-medium);
}

/* Footer */
.section-footer {
	background: var(--color-gray-100);
	border-top: 1px solid var(--color-border);
	padding: var(--size-6) var(--size-4);
	text-align: center;
}

.section-footer .container {
	max-width: var(--max-width-content);
	margin: 0 auto;
}

.section-footer p {
	color: var(--color-text-muted);
	font-size: var(--font-size-0);
}

.section-footer a {
	color: var(--color-primary);
	text-decoration: none;
}

.section-footer a:hover {
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
	.section-header {
		padding: var(--size-6) var(--size-4);
	}

	.section-header h1 {
		font-size: var(--font-size-5);
	}

	.content-areas {
		grid-template-columns: 1fr;
	}
}
