/* ==========================================================================
   Ekam — Frontend Theme Features panel
   ========================================================================== */

:root {
	--ekam-pref-accent: #00514c;
	--ekam-pref-accent-hover: #00332f;
	--ekam-pref-bg: #ffffff;
	--ekam-pref-text: #1c1c1c;
	--ekam-pref-muted: #6b6b6b;
	--ekam-pref-border: #e4e4e4;
	--ekam-pref-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.ekam-pref-widget {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99999;
	font-family: inherit;
}

/* Floating action button ------------------------------------------------ */

.ekam-pref-fab {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: none;
	background: var(--ekam-pref-accent);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--ekam-pref-shadow);
	transition: transform 0.2s ease, background 0.2s ease;
}

.ekam-pref-fab:hover,
.ekam-pref-fab:focus {
	background: var(--ekam-pref-accent-hover);
	transform: rotate(35deg);
}

.ekam-pref-fab:focus-visible {
	outline: 3px solid #ffb700;
	outline-offset: 2px;
}

/* Panel ------------------------------------------------------------------ */

.ekam-pref-panel {
	position: absolute;
	right: 0;
	bottom: 68px;
	width: 300px;
	max-width: calc(100vw - 40px);
	background: var(--ekam-pref-bg);
	color: var(--ekam-pref-text);
	border-radius: 14px;
	box-shadow: var(--ekam-pref-shadow);
	padding: 18px 18px 14px;
	box-sizing: border-box;
}

.ekam-pref-panel[hidden] {
	display: none;
}

.ekam-pref-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.ekam-pref-panel-header h2 {
	font-size: 16px;
	margin: 0;
	font-weight: 700;
}

.ekam-pref-close {
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: var(--ekam-pref-muted);
	padding: 0 4px;
}

.ekam-pref-close:hover { color: var(--ekam-pref-text); }

.ekam-pref-panel-sub {
	font-size: 12px;
	color: var(--ekam-pref-muted);
	margin: 8px 0 14px;
	line-height: 1.4;
}

.ekam-pref-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ekam-pref-item {
	border-bottom: 1px solid var(--ekam-pref-border);
	padding-bottom: 12px;
}

.ekam-pref-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

/* Toggle switch ----------------------------------------------------------- */

.ekam-toggle {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
}

.ekam-toggle-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.ekam-toggle-track {
	flex: 0 0 auto;
	width: 42px;
	height: 24px;
	border-radius: 999px;
	background: #d3d3d3;
	position: relative;
	transition: background 0.2s ease;
	margin-top: 2px;
}

.ekam-toggle-thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s ease;
}

.ekam-toggle-input:checked + .ekam-toggle-track {
	background: var(--ekam-pref-accent);
}

.ekam-toggle-input:checked + .ekam-toggle-track .ekam-toggle-thumb {
	transform: translateX(18px);
}

.ekam-toggle-input:focus-visible + .ekam-toggle-track {
	outline: 3px solid #ffb700;
	outline-offset: 2px;
}

.ekam-toggle-text {
	display: flex;
	flex-direction: column;
}

.ekam-toggle-label {
	font-size: 13px;
	font-weight: 600;
}

.ekam-toggle-help {
	font-size: 11px;
	color: var(--ekam-pref-muted);
	margin-top: 2px;
	line-height: 1.3;
}

.ekam-pref-reset {
	width: 100%;
	margin-top: 14px;
	padding: 8px 10px;
	font-size: 12px;
	font-weight: 600;
	background: transparent;
	border: 1px solid var(--ekam-pref-border);
	border-radius: 8px;
	color: var(--ekam-pref-muted);
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.ekam-pref-reset:hover {
	border-color: var(--ekam-pref-accent);
	color: var(--ekam-pref-accent);
}

/* Responsive: full-width bottom sheet on small screens ------------------- */

@media only screen and (max-width: 480px) {
	.ekam-pref-widget {
		right: 12px;
		bottom: 12px;
	}

	.ekam-pref-panel {
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: 78px;
		width: auto;
	}
}

/* ==========================================================================
   Feature classes applied to <body> by the panel above
   ========================================================================== */

/* Dark mode --------------------------------------------------------------- */

body.ekam-dark-mode {
	background: #121212;
	color: #e6e6e6;
}

body.ekam-dark-mode .site-header,
body.ekam-dark-mode .top-bar,
body.ekam-dark-mode .mobile-header,
body.ekam-dark-mode .ekam-footer,
body.ekam-dark-mode .box-view {
	background: #1a1a1a;
	color: #e6e6e6;
}

body.ekam-dark-mode a {
	color: #7fd7cf;
}

body.ekam-dark-mode .ekam-widget,
body.ekam-dark-mode .right-widgets-area,
body.ekam-dark-mode .footer-widgets-area {
	background: #1a1a1a;
	color: #e6e6e6;
	border-color: #2c2c2c;
}

body.ekam-dark-mode .ekam-pref-panel {
	background: #1e1e1e;
	color: #f1f1f1;
}

body.ekam-dark-mode .ekam-pref-panel-header h2,
body.ekam-dark-mode .ekam-toggle-label {
	color: #f1f1f1;
}

/* Large text --------------------------------------------------------------- */

body.ekam-large-text {
	font-size: 112.5%;
}

body.ekam-large-text p,
body.ekam-large-text li {
	line-height: 1.7;
}

/* Reduced motion ------------------------------------------------------------ */

body.ekam-reduce-motion * {
	animation-duration: 0.001ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.001ms !important;
	scroll-behavior: auto !important;
}
