/* Main additional styles for Blub */

/* Mobile Navigation */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: inherit;
}

.hamburger-icon {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 22px;
}

.hamburger-icon span {
	display: block;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
	.site-header .wrap {
		flex-wrap: nowrap;
	}

	.site-branding {
		flex: 1;
		min-width: 0;
	}

	.site-branding img {
		max-width: 100%;
		height: auto;
	}

	.menu-toggle {
		display: block;
		flex-shrink: 0;
	}

	#site-navigation ul {
		display: none !important;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--blub-bg);
		border-bottom: 1px solid var(--blub-border);
		padding: 0 1rem;
		flex-direction: column;
		gap: 0;
		z-index: 999;
	}

	#site-navigation.toggled ul {
		display: flex !important;
	}

	#site-navigation.toggled li {
		padding: 0.5rem 0;
		border-bottom: 1px solid var(--blub-border);
	}

	.site-header {
		position: relative;
	}
}

/* Breadcrumbs */
.breadcrumbs ol {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	font-size: 0.875rem;
}

.breadcrumbs li:not(:last-child)::after {
	content: '/';
	margin-left: 0.5rem;
	color: var(--blub-secondary);
}

/* Pagination */
.nav-links {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
}

.page-numbers {
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--blub-border);
	border-radius: 4px;
	color: var(--blub-text);
}

.page-numbers.current {
	background: var(--blub-primary);
	color: #fff;
	border-color: var(--blub-primary);
}

/* Widgets */
.widget {
	margin-bottom: 1.5rem;
}

.widget-title {
	font-size: 1.1rem;
	margin-bottom: 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--blub-primary);
}

/* Accessibility */
.skip-link {
	position: absolute;
	left: -9999px;
}
