/*
 * ============================================================
 * TOP ENZYMES BRAND — THEME TOGGLE STYLES
 * ============================================================
 */

.te-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--te-line, #d8d2c4);
	background: var(--te-surface, #ffffff);
	color: var(--te-ink, #0d1f17);
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.25s ease;
	box-shadow: var(--te-shadow-sm, 0 4px 12px rgba(0,0,0,0.05));
	position: relative;
	z-index: 50;
}

.te-theme-toggle:hover {
	border-color: var(--te-accent, #1f7a4d);
	color: var(--te-accent, #1f7a4d);
	transform: translateY(-2px);
}

.te-theme-toggle:focus-visible {
	outline: 2px solid var(--te-accent, #1f7a4d);
	outline-offset: 3px;
}

.te-theme-toggle .te-icon {
	display: block;
}

.te-theme-toggle .te-icon-dark {
	display: none;
}

[data-theme="dark"] .te-theme-toggle .te-icon-light,
body[data-theme="dark"] .te-theme-toggle .te-icon-light {
	display: none;
}

[data-theme="dark"] .te-theme-toggle .te-icon-dark,
body[data-theme="dark"] .te-theme-toggle .te-icon-dark {
	display: block;
}

/* Floating placement (auto-injected) */
.te-theme-toggle-floating {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9999;
}

.te-theme-toggle-floating .te-theme-toggle {
	width: 48px;
	height: 48px;
	box-shadow: var(--te-shadow-md, 0 12px 32px -8px rgba(0,0,0,0.15));
}

@media (max-width: 600px) {
	.te-theme-toggle-floating {
		bottom: 16px;
		right: 16px;
	}
	.te-theme-toggle-floating .te-theme-toggle {
		width: 44px;
		height: 44px;
	}
}

/* Animation: gentle rotate on click */
.te-theme-toggle:active .te-icon {
	transform: rotate(20deg);
}

.te-theme-toggle .te-icon {
	transition: transform 0.3s ease;
}
