/**
 * Header Styles
 * 
 * Responsive header styles for the custom theme
 */

/* General header styles */
.site-header {
	position: relative;
	width: 100%;
	background-color: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	z-index: 1000;
}

/* Top bar styles */
.top-bar {
	background-color: #9F0000; /* Darker red as secondary color */
	color: #fff;
	font-size: 0.85rem;
	padding: 0.5rem 0;
}

.top-bar .container {
	max-width: 2000px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.top-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.secondary-menu {
	display: none; /* Hidden on mobile by default */
	list-style: none;
	margin: 0;
	padding: 0;
}

.secondary-menu li {
	display: inline-block;
	margin-right: 1.5rem;
}

.secondary-menu a {
	color: #fff;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.secondary-menu a:hover,
.secondary-menu a:focus {
	opacity: 0.8;
}

.social-icons {
	display: flex;
	gap: 1rem;
}

.social-icon {
	color: #fff;
	transition: opacity 0.3s ease;
}

.social-icon:hover,
.social-icon:focus {
	opacity: 0.8;
}

/* Body styles when menu is open */
body.menu-open {
	overflow: hidden;
	position: fixed;
	width: 100%;
	height: 100%;
}

.header-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem;
	max-width: 2000px;
	margin: 0 auto;
}

/* Site branding */
.site-branding {
	display: flex;
	align-items: center;
}

.site-title {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.2;
}

.site-title a {
	text-decoration: none;
	display: flex;
	flex-direction: column;
}

.title-part-1 {
	color: #333;
	font-weight: 700;
}

.title-part-2 {
	color: #D00000; /* Updated primary color (red) */
	font-weight: 400;
}

/* Desktop Navigation */
.desktop-nav {
	display: none; /* Hidden on mobile by default */
}

.desktop-nav .nav-container {
	flex-grow: 1;
	display: flex;
	justify-content: center;
	margin: 0 20px;
}

.desktop-nav ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
	flex-wrap: wrap;
}

.desktop-nav li {
	margin: 0 0.5rem;
	position: relative;
}

