:root {
	color-scheme: dark;
	--page: #0b1020;
	--line: rgba(173, 190, 222, .13);
	--muted: #9aa8c2;
	--text: #f2f5ff;
	--accent: #8b9cff;
	--mint: #75e0c1;
}

* { box-sizing: border-box; }

body {
	min-height: 100vh;
	margin: 0;
	color: var(--text);
	background:
		radial-gradient(ellipse at 12% 0%, rgba(81, 100, 216, .20), transparent 38rem),
		radial-gradient(ellipse at 100% 40%, rgba(37, 146, 139, .11), transparent 34rem),
		var(--page);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

.site-header {
	position: sticky;
	z-index: 10;
	top: 0;
	border-bottom: 1px solid var(--line);
	background: rgba(11, 16, 32, .82);
	backdrop-filter: blur(18px);
}

.navbar { min-height: 76px; }

.brand-mark {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 1px solid rgba(139, 156, 255, .35);
	border-radius: 12px;
	color: #c1caff;
	background: linear-gradient(145deg, rgba(139, 156, 255, .25), rgba(117, 224, 193, .12));
}

.brand-name { font-weight: 700; letter-spacing: -.025em; }
.nav-link { color: #b5bfd3; font-size: .94rem; transition: color .2s ease; }
.nav-link:hover, .nav-link:focus-visible { color: #fff; }

.nav-apps-toggle {
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: .58rem 1rem;
	color: #dce2f2;
	font-size: .92rem;
	font-weight: 600;
}

.nav-apps-toggle:hover, .nav-apps-toggle:focus-visible, .nav-apps-toggle.show {
	border-color: rgba(139, 156, 255, .45);
	color: #fff;
	background: rgba(139, 156, 255, .1);
}

.nav-apps-menu {
	min-width: 250px;
	margin-top: .7rem !important;
	padding: .5rem;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #121a2d;
	box-shadow: 0 18px 45px rgba(0, 0, 0, .38);
}

.nav-apps-menu .dropdown-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .7rem .8rem;
	border-radius: 9px;
	color: #e4e9f6;
	font-size: .92rem;
}

.nav-apps-menu .dropdown-item:hover, .nav-apps-menu .dropdown-item:focus { color: #fff; background: rgba(139, 156, 255, .13); }
.nav-apps-menu .dropdown-item.disabled { color: #8894aa; }
.nav-status { color: #929db2; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

main { padding: clamp(4rem, 8vw, 6.5rem) 0 5rem; }

.section-heading { margin-bottom: 1.5rem; }
.section-heading h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 650; letter-spacing: -.045em; }

.app-card {
	position: relative;
	display: flex;
	min-height: 270px;
	flex-direction: column;
	overflow: hidden;
	padding: 1.5rem;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: linear-gradient(145deg, rgba(24, 34, 58, .94), rgba(15, 22, 39, .9));
	box-shadow: 0 22px 60px rgba(0, 0, 0, .18);
	transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.app-card::after {
	position: absolute;
	top: -85px;
	right: -50px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(139, 156, 255, .17), transparent 70%);
	content: "";
	pointer-events: none;
}

.app-card:hover, .app-card:focus-visible {
	transform: translateY(-5px);
	border-color: rgba(139, 156, 255, .43);
	box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
	outline: none;
}

.app-icon {
	display: grid;
	width: 54px;
	height: 54px;
	place-items: center;
	border: 1px solid rgba(139, 156, 255, .22);
	border-radius: 16px;
	color: #bac4ff;
	background: rgba(139, 156, 255, .12);
}

.app-card h3 { margin: 1.4rem 0 .45rem; font-size: 1.2rem; font-weight: 650; letter-spacing: -.025em; }
.app-card p { max-width: 400px; margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.65; }
.app-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1.5rem; }
.app-category { color: #aab5cb; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.launch-arrow {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: #dce2ff;
	background: rgba(255, 255, 255, .035);
}

.app-card-placeholder {
	display: flex;
	min-height: 270px;
	flex-direction: column;
	padding: 1.5rem;
	border-style: dashed;
	background: rgba(15, 22, 39, .52);
}

.app-card-placeholder::after { opacity: .4; }
.app-card-placeholder .app-icon { color: #9ba8bd; border-color: var(--line); background: rgba(255, 255, 255, .035); }
.app-card-placeholder h3 { margin-top: 1.4rem; }
.app-card-placeholder p { color: #8793aa; }
.planned-tag { color: #aab5cb; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.upload-panel {
	padding: 1.5rem;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: linear-gradient(145deg, rgba(24, 34, 58, .78), rgba(15, 22, 39, .76));
}

.upload-panel p { color: var(--muted); }
.upload-status { min-height: 1.5em; color: var(--muted); }

.friendsgiving-page .upload-panel { padding: clamp(1rem, 3vw, 1.5rem); }
.friendsgiving-schedule-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
	gap: .75rem;
}
.friendsgiving-schedule-item {
	padding: .9rem 1rem;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(11, 16, 32, .35);
}
.friendsgiving-schedule-item dt {
	margin-bottom: .35rem;
	color: var(--muted);
	font-size: .75rem;
	font-weight: 650;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.friendsgiving-schedule-item dd { margin: 0; font-size: 1.15rem; font-weight: 600; }
.friend-guest-list { display: grid; gap: .75rem; }
.friend-guest-card {
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(11, 16, 32, .35);
}
.friend-guest-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.friend-guest-heading-copy { min-width: 0; overflow-wrap: anywhere; }
.friend-dish-list { margin-top: .75rem; padding-left: 1.1rem; }
.friend-guest-menu-toggle { display: grid; width: 2rem; height: 2rem; padding: 0; place-items: center; }
.friend-guest-card .dropdown-menu form { margin: 0; }
.friend-guest-card .dropdown-menu { min-width: 10rem; }
.dish-form-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(10rem, .5fr) auto;
	align-items: start;
	gap: .5rem;
	margin-bottom: .5rem;
}
.dish-form-row .form-control, .dish-form-row .form-select { width: 100%; min-width: 0; }
.dish-actions-field { padding-top: .125rem; }
.dish-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.dish-row-actions .btn { min-width: 2rem; }

footer { padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); color: #78859f; font-size: .82rem; }

@media (max-width: 575.98px) {
	main { padding-top: 2rem; }
	.friend-guest-card { padding: .875rem; }
	.dish-form-row { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
