/**
 * Modern Design - Elite Performance
 * Header & Hero refinements
 * 
 * @package EZGolfAcademy
 * @since 1.0.0
 */

/* ========================================
   Elite Header Design
   ======================================== */

.site-header {
	background: var(--ez-navy, #0E2A47) !important;
	border-bottom: 1px solid rgba(var(--ez-accent-rgb), 0.15);
	box-shadow: var(--ez-card-shadow);
	transition: var(--ez-transition-slow);
	padding: var(--ez-space-sm) 0 !important;
	min-height: auto;
}

.site-header.scrolled {
	background: var(--ez-navy, #0E2A47) !important;
	box-shadow: 0 8px 40px rgba(var(--ez-primary-rgb), 0.15);
	padding: var(--ez-space-xs) 0 !important;
}

.header-container {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
}

/* Logo in Header - Transparent Background, EXACTLY Match Footer */
.site-header .site-logo,
.site-header .custom-logo-link,
.site-header .ez-logo {
	display: inline-block;
	align-items: center;
	text-decoration: none;
	transition: transform 0.3s ease;
	z-index: 10;
	flex-shrink: 0;
	background: transparent !important;
	background-color: transparent !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0;
	margin: 0;
	line-height: 0;
}

.site-header .site-logo:hover {
	transform: scale(1.05);
}

.site-header .site-logo img,
.site-header .custom-logo-link img,
.site-header .ez-logo img,
.site-header .ez-logo .logo-icon img {
	max-height: 45px !important;
	width: auto;
	height: auto;
	display: block;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
	transition: all 0.3s ease;
	background: transparent !important;
	background-color: transparent !important;
	padding: 0 !important;
	border: none !important;
	margin: 0;
}

/* Ensure all header logo containers are transparent */
.site-header .ez-logo .logo-icon {
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	padding: 0 !important;
}

.site-header .site-logo:hover img,
.site-header .custom-logo-link:hover img,
.site-header .ez-logo:hover .logo-icon img {
	filter: drop-shadow(0 4px 12px rgba(255, 199, 44, 0.5));
}

/* Hide duplicate text in header when logo image is used */
.site-header .ez-logo .logo-text,
.site-header .ez-logo .logo-title,
.site-header .ez-logo .logo-tagline {
	display: none !important;
}

.site-header .custom-logo-link {
	display: inline-block;
	line-height: 0;
	background: transparent;
	padding: 0;
}

/* Ensure logo icon container has transparent background */
.site-header .ez-logo .logo-icon {
	background: transparent !important;
	padding: 0 !important;
	border-radius: 0 !important;
}

/* Navigation Menu - Modern Style */
.primary-navigation {
	display: flex;
	align-items: center;
	gap: 15px;
	flex: 1;
	justify-content: center;
}

.main-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
	align-items: center;
}

.main-menu > li {
	margin: 0;
	position: relative;
}

.main-menu > li > a {
	color: var(--ez-white);
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	padding: 12px 20px;
	border-radius: 8px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	display: block;
	letter-spacing: 0.3px;
}

.main-menu > li > a::before {
	content: '';
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%) scaleX(0);
	width: 60%;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--ez-accent), transparent);
	border-radius: 2px;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-menu > li:hover > a,
