/* The feedback board (reclinetv.com/feedback), drawn like the iPhone app's own Feedback & ideas page: neutral dark
   glass over a soft backdrop, iOS's segmented control, glass capsules, and the same rows, tags and pills. */
:root {
	--bg: #141414;
	--text: #f4f4f6;
	--muted: #bababa;
	--glass: rgba(255, 255, 255, 0.08);
	--glass-2: rgba(255, 255, 255, 0.12);
	--field: rgba(255, 255, 255, 0.06);
	--rim: rgba(255, 255, 255, 0.16);
	--line: rgba(255, 255, 255, 0.12);
	--amber: #f5b860;
	--blue: #5b8def;
	--green: #34c759;
	--red: #ff6b61;
	--accent2: #ff5a36;
	color-scheme: dark;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
	margin: 0; min-height: 100vh; color: var(--text); font: 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
	/* The app's ambient backdrop: a soft wash of colour fading into the dark. */
	background:
		radial-gradient(120% 60% at 15% -10%, rgba(120, 72, 40, 0.35), transparent 60%),
		radial-gradient(90% 50% at 100% 0%, rgba(70, 60, 110, 0.28), transparent 60%),
		var(--bg);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--amber); }
.muted { color: var(--muted); }
.error { color: var(--accent2); min-height: 1em; margin: 6px 0 0; font-size: 13px; }

/* Glass: a light fill and a thin rim, like the app's glassShape. */
.idea, .road-card { background: var(--glass); border: 0.5px solid var(--rim); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); }

