/*
 * Shop Navigation Styles - One of One Collectables
 * Clean, modular navigation styling for shop categories
 */

/* === MAIN CATEGORY NAVIGATION === */
.category-nav {
	display: flex;
	align-items: center;
	background: #f8f9fa;
	padding: 0;
	border-bottom: 1px solid #e9ecef;
	position: relative;
	overflow: visible;
}

.category-nav-items {
	display: flex;
	align-items: center;
	gap: 0;
	flex: 1;
	overflow: visible;
}

/* === NAVIGATION LINKS === */
.nav-link {
	color: #0d1b2a;
	text-decoration: none;
	padding: 16px 24px;
	text-transform: uppercase;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.8px;
	border-bottom: 3px solid transparent;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.nav-link:hover {
	border-bottom-color: #0d1b2a;
	background: rgba(13, 27, 42, 0.05);
}

/* === DROPDOWN CONTAINERS === */
.nav-dropdown {
	position: relative;
	display: inline-block;
}

.nav-dropdown-btn {
	background: none;
	border: none;
	color: #0d1b2a;
	padding: 16px 24px;
	text-transform: uppercase;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.8px;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	transition: all 0.2s ease;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 8px;
}

.nav-dropdown-btn:hover,
.nav-dropdown-btn.active {
	border-bottom-color: #0d1b2a;
	background: rgba(13, 27, 42, 0.05);
}

.nav-arrow {
	font-size: 0.8rem;
	transition: transform 0.2s ease;
}

.nav-dropdown-btn.active .nav-arrow {
	transform: rotate(180deg);
}

/* === DROPDOWN MENUS === */
.nav-dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: white;
	border: 1px solid #dee2e6;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	min-width: 250px;
	z-index: 1000001;
	display: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
}

.nav-dropdown-menu.show {
	display: block;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-dropdown-menu a {
	display: block;
	padding: 12px 16px;
	color: #374151;
	text-decoration: none;
	border-bottom: 1px solid #f1f1f1;
	transition: all 0.2s;
	font-size: 0.95rem;
}

.nav-dropdown-menu a:hover {
	background: #f8f9fa;
	color: #0d1b2a;
}

.nav-dropdown-menu a:last-child {
	border-bottom: none;
}

/* === YEAR SEARCH CONTAINER === */
.year-search-container {
	padding: 12px 16px;
	border-bottom: 1px solid #f1f1f1;
	position: relative;
}

.year-search-container input {
	width: 100%;
	padding: 8px;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	font-size: 0.9rem;
	position: relative;
	cursor: text;
}

.year-search-container input:focus {
	border-color: #0d1b2a;
	outline: none;
}

.year-search-container p {
	color: #9ca3af;
	font-size: 0.8rem;
	margin: 5px 0 0 0;
	text-align: center;
}

/* === OTHER SPORTS SUBMENU === */
.nav-submenu {
	position: relative;
}

/* Ensure the submenu container allows overflow */
#other-sports-container {
	position: relative;
	overflow: visible;
}

.nav-submenu-btn {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 12px 16px;
	color: #374151;
	cursor: pointer;
	background: #f8f9fa;
	font-weight: 600;
	transition: all 0.2s;
	border: none;
	text-decoration: none;
	font-size: 1rem;
	width: 100%;
	justify-content: space-between;
}

.nav-submenu-btn:hover,
.nav-submenu-btn.active {
	background: rgba(13, 27, 42, 0.05);
	color: #0d1b2a;
}

.nav-submenu-menu {
	position: absolute;
	top: 0;
	left: 100%;
	background: white;
	border: 1px solid #dee2e6;
	border-radius: 0 8px 8px 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	min-width: 180px;
	z-index: 1000002;
	display: none;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-10px);
	transition: all 0.3s ease;
}

.nav-submenu-menu.show {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateX(0) !important;
}

.nav-submenu-menu a {
	display: block;
	padding: 12px 16px;
	color: #374151;
	text-decoration: none;
	border-bottom: 1px solid #f1f1f1;
	transition: all 0.2s;
}

.nav-submenu-menu a:hover {
	background: #f8f9fa;
	color: #0d1b2a;
}

.nav-submenu-menu a:last-child {
	border-bottom: none;
}

/* === VIEW ALL LINK === */
.view-all-link {
	display: block;
	padding: 12px 16px;
	color: #0d1b2a;
	text-decoration: none;
	border-top: 1px solid #e9ecef;
	margin-top: 8px;
	padding-top: 12px;
	font-weight: 600;
	background: #f8f9fa;
}

.view-all-link:hover {
	background: rgba(13, 27, 42, 0.05);
}

/* === RIGHT NAVIGATION === */
.nav-right {
	margin-left: auto;
}

/* === OVERFLOW MANAGEMENT === */
.site-header,
.site-header-container,
.category-nav,
.nav-dropdown,
.nav-submenu {
	overflow: visible !important;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
	.category-nav {
		overflow-x: auto;
		overflow-y: visible;
		padding: 0;
		background: #f8f9fa;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.category-nav::-webkit-scrollbar {
		height: 4px;
	}

	.category-nav::-webkit-scrollbar-track {
		background: #f1f1f1;
	}

	.category-nav::-webkit-scrollbar-thumb {
		background: #0d1b2a;
		border-radius: 2px;
	}

	.category-nav-items {
		flex-wrap: nowrap;
		gap: 0;
		min-width: max-content;
	}

	.nav-link,
	.nav-dropdown-btn {
		padding: 12px 16px;
		font-size: 0.85rem;
		white-space: nowrap;
		flex-shrink: 0;
	}

	/* Mobile dropdown behavior */
	.nav-dropdown-menu.mobile-active {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background: white;
		z-index: 100002;
		padding: 20px;
		overflow-y: auto;
		box-shadow: none;
		border: none;
		border-radius: 0;
		transform: translateX(0);
		display: block;
		opacity: 1;
		visibility: visible;
	}

	.nav-submenu-menu.mobile-active {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background: white;
		z-index: 100003;
		padding: 20px;
		overflow-y: auto;
		border: none;
		border-radius: 0;
		transform: translateX(0);
		display: block;
		opacity: 1;
		visibility: visible;
	}

	.dropdown-overlay {
		display: none;
	}

	body.dropdown-open {
		overflow: hidden;
	}
}

/* === TABLET RESPONSIVE === */
@media (min-width: 769px) and (max-width: 1024px) {
	.nav-link,
	.nav-dropdown-btn {
		padding: 14px 18px;
		font-size: 0.9rem;
	}

	.nav-dropdown-menu {
		min-width: 220px;
	}
}
