/* ===================================
   GUIDE HUB PAGE STYLES
   Mobile-first responsive design
   =================================== */

.hub-page {
	min-height: 100vh;
	background: #fafafa;
}

/* Stats line under header */
.hub-stats-inline {
	font-size: 0.9rem;
	color: #6b7280;
	margin: 8px 0 0 0;
}

/* Container */
.hub-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 32px 16px;
}

/* Sections */
.hub-section {
	margin-bottom: 48px;
}

.hub-section-header {
	display: flex;
	align-items: flex-start;
	margin-bottom: 20px;
	flex-direction: column;
}

.hub-section-icon {
	font-size: 2rem;
	line-height: 1;
}

.hub-section-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #111827;
	margin: 0 0 4px 0;
}

.hub-section-subtitle {
	font-size: 0.95rem;
	color: #6b7280;
	margin: 0;
}

/* Card Grid - Mobile First */
.hub-cards {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
}

/* Article Card */
.hub-card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: all 0.2s ease;
	border: 1px solid #e5e7eb;
	display: flex;
	flex-direction: column;
}

.hub-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
	border-color: #d1d5db;
}

.hub-card-image {
	width: 100%;
	height: 160px;
	overflow: hidden;
	background: #f3f4f6;
}

.hub-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.hub-card:hover .hub-card-image img {
	transform: scale(1.05);
}

.hub-card-image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.hub-card-placeholder-icon {
	font-size: 2.5rem;
	opacity: 0.4;
}

.hub-card-content {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.hub-card-meta {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.hub-card-difficulty {
	font-size: 0.7rem;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 12px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.hub-card-time {
	font-size: 0.75rem;
	color: #9ca3af;
}

.hub-card-title {
	font-size: 1rem;
	font-weight: 600;
	color: #111827;
	margin: 0;
	line-height: 1.4;
}

.hub-card-topics {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.hub-card-topic {
	font-size: 0.7rem;
	color: #6b7280;
	background: #f3f4f6;
	padding: 3px 6px;
	border-radius: 4px;
}

/* Section Footer & Expand Button */
.hub-section-footer {
	margin-top: 20px;
	text-align: center;
}

.hub-expand-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	color: #374151;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.hub-expand-btn:hover {
	background: #e5e7eb;
	border-color: #d1d5db;
}

.hub-expand-icon {
	font-size: 1.1rem;
	font-weight: 700;
	color: #6b7280;
	width: 18px;
	text-align: center;
}

/* Hidden cards (collapsed state) */
.hub-cards--hidden {
	display: none;
}

/* Header offset */
.header + .hub-page {
	margin-top: var(--header-offset, 126px);
}

/* ===================================
   TABLET BREAKPOINT (640px+)
   =================================== */
@media (min-width: 640px) {
	.hub-container {
		padding: 40px 24px;
	}

	.hub-cards {
		gap: 20px;
	}

	.hub-cards--col-2,
	.hub-cards--col-3,
	.hub-cards--col-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.hub-card-image {
		height: 180px;
	}

	.hub-card-content {
		padding: 20px;
	}

	.hub-card-title {
		font-size: 1.05rem;
	}
}

/* ===================================
   DESKTOP BREAKPOINT (1024px+)
   =================================== */
@media (min-width: 1024px) {
	.hub-container {
		padding: 48px 40px;
	}

	.hub-section {
		margin-bottom: 56px;
	}

	.hub-section-title {
		font-size: 1.75rem;
	}

	.hub-cards {
		gap: 24px;
	}

	.hub-cards--col-2 {
		grid-template-columns: repeat(2, 1fr);
	}

	.hub-cards--col-3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.hub-cards--col-4 {
		grid-template-columns: repeat(4, 1fr);
	}

	/* 2 columns = taller images */
	.hub-cards--col-2 .hub-card-image {
		height: 300px;
	}

	/* 3+ columns = shorter images */
	.hub-cards--col-3 .hub-card-image,
	.hub-cards--col-4 .hub-card-image {
		height: 200px;
	}

	.hub-card--large .hub-card-title {
		font-size: 1.2rem;
	}
}
