/* Vrezerve Bar — frontend styles */

.vrb-bar {
	position: fixed;
	display: flex;
	flex-direction: column;
	/* default visible; PHP injects a max-width media query that hides it above the configured breakpoint */
	align-items: center;
	box-sizing: border-box;
	transform: translateY(0);
	transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.35s ease;
	will-change: transform;
	padding: 8px 6px 6px;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.vrb-bar.vrb-scroll-aware.vrb-hidden {
	transform: translateY(140%);
}

/* Theme: dark */
.vrb-bar.vrb-theme-dark {
	background: var(--vrb-dark-bg);
	border: 1px solid var(--vrb-dark-border);
	box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.vrb-bar.vrb-theme-dark .vrb-item { color: var(--vrb-dark-text); }
.vrb-bar.vrb-theme-dark .vrb-item.is-active { color: var(--vrb-dark-text-active); }
.vrb-bar.vrb-theme-dark .vrb-indicator { background: var(--vrb-dark-indicator); }
.vrb-bar.vrb-theme-dark .vrb-item.is-highlight .vrb-icon-wrap { background: var(--vrb-dark-accent); }
.vrb-bar.vrb-theme-dark .vrb-item.is-highlight { color: var(--vrb-dark-accent-text); }
.vrb-bar.vrb-theme-dark .vrb-style-pill .vrb-item.is-active { background: rgba(255,255,255,0.08); }
.vrb-bar.vrb-theme-dark .vrb-style-underline .vrb-item.is-active::before { background: var(--vrb-dark-text-active); }

/* Theme: light */
.vrb-bar.vrb-theme-light {
	background: var(--vrb-light-bg);
	border: 1px solid var(--vrb-light-border);
	box-shadow: 0 8px 30px rgba(20,20,30,0.12);
}
.vrb-bar.vrb-theme-light .vrb-item { color: var(--vrb-light-text); }
.vrb-bar.vrb-theme-light .vrb-item.is-active { color: var(--vrb-light-text-active); }
.vrb-bar.vrb-theme-light .vrb-indicator { background: var(--vrb-light-indicator); }
.vrb-bar.vrb-theme-light .vrb-item.is-highlight .vrb-icon-wrap { background: var(--vrb-light-accent); }
.vrb-bar.vrb-theme-light .vrb-item.is-highlight { color: var(--vrb-light-accent-text); }
.vrb-bar.vrb-theme-light .vrb-style-pill .vrb-item.is-active { background: rgba(20,20,30,0.06); }
.vrb-bar.vrb-theme-light .vrb-style-underline .vrb-item.is-active::before { background: var(--vrb-light-text-active); }

/* Theme: auto (follows OS) */
@media (prefers-color-scheme: dark) {
	.vrb-bar.vrb-theme-auto {
		background: var(--vrb-dark-bg);
		border: 1px solid var(--vrb-dark-border);
		box-shadow: 0 8px 30px rgba(0,0,0,0.35);
	}
	.vrb-bar.vrb-theme-auto .vrb-item { color: var(--vrb-dark-text); }
	.vrb-bar.vrb-theme-auto .vrb-item.is-active { color: var(--vrb-dark-text-active); }
	.vrb-bar.vrb-theme-auto .vrb-indicator { background: var(--vrb-dark-indicator); }
	.vrb-bar.vrb-theme-auto .vrb-item.is-highlight .vrb-icon-wrap { background: var(--vrb-dark-accent); }
	.vrb-bar.vrb-theme-auto .vrb-item.is-highlight { color: var(--vrb-dark-accent-text); }
}
@media (prefers-color-scheme: light) {
	.vrb-bar.vrb-theme-auto {
		background: var(--vrb-light-bg);
		border: 1px solid var(--vrb-light-border);
		box-shadow: 0 8px 30px rgba(20,20,30,0.12);
	}
	.vrb-bar.vrb-theme-auto .vrb-item { color: var(--vrb-light-text); }
	.vrb-bar.vrb-theme-auto .vrb-item.is-active { color: var(--vrb-light-text-active); }
	.vrb-bar.vrb-theme-auto .vrb-indicator { background: var(--vrb-light-indicator); }
	.vrb-bar.vrb-theme-auto .vrb-item.is-highlight .vrb-icon-wrap { background: var(--vrb-light-accent); }
	.vrb-bar.vrb-theme-auto .vrb-item.is-highlight { color: var(--vrb-light-accent-text); }
}

.vrb-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 520px;
}

.vrb-item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	flex: 1 1 0;
	text-decoration: none;
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	padding: 6px 2px;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.2s ease;
}

.vrb-item.is-active { font-weight: 700; }

.vrb-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	transition: background 0.25s ease, transform 0.25s ease;
}

.vrb-icon-img {
	width: 22px;
	height: 22px;
	object-fit: contain;
	display: block;
}

.vrb-icon-fallback {
	width: 20px;
	height: 20px;
	border-radius: 4px;
	border: 1.5px solid currentColor;
	opacity: 0.6;
	display: block;
}

.vrb-label {
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Highlight (raised accent circle) item */
.vrb-item.is-highlight {
	margin-top: -26px;
}
.vrb-item.is-highlight .vrb-icon-wrap {
	width: 52px;
	height: 52px;
	box-shadow: 0 8px 20px rgba(108,92,231,0.45);
}
.vrb-item.is-highlight .vrb-icon-img { width: 26px; height: 26px; }
.vrb-item.is-highlight .vrb-label { display: none; }

.vrb-indicator {
	width: 96px;
	height: 4px;
	border-radius: 3px;
	margin-top: 8px;
}

/* ---- Style variant: icon-only ---- */
.vrb-style-icon-only .vrb-label { display: none; }
.vrb-style-icon-only .vrb-item.is-highlight { margin-top: -26px; }

/* ---- Style variant: pill (active item gets a rounded pill background) ---- */
.vrb-style-pill .vrb-item .vrb-label { display: none; }
.vrb-style-pill .vrb-item.is-active {
	flex-direction: row;
	gap: 6px;
	border-radius: 999px;
	padding: 8px 14px 8px 10px;
	flex: 0 0 auto;
}
.vrb-style-pill .vrb-item.is-active .vrb-label {
	display: inline-block;
	font-size: 13px;
}
.vrb-style-pill .vrb-item.is-highlight .vrb-label { display: none !important; }

/* ---- Style variant: underline on active item ---- */
.vrb-style-underline .vrb-item.is-active::before {
	content: "";
	position: absolute;
	top: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 22px;
	height: 2px;
	border-radius: 2px;
}
.vrb-style-underline .vrb-item.is-highlight::before { display: none; }

/* Bar is flex by default (mobile-first); the exact breakpoint at which it
   gets hidden on larger screens is injected inline by PHP per the admin setting. */