.main-menu > li > a:focus {
	color: var(--ez-gold-primary, #FFC72C);
	background: rgba(255, 199, 44, 0.1);
}

.main-menu > li:hover > a::before,
.main-menu > li > a:focus::before {
	transform: translateX(-50%) scaleX(1);
}

.main-menu > li.current-menu-item > a,
.main-menu > li.current_page_item > a {
	color: var(--ez-accent);
}

.main-menu > li.current-menu-item > a::before,
.main-menu > li.current_page_item > a::before {
	transform: translateX(-50%) scaleX(1);
}

/* Dropdown Menu - Modern Style */
.main-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: rgba(var(--ez-primary-rgb), 0.98);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	min-width: 220px;
	padding: var(--ez-space-sm) 0;
	border-radius: var(--ez-card-radius);
	box-shadow: var(--ez-card-shadow-hover);
	border: 1px solid rgba(var(--ez-accent-rgb), 0.2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	list-style: none;
	margin: 8px 0 0 0;
	z-index: 1000;
}

.main-menu li:hover .sub-menu,
.main-menu li:focus-within .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.main-menu .sub-menu li {
	margin: 0;
}

.main-menu .sub-menu a {
	color: rgba(255, 255, 255, 0.9);
	padding: 12px 24px;
	display: block;
	font-size: 14px;
	font-weight: 500;
	border-radius: 0;
	transition: all 0.2s ease;
}

.main-menu .sub-menu a::before {
	display: none;
}

.main-menu .sub-menu a:hover {
	color: var(--ez-accent);
	background: var(--ez-accent-muted);
	padding-left: 28px;
}

/* Login Button */
.header-login {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.header-login .btn-login-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	color: var(--ez-gold-primary, #FFC72C);
	font-size: 1.3rem;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	text-decoration: none;
	flex-shrink: 0;
}

.header-login .btn-login-icon:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: var(--ez-gold);
	color: #FFD700;
	transform: scale(1.1);
	box-shadow: 0 4px 15px rgba(255, 199, 44, 0.3);
}

.header-login .btn-text {
	display: none; /* Hide text, show only icons */
}

/* Menu Toggle - Mobile */
.menu-toggle {
	display: none;
	background: rgba(255, 199, 44, 0.1);
	border: 2px solid rgba(255, 199, 44, 0.3);
	color: var(--ez-gold-primary, #FFC72C);
	padding: 10px 16px;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.menu-toggle:hover {
	background: rgba(var(--ez-accent-rgb), 0.2);
	border-color: var(--ez-accent);
}

/* ========================================
   Modern Hero Section Design
   ======================================== */

.hero-section {
	position: relative;
	background: transparent;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 0;
}

/* Animated Background Pattern */
.hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: 
		radial-gradient(circle at 25% 25%, rgba(255, 199, 44, 0.08) 0%, transparent 50%),
		radial-gradient(circle at 75% 75%, rgba(255, 199, 44, 0.06) 0%, transparent 50%),
		radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
	background-size: 200% 200%, 150% 150%, 300% 300%;
	animation: backgroundMove 20s ease-in-out infinite;
	opacity: 1;
	z-index: 1;
}

/* Subtle dot pattern overlay */
.hero-section::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
	background-size: 40px 40px;
	background-position: 0 0;
	opacity: 0.4;
	z-index: 1;
	pointer-events: none;
}

@keyframes backgroundMove {
	0%, 100% {
		background-position: 0% 0%, 100% 100%, 50% 50%;
	}
	50% {
		background-position: 100% 100%, 0% 0%, 25% 75%;
	}
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 900px;
	margin: 0 auto;
	padding: 80px 40px;
	text-align: center;
	width: 100%;
}

/* Hero Logo Container - Groups logo, title, and tagline */
.hero-logo-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-bottom: 60px;
	position: relative;
	z-index: 2;
}

/* Hero Logo - Enhanced with Modern Styling */
.hero-logo-large {
	margin: 0 auto 30px;
	max-width: 200px;
	max-height: 200px;
	position: relative;
	z-index: 2;
}

.hero-logo-large .hero-logo-image {
	width: 100%;
	height: auto;
	max-width: 200px;
	max-height: 200px;
	display: block;
	filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
	transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	animation: logoFloat 4s ease-in-out infinite, fadeInUp 1s ease-out 0.3s both;
}

.hero-logo-large:hover .hero-logo-image {
	transform: scale(1.05);
	filter: drop-shadow(0 15px 40px rgba(255, 199, 44, 0.5));
}

@keyframes logoFloat {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-12px);
	}
}

