/* Hub Page Styles */
/* Root landing page for Introduction to Web Technologies */

@import url('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 */
.hub-header {
	background: var(--color-navy);
	color: white;
	padding: var(--size-12) var(--size-4);
	text-align: center;
}

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

.hub-logo {
	max-width: 300px;
	height: auto;
	margin-bottom: var(--size-6);
}

.hub-title {
	font-size: var(--font-size-6);
	font-weight: var(--font-weight-bold);
	margin-bottom: var(--size-4);
	line-height: var(--line-height-tight);
}

.hub-subtitle {
	font-size: var(--font-size-2);
	opacity: 0.9;
	max-width: 600px;
	margin: 0 auto;
}

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

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

.hub-intro {
	text-align: center;
	margin-bottom: var(--size-12);
}

.hub-intro h2 {
	font-size: var(--font-size-4);
	font-weight: var(--font-weight-semibold);
	margin-bottom: var(--size-4);
	color: var(--color-gray-800);
}

.hub-intro p {
	font-size: var(--font-size-2);
	color: var(--color-text-muted);
	max-width: 700px;
	margin: 0 auto;
}

/* Section Cards Grid */
.section-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--size-6);
	list-style: none;
}

/* Section Card */
.section-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;
	display: flex;
	flex-direction: column;
}

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

.section-card a {
	text-decoration: none;
	color: inherit;
	padding: var(--size-6);
	display: flex;
	flex-direction: column;
	flex: 1;
	border-left: 4px solid var(--card-color, var(--color-gray-200));
}

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

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

.section-card .card-status {
	margin-top: var(--size-4);
	font-size: var(--font-size-0);
	font-weight: var(--font-weight-medium);
	color: var(--color-text-muted);
}

.section-card .card-status.active {
	color: var(--card-color);
}

/* Section-specific colors */
.section-card.html { --card-color: var(--color-html); }
.section-card.css { --card-color: var(--color-css); }
.section-card.http { --card-color: var(--color-http); }
.section-card.javascript { --card-color: var(--color-js); }
.section-card.media { --card-color: var(--color-media); }

/* Coming Soon Badge */
.coming-soon {
	display: inline-block;
	background: var(--color-gray-100);
	color: var(--color-text-muted);
	font-size: 0.75rem;
	font-weight: var(--font-weight-semibold);
	padding: 0.25rem 0.5rem;
	border-radius: var(--radius-2);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Footer */
.hub-footer {
	background: var(--color-navy);
	color: white;
	padding: var(--size-6) var(--size-4);
	text-align: center;
}

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

.hub-footer p {
	font-size: var(--font-size-0);
	opacity: 0.8;
}

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

	.hub-title {
		font-size: var(--font-size-5);
	}

	.hub-content {
		padding: var(--size-8) var(--size-4);
	}

	.section-grid {
		grid-template-columns: 1fr;
	}
}
