/* Bali Digital — shared foundation: palette + site menu. Linked by every page.
   Edit nav styling or brand colours HERE (one place), not per page. */
:root {
	--bg:#020b1a;
	--fg:#ffffff;
	--muted:#a9c6e8;
	--accent:#38e1ff;
	--yellow:#ffd83d;
	--border:#16406e;
	--card:#06264f;
	--good:#2ee66b;
	--mod:#facc15;
	--usg:#ff9f43;
	--bad:#ff5252;
	--tabbar-h:64px;
}

html{
	overflow-x:clip;
}
body{
	overflow-x:clip;
}

.site-menu-toggle{
	display:none !important;
}

.site-menu{
	position:sticky; top:0; z-index:900;
	box-sizing:border-box;
	display:flex; align-items:center; justify-content:center;
	gap:2px 4px; padding:12px 16px;
	background:rgba(3,25,55,0.88); backdrop-filter:blur(10px);
	border-bottom:1px solid var(--border);
	margin:0 0 8px;
}
.site-menu a{
	color:var(--muted); font-weight:700; font-size:15px; text-decoration:none;
	padding:7px 11px; border-radius:8px; white-space:nowrap; flex:0 0 auto;
	transition:color .2s ease, background .2s ease;
}
.site-menu a:hover{ color:var(--accent); background:rgba(56,225,255,0.12); }
.site-menu a.active{ color:var(--accent); }
.site-menu a.menu-current{ background:var(--accent); color:#03203f; }
.site-menu a.menu-current:hover{ background:#5aebff; color:#03203f; }

/* Desktop / tablet: top menu row. */
@media (min-width:761px){
	.site-menu{
		width:100vw;
		max-width:100vw;
		margin-left:calc(50% - 50vw);
		margin-right:calc(50% - 50vw);
		flex-wrap:nowrap;
		justify-content:safe center;
		overflow-x:auto;
		-webkit-overflow-scrolling:touch;
		scrollbar-width:none;
	}
	.site-menu::-webkit-scrollbar{ display:none; }
	.app-tabbar,
	.app-more,
	.app-more-backdrop{
		display:none !important;
	}
}

/* Phones: bottom tab bar + More sheet (hamburger removed). */
@media (max-width:760px){
	body{
		padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 8px);
	}
	.site-menu{
		display:none !important;
	}

	.app-tabbar{
		position:fixed;
		left:0; right:0; bottom:0;
		z-index:1200;
		display:grid;
		grid-template-columns:repeat(6, 1fr);
		gap:0;
		height:calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
		padding:6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
		box-sizing:border-box;
		background:rgba(3,18,40,0.94);
		backdrop-filter:blur(16px);
		border-top:1px solid var(--border);
		box-shadow:0 -10px 30px rgba(0,0,0,0.35);
	}
	.app-tab{
		appearance:none;
		border:0;
		background:transparent;
		color:var(--muted);
		text-decoration:none;
		display:flex;
		flex-direction:column;
		align-items:center;
		justify-content:center;
		gap:3px;
		font:inherit;
		font-size:0.68rem;
		font-weight:800;
		letter-spacing:0.02em;
		padding:4px 2px;
		border-radius:12px;
		cursor:pointer;
		-webkit-tap-highlight-color:transparent;
	}
	.app-tab svg{
		width:22px;
		height:22px;
		display:block;
		stroke:currentColor;
		fill:none;
		stroke-width:1.9;
		stroke-linecap:round;
		stroke-linejoin:round;
	}
	.app-tab.is-active{
		color:var(--accent);
	}
	.app-tab.is-active svg{
		filter:drop-shadow(0 0 6px rgba(56,225,255,0.45));
	}

	.app-more-backdrop{
		position:fixed;
		inset:0;
		z-index:1210;
		background:rgba(0,0,0,0.55);
		opacity:0;
		pointer-events:none;
		transition:opacity .2s ease;
	}
	.app-more-backdrop.is-open{
		opacity:1;
		pointer-events:auto;
	}

	.app-more{
		position:fixed;
		left:0; right:0; bottom:0;
		z-index:1220;
		max-height:min(78vh, 640px);
		padding:10px 12px calc(14px + env(safe-area-inset-bottom, 0px));
		border-radius:18px 18px 0 0;
		background:linear-gradient(180deg, #07315f, #041e42 40%, #020b1a);
		border:1px solid var(--border);
		border-bottom:0;
		box-shadow:0 -20px 50px rgba(0,0,0,0.5);
		transform:translateY(110%);
		transition:transform .24s ease;
		display:flex;
		flex-direction:column;
		gap:8px;
	}
	.app-more.is-open{
		transform:translateY(0);
	}
	.app-more-handle{
		width:42px;
		height:4px;
		border-radius:999px;
		background:rgba(169,198,232,0.35);
		margin:2px auto 6px;
	}
	.app-more-head{
		display:flex;
		align-items:center;
		justify-content:space-between;
		gap:12px;
		padding:0 4px 4px;
	}
	.app-more-head strong{
		font-size:1rem;
		letter-spacing:0.04em;
		text-transform:uppercase;
	}
	.app-more-close{
		appearance:none;
		border:1px solid var(--border);
		background:#031630;
		color:var(--accent);
		font:inherit;
		font-weight:800;
		font-size:0.82rem;
		padding:8px 12px;
		border-radius:999px;
		cursor:pointer;
	}
	.app-more-list{
		overflow-y:auto;
		-webkit-overflow-scrolling:touch;
		display:flex;
		flex-direction:column;
		gap:4px;
		padding-bottom:8px;
	}
	.app-more-list a{
		display:block;
		padding:14px 14px;
		border-radius:12px;
		color:var(--fg);
		text-decoration:none;
		font-weight:700;
		font-size:1rem;
		background:rgba(3,22,48,0.7);
		border:1px solid transparent;
	}
	.app-more-list a:hover,
	.app-more-list a:active{
		border-color:var(--accent);
		background:rgba(56,225,255,0.1);
		color:var(--accent);
	}
	.app-more-list a.is-current{
		background:var(--accent);
		color:#03203f;
		border-color:var(--accent);
	}
	.app-more-group{
		font-size:0.7rem;
		font-weight:800;
		letter-spacing:0.12em;
		text-transform:uppercase;
		color:var(--muted);
		padding:12px 8px 4px;
	}
}

.weather-more{
	display:block; text-align:center; margin-top:16px; padding-top:14px;
	border-top:1px solid var(--border); color:var(--accent);
	font-weight:700; font-size:14px; text-decoration:none;
}
.weather-more:hover{ text-decoration:underline; }

/* Fixed EN / ID language switcher (site-wide) */
.language-switcher-fixed{
	position:fixed; top:20px; right:20px; z-index:1100;
	display:flex; gap:8px;
}
.language-switcher-fixed .lang-btn{
	padding:10px 16px; border-radius:8px;
	background:rgba(0,0,0,0.8); color:var(--fg); font-weight:700;
	border:1px solid rgba(255,255,255,0.3); cursor:pointer;
	transition:all 0.25s ease; backdrop-filter:blur(10px);
	text-decoration:none; display:inline-block; font:inherit; font-size:14px; line-height:1;
}
.language-switcher-fixed .lang-btn:hover{
	background:rgba(56,225,255,0.2); color:var(--accent); border-color:var(--accent);
}
.language-switcher-fixed .lang-btn.active{
	background:var(--accent); color:#001018; border-color:var(--accent);
}
@media (max-width:760px){
	.language-switcher-fixed{ top:10px; right:10px; }
	.language-switcher-fixed .lang-btn{ padding:7px 10px; font-size:13px; }
}