/* Hero Title - Elite Typography */
.hero-title {
	font-family: var(--ez-font-display);
	font-size: var(--ez-text-hero);
	font-weight: 800;
	margin: 0 0 var(--ez-space-lg);
	line-height: var(--ez-leading-tight);
	color: var(--ez-text-inverse);
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	letter-spacing: var(--ez-tracking-tight);
	animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Hero Tagline - Gold Accent (under logo) */
.hero-logo-container .hero-tagline {
	font-size: 20px;
	font-weight: 400;
	margin: 0 0 0;
	color: var(--ez-gold-primary, #FFC72C);
	font-style: italic;
	letter-spacing: 0.5px;
	text-shadow: none;
	animation: fadeInUp 0.8s ease-out 0.6s both;
	font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.45;
}

/* Fallback hero tagline (if no logo) */
.hero-tagline {
	font-size: 24px;
	font-weight: 400;
	margin: 0 0 70px;
	color: var(--ez-gold-primary, #FFC72C);
	font-style: italic;
	letter-spacing: 1px;
	text-shadow: none;
	animation: fadeInUp 0.8s ease-out 0.4s both;
	font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.45;
}

/* Modern CTA Buttons */
.hero-cta {
	display: flex;
	gap: 20px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 0;
	animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-section .btn {
	padding: 18px 40px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 9999px;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: none;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	min-width: 200px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-section .btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.hero-section .btn:hover::before {
	width: 300px;
	height: 300px;
}

.hero-section .btn-primary {
	background: var(--ez-accent);
	color: var(--ez-text-on-accent);
	box-shadow: 0 8px 30px rgba(var(--ez-accent-rgb), 0.4);
}

.hero-section .btn-primary:hover {
	background: var(--ez-accent-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 22px rgba(var(--ez-accent-rgb), 0.35);
	color: var(--ez-text-on-accent);
}

.hero-section .btn-secondary {
	background: var(--ez-accent);
	color: var(--ez-text-on-accent);
	border: none;
	padding: var(--ez-btn-padding-y) var(--ez-btn-padding-x);
	border-radius: var(--ez-btn-radius);
	font-weight: 700;
	box-shadow: 0 4px 16px rgba(var(--ez-accent-rgb), 0.35);
	transition: var(--ez-transition);
}

.hero-section .btn-secondary:hover {
	background: var(--ez-accent-hover);
	color: var(--ez-text-on-accent);
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(var(--ez-accent-rgb), 0.45);
	border: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.header-container {
		padding: 0 30px;
	}
	
	.main-menu > li > a {
		padding: 10px 16px;
		font-size: 14px;
	}
	
	.hero-title {
		font-size: 52px;
	}
	
	.hero-tagline {
		font-size: 20px;
	}
	
	.hero-logo-large {
		max-width: 350px;
		max-height: 175px;
		margin-bottom: 40px;
	}
}

@media (max-width: 768px) {
	.site-header {
		padding: 15px 0;
	}
	
	.header-container {
		padding: 0 20px;
		gap: 20px;
	}
	
	.menu-toggle {
		display: block;
	}
	
	.primary-navigation {
		position: fixed;
		top: 70px;
		left: 0;
		right: 0;
		background: rgba(0, 31, 63, 0.98);
		backdrop-filter: blur(20px);
		padding: 30px 20px;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	}
	
	.primary-navigation.active {
		transform: translateX(0);
	}
	
	.main-menu {
		flex-direction: column;
		width: 100%;
		gap: 0;
	}
	
	.main-menu > li {
		width: 100%;
	}
	
	.main-menu > li > a {
		width: 100%;
		padding: 16px 20px;
		border-radius: 8px;
		margin-bottom: 8px;
	}
	
	.main-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		background: rgba(0, 0, 0, 0.2);
		margin: 8px 0;
		padding: 8px 0;
	}
	
	.hero-content {
		padding: 60px 20px;
	}
	
	.hero-title {
		font-size: 42px;
		margin-bottom: 20px;
	}
	
	.hero-tagline {
		font-size: 18px;
		margin-bottom: 50px;
	}
	
	.hero-logo-large {
		max-width: 150px;
		max-height: 150px;
		margin-bottom: 20px;
	}
	
	.hero-logo-container .hero-title {
		font-size: 36px;
		margin-bottom: 10px;
	}
	
	.hero-logo-container .hero-tagline {
		font-size: 16px;
	}
	
	.hero-section .btn {
		width: 100%;
		max-width: 300px;
		padding: 16px 30px;
		font-size: 15px;
	}
	
	.hero-cta {
		flex-direction: column;
		gap: 15px;
	}
	
	.header-login .btn-login {
		padding: 10px 20px;
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.hero-title {
		font-size: 36px;
	}
	
	.hero-tagline {
		font-size: 16px;
	}
	
	.hero-logo-large {
		max-width: 120px;
		max-height: 120px;
		margin-bottom: 15px;
	}
	
	.hero-logo-container .hero-title {
		font-size: 28px;
		margin-bottom: 8px;
	}
	
	.hero-logo-container .hero-tagline {
		font-size: 14px;
	}
	
	.hero-section .btn {
		font-size: 14px;
		padding: 14px 25px;
	}
}
