/* ============================================
   iCollect Everything - Browse Pages Design System
   Shared by web_categories.php & web_category_items.php
   Matches Mac app aesthetic (MiddleView.swift)
   ============================================ */

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

/* --- Skip Link (Accessibility) --- */
.skip-link {
	position: absolute;
	top: -100%;
	left: 0;
	background: #2269c3;
	color: #fff;
	padding: 8px 16px;
	z-index: 10000;
	font-size: 14px;
	text-decoration: none;
}
.skip-link:focus {
	top: 0;
}

/* --- Breadcrumb Navigation --- */
.breadcrumb {
	max-width: 1200px;
	margin: 24px auto 0;
	padding: 0 20px;
	font-size: 13px;
	color: #8e8e93;
}
.breadcrumb a {
	color: #007BFF;
	text-decoration: none;
}
.breadcrumb a:hover {
	text-decoration: underline;
}
.breadcrumb-sep {
	color: #8e8e93;
	margin: 0 2px;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	background-color: #F2F2F7;
	margin: 0;
	padding: 0;
	color: #1c1c1e;
	-webkit-font-smoothing: antialiased;
}

a {
	text-decoration: none;
	color: #007BFF;
}
a:hover {
	text-decoration: underline;
	color: #0056b3;
}

/* --- Main Content Wrapper --- */
.page-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* --- Page Title --- */
h1.pagetitle {
	margin-top: 0;
}
.pagetitle {
	font-size: 24px;
	text-align: center;
	margin-bottom: 28px;
	font-weight: 700;
	color: #1c1c1e;
}
.pagetitle a {
	color: #007BFF;
}
.pagetitle a:hover {
	color: #0056b3;
}

/* --- Section Headers --- */
.section-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 16px;
	margin: 28px 0 12px;
	background: rgba(255,255,255,0.8);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 7px;
	font-size: 18px;
	font-weight: 600;
	color: #1c1c1e;
}

/* --- Category Container --- */
.category-container {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* --- Category Card --- */
.category {
	background: #fff;
	border-radius: 14px;
	padding: 16px 20px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
	transition: box-shadow 0.2s, transform 0.15s;
}
.category:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transform: translateY(-1px);
}
.category a {
	text-decoration: none;
	color: #007BFF;
	font-size: 15px;
	font-weight: 500;
}
.category a:hover {
	text-decoration: underline;
	color: #0056b3;
}

/* --- Items Container --- */
.item-container {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 900px;
	margin: 0 auto;
}

/* --- Individual Item Card --- */
.item {
	width: 100%;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
	background-color: #fff;
	padding: 14px 18px;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.2s, transform 0.15s;
}

.item a {
	text-decoration: none;
	color: #007BFF;
	font-weight: 500;
}
.item a:hover {
	text-decoration: underline;
	color: #0056b3;
}

.item:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transform: translateY(-1px);
}

/* --- Pagination --- */
.pagination {
	text-align: center;
	padding: 24px 0;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.pagination a {
	background: #007BFF;
	padding: 10px 20px;
	border-radius: 10px;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.2s;
}
.pagination a:hover {
	background: #0056b3;
	text-decoration: none;
}

/* --- Promotional CTA --- */
.promo-section {
	text-align: center;
	padding: 40px 24px;
	margin: 24px 0 0;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.promo-icon {
	width: 64px; height: 64px; border-radius: 14px; margin-bottom: 16px;
}
.promo-section h2 {
	font-size: 22px; font-weight: 700; color: #1c1c1e; margin: 0 0 8px;
}
.promo-section p {
	font-size: 15px; color: #636366; margin: 0 0 20px; max-width: 420px; margin-left: auto; margin-right: auto; line-height: 1.5;
}
.promo-badges {
	display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.promo-badge {
	display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 10px; background: #1c1c1e; color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; transition: background 0.2s, transform 0.1s;
}
.promo-badge:hover { background: #333; color: #fff; text-decoration: none; transform: translateY(-1px); }
.promo-badge.blue { background: #007BFF; }
.promo-badge.blue:hover { background: #0056b3; }

/* --- Footer (semantic) --- */
footer.footer {
	max-width: 1200px;
	margin: 0 auto;
}

/* --- Footer --- */
.footer {
	text-align: center;
	padding: 24px 0;
	font-size: 12px;
	color: #8e8e93;
}
.footer a {
	color: #8e8e93;
}
.footer a:hover {
	color: #007BFF;
}

/* --- Responsive --- */
@media (max-width: 768px) {
	.page-container {
		padding: 24px 12px;
	}
	.pagetitle {
		font-size: 20px;
		margin-bottom: 20px;
	}
	.section-header {
		font-size: 16px;
		margin: 20px 0 8px;
	}
	.category {
		padding: 14px 16px;
	}
	.item {
		padding: 12px 14px;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.page-container {
		max-width: 900px;
	}
}

/* ========== VIEW TRANSITIONS ========== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-fade-out 0.15s ease-out; }
::view-transition-new(root) { animation: vt-fade-in 0.15s ease-in; }
@keyframes vt-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } to { opacity: 1; } }
