/**
 * Responsive Mobile Select Menu - Frontend Styles
 *
 * @package ResponsiveMobileSelect
 * @since 2.0.0
 */

/* Hide select menu by default */
.responsive-menu-select {
	display: none !important;
	width: 100%;
	max-width: 200px;
	padding: 8px 12px;
	font-size: inherit;
	font-family: inherit;
	color: inherit;
	border: 1px solid #ddd;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	padding-right: 40px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

/* Focus states for accessibility */
.responsive-menu-select:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
	border-color: #0073aa;
	box-shadow: 0 0 0 1px #0073aa;
}

/* Disabled state */
.responsive-menu-select:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	background-color: #f5f5f5;
}

/* Option styling */
.responsive-menu-select option {
	padding: 8px 12px;
	font-size: inherit;
	line-height: inherit;
}

/* Responsive breakpoint - show select menu */
@media (max-width: 960px) {
	/* Hide desktop menu */
	.responsive-menu-desktop {
		display: none !important;
	}
	
	/* Show select menu */
	.responsive-menu-select {
		display: inline-block !important;
	}
	
	/* Container adjustments */
	.responsiveSelectContainer {
		border: none !important;
		background: none !important;
		box-shadow: none !important;
		height: auto !important;
		max-height: none !important;
		visibility: visible !important;
	}
	
	/* Hide any existing menu lists */
	.responsiveSelectContainer ul,
	ul.responsiveSelectFullMenu,
	#megaMenu ul.megaMenu.responsiveSelectFullMenu {
		display: none !important;
	}
}

/* Specific theme compatibility */
#et-top-navigation .responsive-menu-select {
	margin-bottom: 20px;
}

/* Genesis theme compatibility */
.nav-primary .responsive-menu-select,
.nav-secondary .responsive-menu-select {
	margin: 10px 0;
}

/* Twenty Twenty-One theme compatibility */
.primary-navigation .responsive-menu-select {
	margin: 1rem 0;
}

/* Twenty Twenty-Two theme compatibility */
.wp-block-navigation .responsive-menu-select {
	margin: 0.5rem 0;
}

/* Twenty Twenty-Three theme compatibility */
.wp-block-navigation__container .responsive-menu-select {
	margin: 1rem 0;
}

/* Custom breakpoint support */
@media (max-width: 768px) {
	.responsive-menu-select {
		font-size: 18px; /* Larger touch target, you may adjust this in your custom css if you don't need or care about accessibility */
		padding: 6px 34px 6px 12px;
	}
}

@media (max-width: 480px) {
	.responsive-menu-select {
		max-width: 100%;
		font-size: 16px;
	}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.responsive-menu-select {
		border-width: 3px;
		border-color: #000;
	}
	
	.responsive-menu-select:focus {
		border-color: #0066cc;
		outline-color: #0066cc;
	}
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	.responsive-menu-select {
		transition: none;
	}
	
	.responsive-menu-select:active {
		transform: none;
	}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	.responsive-menu-select option {
		background-color: #2c2c2c;
		color: #fff;
	}
	
	.responsive-menu-select:focus {
		border-color: #0073aa;
		box-shadow: 0 0 0 1px #0073aa;
	}
}

/* Print styles */
@media print {
	.responsive-menu-select {
		display: none !important;
	}
	
	.responsive-menu-desktop {
		display: block !important;
	}
}
