/**
 * GFMR Global Language Switcher Styles
 *
 * Styles for header/footer/shortcode placement.
 * Includes .gfmr-lang-btn base styles so this file works standalone
 * (gfmr-multilingual.css is only loaded on pages with multilingual blocks).
 *
 * @package WpGfmRenderer
 * @since 2.6.0
 */

/* ============================================
   Base: .gfmr-lang-btn (standalone copy from gfmr-multilingual.css)
   ============================================ */

.gfmr-global-lang-switcher .gfmr-lang-btn {
	padding: 4px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #f5f5f5;
	cursor: pointer;
	font-size: 12px;
	font-weight: 500;
	color: #333;
	text-decoration: none;
	transition: all 0.2s ease;
}

.gfmr-global-lang-switcher .gfmr-lang-btn:hover {
	background: #e5e5e5;
	border-color: #ccc;
}

.gfmr-global-lang-switcher .gfmr-lang-btn:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

.gfmr-global-lang-switcher .gfmr-lang-btn.active {
	background: #0073aa;
	color: #fff;
	border-color: #0073aa;
}

.gfmr-global-lang-switcher .gfmr-lang-btn.active:hover {
	background: #005a87;
	border-color: #005a87;
}

/* ============================================
   Base: Global Switcher Container
   ============================================ */

.gfmr-global-lang-switcher {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

/* ============================================
   Header Placement
   ============================================ */

.gfmr-global-lang-switcher--header {
	justify-content: flex-end;
	padding: 8px 16px;
	background: inherit;
}

/* ============================================
   Footer Placement
   ============================================ */

.gfmr-global-lang-switcher--footer {
	justify-content: center;
	padding: 12px 0;
}

/* ============================================
   Shortcode Placement
   ============================================ */

.gfmr-global-lang-switcher--shortcode {
	justify-content: flex-start;
}

/* ============================================
   Dropdown Mode
   ============================================ */

.gfmr-lang-select {
	padding: 4px 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
	color: #333;
	cursor: pointer;
}

.gfmr-lang-select:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

/* ============================================
   Dark Mode Support
   ============================================ */

@media (prefers-color-scheme: dark) {

	.gfmr-lang-select {
		background: #2d2d2d;
		border-color: #444;
		color: #e0e0e0;
	}
}

/* ============================================
   RTL Support
   ============================================ */

[dir="rtl"] .gfmr-global-lang-switcher--header {
	justify-content: flex-start;
}

[dir="rtl"] .gfmr-global-lang-switcher--footer {
	justify-content: center;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media screen and (max-width: 480px) {

	.gfmr-global-lang-switcher--header,
	.gfmr-global-lang-switcher--footer {
		justify-content: center;
	}
}