.desktop-nav a {
	display: block;
	padding: 0.5rem 0.3rem;
	color: #333;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9rem;
	text-transform: uppercase;
	transition: color 0.3s ease;
	white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a:focus {
	color: #D00000; /* Updated primary color (red) */
}

/* Current menu item styling */
.desktop-nav .current-menu-item > a,
.desktop-nav .current-menu-ancestor > a {
	color: #D00000; /* Updated primary color (red) */
	font-weight: 700;
}

/* Mobile menu toggle button */
.menu-toggle {
	display: block;
	background: transparent;
	border: none;
	width: 40px;
	height: 40px;
	cursor: pointer;
	padding: 0;
	position: relative;
	z-index: 1010;
}

.burger-icon,
.burger-icon::before,
.burger-icon::after {
	display: block;
	width: 24px;
	height: 3px;
	background-color: #D00000; /* Updated primary color (red) */
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	transition: all 0.3s ease;
}

.burger-icon {
	top: 50%;
	transform: translate(-50%, -50%);
}

.burger-icon::before,
.burger-icon::after {
	content: '';
	left: 50%;
}

.burger-icon::before {
	top: -8px;
}

.burger-icon::after {
	bottom: -8px;
}

/* Mobile menu toggle animation */
.menu-toggle[aria-expanded="true"] .burger-icon {
	background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .burger-icon::before {
	top: 0;
	transform: translate(-50%, 0) rotate(45deg);
	background-color: #D00000; /* Primary color (red) */
}

.menu-toggle[aria-expanded="true"] .burger-icon::after {
	bottom: 0;
	transform: translate(-50%, 0) rotate(-45deg);
	background-color: #D00000; /* Primary color (red) */
}

/* Position the menu close button in the top-right corner */
.menu-toggle[aria-expanded="true"] {
	position: fixed;
	right: 1.5rem;
	top: 1.5rem;
}

/* Mobile menu container */
.mobile-menu-container {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #fff;
	z-index: 1005;
	padding: 4rem 1.5rem 2rem;
	overflow-y: auto;
}

.mobile-menu-container.is-active {
	display: block;
}

/* Mobile navigation */
.mobile-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-nav li {
	margin-bottom: 1.25rem;
}

.mobile-divider {
	height: 1px;
	background-color: rgba(0, 0, 0, 0.1);
	margin: 1.5rem 0;
}

.mobile-nav a {
	display: block;
	padding: 0.5rem 0;
	color: #333;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.1rem;
	text-transform: uppercase;
	transition: color 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
	color: #D00000; /* Updated primary color (red) */
}

/* Header buttons */
.header-buttons,
.mobile-header-buttons {
	display: flex;
	gap: 0.5rem;
}

.mobile-header-buttons {
	margin: 2rem 0 0 0;
	flex-direction: column;
}

.mobile-header-buttons .button {
	width: 100%;
	padding: 0.875rem 1rem;
	justify-content: center;
	margin-bottom: 0.75rem;
}

/* Social icons in mobile menu */
.mobile-social-icons {
	display: flex;
	gap: 1.5rem;
	margin-top: 2rem;
	justify-content: center;
}

.mobile-social-icons .social-icon {
	color: #D00000; /* Primary color (red) */
	font-size: 1.25rem;
}

.mobile-social-icons .social-icon:hover,
.mobile-social-icons .social-icon:focus {
	color: #9F0000; /* Darker red as secondary color */
}

/* Button styles */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border-radius: 4px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.button-register {
	background-color: #D00000; /* Primary color (red) */
	color: #fff !important;
	border: 1px solid #D00000;
	padding: 8px !important;
}

.button-register:hover,
.button-register:focus {
	background-color: #9F0000; /* Darker red as secondary color */
	border-color: #9F0000;
	color: #fff; /* Ensure text stays white on hover */
}

.button-login {
	background-color: #fff;
	color: #D00000; /* Primary color (red) */
	border: 1px solid #D00000;
	padding: 8px !important;
}

.button-login:hover,
.button-login:focus {
	background-color: rgba(208, 0, 0, 0.05); /* Very light red background */
	color: #9F0000; /* Darker red as secondary color */
}

/* Desktop Media Queries */
@media (min-width: 768px) {
	.header-container {
		padding: 1rem 2rem;
	}
	
	.site-title {
		font-size: 1.75rem;
	}
	
	.secondary-menu {
		display: flex;
	}
}

@media (min-width: 1024px) {
	.menu-toggle {
		display: none;
	}
	
	.desktop-nav {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-grow: 1;
	}
	
	.desktop-nav ul {
		gap: 0.5rem;
	}
	
	.desktop-nav li {
		margin: 0;
	}
	
	.desktop-nav a {
		font-size: 0.85rem;
		padding: 0.5rem 0.3rem;
	}
}

/* Larger screens */
@media (min-width: 1200px) {
	.desktop-nav ul {
		gap: 1.5rem;
	}
	
	.desktop-nav a {
		font-size: 0.9rem;
		padding: 0.5rem 0.5rem;
	}
	
	.header-buttons {
		margin-left: 2rem;
	}
}

/* Extra large screens */
@media (min-width: 1600px) {
	.desktop-nav ul {
		gap: 2rem;
	}
	
	.desktop-nav a {
		font-size: 1rem;
		padding: 0.5rem 0.75rem;
	}
	
	.button {
		padding: 0.75rem 1.5rem;
		font-size: 0.9rem;
	}
}

/* Laptop specific adjustments */
@media (min-width: 1024px) and (max-width: 1366px) {
	.header-container {
		max-width: 100%;
		padding: 1rem;
	}
	
	.desktop-nav {
		justify-content: flex-end;
	}
	
	.desktop-nav .nav-container {
		flex-grow: 2;
		justify-content: center;
	}
	
	.desktop-nav ul {
		justify-content: center;
	}
	
	.desktop-nav a {
		font-size: 0.8rem;
		padding: 0.5rem 0.25rem;
	}
	
	.button {
		padding: 0.5rem 0.75rem;
		font-size: 0.8rem;
	}
}

/* Screen reader text - for accessibility */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* Special compact menu mode for smaller screens */
.desktop-nav.compact-menu {
	justify-content: space-between;
}

.desktop-nav.compact-menu .nav-container {
	overflow-x: auto;
	-ms-overflow-style: none; /* IE and Edge */
	scrollbar-width: none; /* Firefox */
	margin: 0 10px;
}

.desktop-nav.compact-menu .nav-container::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}

.desktop-nav.compact-menu ul {
	justify-content: flex-start;
	flex-wrap: nowrap;
	padding-bottom: 5px; /* Space for potential scrollbar */
}

.desktop-nav.compact-menu li {
	flex-shrink: 0;
}

/* Wide screen enhancements */
.desktop-nav.wide-screen .nav-container {
	margin: 0 30px;
}

.desktop-nav.wide-screen .site-branding {
	flex-grow: 0;
}

.desktop-nav.wide-screen .header-buttons {
	flex-grow: 0;
} 