/* drea-app-shell.css — native-style bottom tab bar for DearIrean PWA/Web Clip
 * Only visible when launched from the home screen (iOS standalone / PWA).
 * Hidden on normal desktop & mobile-Safari browsing. */
.drea-app-tabbar { display: none; }

body.drea-standalone {
	padding-bottom: calc(60px + env(safe-area-inset-bottom));
}

body.drea-standalone .drea-app-tabbar {
	display: flex;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: calc(56px + env(safe-area-inset-bottom));
	padding-bottom: env(safe-area-inset-bottom);
	background: rgba(27, 22, 17, 0.92);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-top: 0.5px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.28);
	z-index: 999999;
	align-items: stretch;
}

.drea-app-tabbar a {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.55);
	font-size: 10px;
	line-height: 1;
	font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
	-webkit-tap-highlight-color: transparent;
	position: relative;
}

.drea-app-tabbar a svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	display: block;
}

.drea-app-tabbar a .label {
	font-weight: 600;
	letter-spacing: 0.02em;
}

.drea-app-tabbar a.active {
	color: #C9A86A;
}

.drea-app-tabbar a.active svg {
	stroke-width: 2;
}

.drea-app-tabbar .badge {
	position: absolute;
	top: 8px;
	left: 50%;
	margin-left: 7px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	background: #C9A86A;
	color: #1B1611;
	font-size: 10px;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
	border-radius: 9px;
	display: none;
	box-sizing: border-box;
}

.drea-app-tabbar .badge.show {
	display: block;
}
