/* ==========================================================================
   Campus — Shared Frontend Styles
   Provides the page shell: header, navigation, content container, footer,
   and shared component styles (buttons, badges, pagination, cards).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset / Base
   -------------------------------------------------------------------------- */

.campus-frontend {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
		'Helvetica Neue', Arial, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #1e293b;
	background: #f1f5f9;
	-webkit-font-smoothing: antialiased;
}

.campus-frontend *,
.campus-frontend *::before,
.campus-frontend *::after {
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.campus-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.campus-header-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	height: 60px;
	gap: 24px;
}

.campus-header-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #0f172a;
	flex-shrink: 0;
	border-radius: 8px;
	padding: 4px 6px;
	margin: -4px -6px;
	transition: background 0.15s, color 0.15s;
}

.campus-header-brand.is-active {
	background: #eff6ff;
	color: #1d4ed8;
}

.campus-header-logo {
	height: 32px;
	width: auto;
	display: block;
}

.campus-header-company {
	font-weight: 600;
	font-size: 17px;
	letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.campus-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 1;
}

.campus-nav-link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 8px;
	text-decoration: none;
	color: #475569;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}

.campus-nav-link:hover {
	background: #f1f5f9;
	color: #1e293b;
}

.campus-nav-link.is-active {
	background: #eff6ff;
	color: #1d4ed8;
}

.campus-nav-link .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 18px;
}

.campus-nav-toggle {
	display: none;
	background: none;
	border: none;
	padding: 6px;
	cursor: pointer;
	color: #64748b;
}

.campus-nav-toggle .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
}

/* --------------------------------------------------------------------------
   Header — User area
   -------------------------------------------------------------------------- */

.campus-header-user {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	font-size: 14px;
}

.campus-header-avatar {
	border-radius: 50%;
	width: 32px;
	height: 32px;
}

.campus-header-username {
	font-weight: 500;
	color: #334155;
}

.campus-header-admin-link,
.campus-header-logout {
	color: #64748b;
	text-decoration: none;
	font-size: 13px;
	padding: 4px 8px;
	border-radius: 6px;
	transition: background 0.15s, color 0.15s;
}

.campus-header-admin-link:hover,
.campus-header-logout:hover {
	background: #f1f5f9;
	color: #1e293b;
}

/* --------------------------------------------------------------------------
   Main content
   -------------------------------------------------------------------------- */

.campus-content {
	max-width: 1280px;
	margin: 0 auto;
	padding: 32px 24px;
	min-height: calc(100vh - 60px - 56px);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.campus-footer {
	background: #ffffff;
	border-top: 1px solid #e2e8f0;
}

.campus-footer-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	color: #94a3b8;
}

.campus-footer-powered {
	font-size: 12px;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.campus-frontend h1 {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 8px;
	color: #0f172a;
}

.campus-frontend h2 {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 8px;
	color: #0f172a;
}

.campus-frontend h3 {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 4px;
	color: #1e293b;
}

/* --------------------------------------------------------------------------
   Shared components — Buttons
   -------------------------------------------------------------------------- */

.campus-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #ffffff;
	color: #334155;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	line-height: 1.4;
}

.campus-btn:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
	color: #1e293b;
}

.campus-btn-primary {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #ffffff;
}

.campus-btn-primary:hover {
	background: #1e40af;
	border-color: #1e40af;
	color: #ffffff;
}

/* --------------------------------------------------------------------------
   Shared components — Badges
   -------------------------------------------------------------------------- */

.campus-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	background: #f1f5f9;
	color: #475569;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Shared components — Pagination
   -------------------------------------------------------------------------- */

.campus-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin-top: 32px;
	flex-wrap: wrap;
}

.campus-pagination a,
.campus-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	color: #475569;
	background: #ffffff;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.campus-pagination a:hover {
	background: #f1f5f9;
	border-color: #cbd5e1;
	color: #1e293b;
}

.campus-pagination .current {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #ffffff;
}

.campus-pagination .dots {
	border-color: transparent;
	background: transparent;
	color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Shared components — Cards
   -------------------------------------------------------------------------- */

.campus-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
}

/* --------------------------------------------------------------------------
   Hub placeholder
   -------------------------------------------------------------------------- */

.campus-hub-placeholder {
	text-align: center;
	padding: 60px 24px;
}

.campus-hub-links {
	display: flex;
	gap: 16px;
	justify-content: center;
	margin-top: 24px;
	flex-wrap: wrap;
}

.campus-hub-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 24px 32px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	text-decoration: none;
	color: #334155;
	font-weight: 500;
	transition: box-shadow 0.15s, border-color 0.15s;
}

.campus-hub-card:hover {
	border-color: #93c5fd;
	box-shadow: 0 4px 12px rgba(29, 78, 216, 0.1);
}

.campus-hub-card .dashicons {
	font-size: 32px;
	width: 32px;
	height: 32px;
	color: #1d4ed8;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
	.campus-header-inner {
		padding: 0 16px;
		gap: 12px;
	}

	.campus-nav-toggle {
		display: block;
		margin-left: auto;
	}

	.campus-nav {
		display: none;
		position: absolute;
		top: 60px;
		left: 0;
		right: 0;
		background: #ffffff;
		border-bottom: 1px solid #e2e8f0;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
		flex-direction: column;
		padding: 8px;
		gap: 2px;
	}

	.campus-nav.is-open {
		display: flex;
	}

	.campus-nav-link {
		padding: 10px 16px;
		border-radius: 8px;
		width: 100%;
	}

	.campus-header-user {
		display: none;
	}

	.campus-content {
		padding: 20px 16px;
	}

	.campus-footer-inner {
		flex-direction: column;
		gap: 4px;
		text-align: center;
	}
}