/* The page: a 760-wide column, a big title with a close button, a note under it. */
main { max-width: 760px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 16px calc(110px + env(safe-area-inset-bottom)); display: grid; gap: 16px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.close {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; text-decoration: none;
	color: var(--text); font-size: 16px; font-weight: 600; background: var(--glass-2); border: 0.5px solid var(--rim);
}
.note { margin: -8px 0 0; padding: 0 2px; font-size: 13px; color: var(--muted); }
.gate { color: var(--muted); }

/* iOS's segmented control (Posts / Roadmap, and Idea / Bug when posting). */
.views, .seg { display: flex; gap: 0; padding: 2px; border-radius: 9px; background: rgba(118, 118, 128, 0.24); }
.views button, .seg-btn {
	flex: 1; border: 0; border-radius: 7px; padding: 6px 10px; font: inherit; font-size: 13px; font-weight: 600;
	color: var(--text); background: transparent; cursor: pointer;
}
.views button[aria-selected="true"], .seg-btn.on { background: #636366; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04); }

/* Filters: glass capsules with a small chevron, scrolling sideways when they don't fit. */
.toolbar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.toolbar::-webkit-scrollbar { display: none; }
select {
	-webkit-appearance: none; appearance: none; flex: 0 0 auto; font: inherit; font-size: 13px; font-weight: 600; color: var(--text);
	padding: 8px 32px 8px 14px; border-radius: 999px; border: 0.5px solid var(--rim); cursor: pointer;
	background: var(--glass-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f4f4f6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center;
}
select option { background: #2c2c2e; color: var(--text); }
input, textarea { font: inherit; color: var(--text); background: var(--field); border: 0; border-radius: 14px; padding: 12px; width: 100%; }
input::placeholder, textarea::placeholder { color: rgba(235, 235, 245, 0.45); }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(255, 255, 255, 0.35); outline-offset: 1px; }
textarea { resize: vertical; }

/* A post: the vote square, tag and title, who and when, platforms, the status in the corner. */
.list { display: grid; gap: 10px; }
.idea { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: start; padding: 14px; border-radius: 20px; }
.idea-main { min-width: 0; cursor: pointer; display: grid; gap: 5px; }
.idea-main h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.by { font-size: 11px; color: var(--muted); }
.vote {
	display: grid; place-content: center; justify-items: center; gap: 0; width: 50px; height: 50px; padding: 0; border-radius: 14px;
	border: 0.5px solid rgba(255, 255, 255, 0.14); background: var(--glass); color: var(--text); cursor: pointer; font: inherit;
}
.vote .arrow { font-size: 10px; line-height: 1; }
.vote b { font-size: 14px; font-weight: 700; line-height: 1.2; }
.vote.on { background: var(--amber); border-color: transparent; color: #000; }
.vote:disabled { opacity: 0.6; cursor: default; }

/* Idea / Bug, status pills and platform tags: the app's sizes and colours. */
.kind { display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: 9px; font-weight: 800; line-height: 1.4; vertical-align: 2px; margin-right: 4px; }
.kind.k-idea { background: rgba(245, 184, 96, 0.2); color: var(--amber); }
.kind.k-bug { background: rgba(255, 107, 97, 0.2); color: #ff9c95; }
.status { align-self: start; justify-self: end; padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; color: var(--muted); background: rgba(186, 186, 186, 0.18); }
.status.planned { color: var(--blue); background: rgba(91, 141, 239, 0.18); }
.status.in_progress { color: var(--amber); background: rgba(245, 184, 96, 0.18); }
.status.done { color: var(--green); background: rgba(52, 199, 89, 0.18); }
.status.declined { color: var(--red); background: rgba(255, 107, 97, 0.18); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.ptag { padding: 3px 8px; border-radius: 999px; font-size: 9px; font-weight: 600; color: #a9c3ff; background: rgba(91, 141, 239, 0.18); }

/* New post: a light capsule floating bottom-right, as in the app. */
.fab {
	position: fixed; right: max(16px, calc(50vw - 380px + 16px)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 30;
	border: 0; border-radius: 999px; padding: 14px 20px; font: inherit; font-size: 15px; font-weight: 600; color: #000; background: var(--text);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5); cursor: pointer;
}
body:has(#detail) .fab, body:has(#compose:not([hidden])) .fab { display: none; }

/* Roadmap: one column of sections, a coloured dot, the name and a count, then the cards. */
.roadmap { display: grid; gap: 22px; }
.road-col { display: grid; gap: 10px; }
.road-col h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.road-col h2::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.road-col:nth-child(1) h2::before { background: var(--blue); }
.road-col:nth-child(2) h2::before { background: var(--amber); }
.road-col:nth-child(3) h2::before { background: var(--green); }
.road-col .count { font-size: 11px; font-weight: 600; color: var(--muted); }
.road-items { display: grid; gap: 10px; }
.road-card { padding: 14px; border-radius: 18px; display: grid; gap: 6px; cursor: pointer; }
.road-top { display: flex; align-items: center; justify-content: space-between; }
.road-votes { font-size: 11px; font-weight: 700; color: var(--muted); }
.road-title { margin: 0; font-size: 14px; font-weight: 600; }
.road-reply { margin: 0; font-size: 11px; color: var(--muted); white-space: pre-line; }
.road-empty, .empty { margin: 0; padding: 0 2px; font-size: 13px; color: var(--muted); }

/* Sheets (a post's details, a new post): a full page on phones, a centred sheet on wider screens. */
.scrim { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, 0.55); }
.dialog {
	position: relative; width: min(760px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 22px 16px 24px; border-radius: 26px;
	background: rgba(30, 30, 32, 0.92); border: 0.5px solid var(--rim); -webkit-backdrop-filter: blur(30px) saturate(150%); backdrop-filter: blur(30px) saturate(150%);
	display: grid; gap: 16px; align-content: start;
}
.dialog h2 { margin: 0; font-size: 26px; font-weight: 800; }
.dialog label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field-label { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.dialog .actions { display: flex; justify-content: flex-end; gap: 8px; }
.detail-close {
	position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center;
	font-size: 16px; background: var(--glass-2); border: 0.5px solid var(--rim); color: var(--text); cursor: pointer;
}
.detail-head { display: flex; gap: 14px; align-items: flex-start; margin-right: 52px; }
.detail-head h2 { font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.detail-meta .status { justify-self: start; }
.idea-body, .dialog > p.muted { margin: 0; padding: 16px; border-radius: 22px; background: var(--glass); border: 0.5px solid var(--rim); white-space: pre-line; font-size: 14px; }
.reply { padding: 14px 14px 14px 17px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 3px 0 0 var(--amber); }
.reply b { color: var(--amber); font-size: 12px; }
.reply p { margin: 4px 0 0; white-space: pre-line; font-size: 14px; }

/* Buttons: glass capsules; the owner's card. */
.btn { border: 0.5px solid var(--rim); background: var(--glass-2); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.btn:hover { background: rgba(255, 255, 255, 0.16); }
.btn.primary { background: var(--text); color: #000; border-color: transparent; }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn.danger { color: var(--accent2); }
.admin-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px; border-radius: 22px; background: var(--glass); border: 0.5px solid var(--rim); }
.admin-box::before { content: "Owner"; flex-basis: 100%; font-size: 12px; font-weight: 700; color: var(--muted); }
.admin-box textarea { flex-basis: 100%; }
.chips-label { flex-basis: 100%; margin: 4px 0 -2px; font-size: 12px; font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; }
.chip { border: 0; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--glass); cursor: pointer; }
.chip.on { background: var(--blue); color: #fff; }

/* Comments: the thread, the Recline badge, and a field with a round send button. */
.comments { display: grid; gap: 10px; }
.comments-h { margin: 0; font-size: 16px; font-weight: 700; }
.comment { position: relative; padding: 12px; border-radius: 14px; background: var(--field); }
.comment.official { box-shadow: inset 3px 0 0 var(--amber); padding-left: 15px; }
.comment-head { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.comment-head b { font-size: 13px; color: var(--text); }
.comment-head .badge { padding: 2px 6px; border-radius: 999px; font-size: 8px; font-weight: 800; background: var(--amber); color: #000; }
.comment p { margin: 0; white-space: pre-line; font-size: 14px; }
.comment-del { position: absolute; top: 10px; right: 12px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
.comment-add { display: flex; align-items: flex-end; gap: 10px; }
.comment-add textarea { flex: 1; min-height: 44px; }
.comment-add .btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 0; flex: none; }
.comment-add .btn::before { content: "\2191"; font-size: 18px; font-weight: 700; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); translate: -50% 0; padding: 10px 18px; border-radius: 999px; background: var(--text); color: #000; font-size: 14px; font-weight: 600; z-index: 60; }

/* Phones: sheets rise from the bottom and fill the screen, like the app's pages. */
@media (max-width: 600px) {
	.scrim { padding: 0; align-items: end; }
	.dialog { width: 100%; max-height: calc(100vh - 12px); border-radius: 22px 22px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-transparency: reduce) {
	.idea, .road-card, .dialog { -webkit-backdrop-filter: none; backdrop-filter: none; }
	.dialog { background: #1e1e20; }
}
