/**
 * Vinotl Public Styles
 *
 * @package    Vinotl
 * @subpackage Vinotl/public/css
 * @since      0.1.0
 * @author     Howard Wolowitz <howard@vinotl.dev>
 */

/**
 * Language Switcher
 */
.vinotl-switcher {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 9999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.vinotl-switcher-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: #333;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.2s ease;
}

.vinotl-switcher-toggle:hover {
	background: #f8f8f8;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vinotl-current-lang {
	display: flex;
	align-items: center;
	gap: 6px;
}

.vinotl-chevron {
	transition: transform 0.2s ease;
}

.vinotl-switcher-toggle:hover .vinotl-chevron {
	transform: translateY(2px);
}

.vinotl-switcher-dropdown {
	display: none;
	position: absolute;
	bottom: calc(100% + 8px);
	right: 0;
	min-width: 180px;
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	padding: 8px 0;
	animation: vinotlFadeIn 0.2s ease;
}

.vinotl-switcher.open .vinotl-switcher-dropdown {
	display: block;
}

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

.vinotl-lang-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	color: #333;
	text-decoration: none;
	transition: background 0.15s ease;
	cursor: pointer;
}

.vinotl-lang-option:hover {
	background: #f5f5f5;
}

.vinotl-lang-option.active {
	background: #f0f7ff;
	color: #2563eb;
}

.vinotl-lang-flag {
	font-size: 18px;
	line-height: 1;
}

.vinotl-lang-name {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
}

.vinotl-checkmark {
	color: #2563eb;
}

/**
 * Loading Overlay
 * (Created dynamically by JS, but here for reference)
 */
#vinotl-loading {
	/* Styles in JS for better control */
}

/**
 * Notifications
 */
.vinotl-notification {
	/* Styles in JS for better control */
}

/**
 * Mobile Responsive
 */
@media (max-width: 768px) {
	.vinotl-switcher {
		bottom: 16px;
		right: 16px;
	}

	.vinotl-switcher-toggle {
		padding: 10px 14px;
		font-size: 13px;
	}

	.vinotl-switcher-dropdown {
		min-width: 160px;
	}

	.vinotl-lang-option {
		padding: 8px 12px;
	}

	.vinotl-lang-name {
		font-size: 13px;
	}
}

/**
 * Print - Hide switcher when printing
 */
@media print {
	.vinotl-switcher {
		display: none !important;
	}
}

/**
 * Accessibility - Focus states
 */
.vinotl-switcher-toggle:focus {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.vinotl-lang-option:focus {
	outline: 2px solid #2563eb;
	outline-offset: -2px;
	background: #f0f7ff;
}

/**
 * Dark mode support (optional)
 */
@media (prefers-color-scheme: dark) {
	.vinotl-switcher-toggle,
	.vinotl-switcher-dropdown {
		background: #1f2937;
		border-color: #374151;
		color: #e5e7eb;
	}

	.vinotl-switcher-toggle:hover {
		background: #374151;
	}

	.vinotl-lang-option {
		color: #e5e7eb;
	}

	.vinotl-lang-option:hover {
		background: #374151;
	}

	.vinotl-lang-option.active {
		background: #1e3a8a;
		color: #93c5fd;
	}
}
