/*
 * F.A.I.T.H. Team Chat — styles for the invite sign-up and the coach's
 * "My teams" screen. Kept in its own file so the main stylesheet stays put.
 * Loaded in the head next to app.css, because the invite sign-up screen needs
 * it before any console is lazily loaded.
 */

/* ---------- a quieter second button, next to .ftc-btn ---------- */

.ftc-btn-quiet {
	background: var(--surface);
	color: var(--brand-txt);
	border: 1px solid var(--line-7);
}
.ftc-btn-quiet:hover { background: var(--fill-3); }

/* ---------- player / parent toggle on the sign-up form ---------- */

.ftc-seg { display: flex; gap: 8px; margin: 4px 0 6px; }
.ftc-segb {
	flex: 1 1 0;
	padding: 11px 10px;
	font: inherit;
	font-weight: 600;
	color: var(--ink-13);
	background: var(--surface);
	border: 1px solid var(--line-7);
	border-radius: 10px;
	cursor: pointer;
}
.ftc-segb.on {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--on-solid);
}

/* ---------- "you have been invited" banner ---------- */

.ftc-invite {
	background: var(--fill-2);
	border: 1px solid var(--line-5);
	border-left: 4px solid var(--navy);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 14px;
}
.ftc-invite-team { font-size: 17px; font-weight: 700; color: var(--brand-txt); }
.ftc-invite-by { font-size: 14px; color: var(--ink-8); margin-top: 3px; }

/* ---------- the join-this-team prompt for someone already signed in ---------- */

.ftc-ov-card.sm { max-width: 420px; }
.ftc-ov-card.sm .ftc-invite-team { margin-bottom: 6px; }

/*
 * ⚠️ The sidebar-link rules that used to live here (.ftc-coachlink, .ftc-hoopslink)
 * are gone. Matt, 6 Sep 2026: the sidebar footer became a ▾ dropdown beside the
 * account name, and every one of those links is now a .ftc-mm-item in app.css.
 * The reason the stat-app links are anchors and not buttons — a stat app is a
 * separate installable app at its own URL, and has to long-press and open-in-a-tab
 * like a real link — moved with them, into the comment inside sideMenu().
 */

/* ---------- My teams: tabs ---------- */

.ftc-co-tabs {
	display: flex;
	gap: 6px;
	padding: 12px 14px 0;
	flex-wrap: wrap;
}
.ftc-co-tab {
	padding: 8px 13px;
	font: inherit;
	font-weight: 600;
	color: var(--ink-13);
	background: var(--fill-3);
	border: 1px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.ftc-co-tab.on { background: var(--navy); color: var(--on-solid); }
.ftc-co-tab .ftc-badge { position: static; }

/* ---------- My teams: cards ---------- */

.ftc-co-note {
	margin: 12px 14px 4px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--ink-7);
}

.ftc-co-card {
	margin: 12px 14px;
	padding: 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: 0 1px 2px var(--shade-6);
}
.ftc-co-card.dim { opacity: .6; }

.ftc-co-head { display: flex; align-items: flex-start; gap: 11px; }
.ftc-co-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ftc-co-who strong { font-size: 16px; color: var(--ink-16); }
.ftc-co-who .ftc-dim,
.ftc-co-ptxt .ftc-dim { font-size: 13px; color: var(--ink-6); }

.ftc-co-quote {
	margin: 10px 0 0;
	padding: 8px 11px;
	background: var(--fill-1);
	border-radius: 8px;
	font-size: 14px;
	color: var(--ink-9);
}

.ftc-co-lab {
	margin: 14px 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ink-5);
}
.ftc-co-lab.pad { margin: 18px 14px 0; }

.ftc-co-hint {
	margin: 7px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--ink-5);
}

.ftc-co-picks { display: flex; flex-direction: column; gap: 6px; }
.ftc-co-one { font-weight: 600; color: var(--ink-16); }
.ftc-co-check { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.ftc-co-check input { width: 18px; height: 18px; }

.ftc-co-seg { display: flex; gap: 8px; }
.ftc-co-segb {
	flex: 1 1 0;
	padding: 10px;
	font: inherit;
	font-weight: 600;
	color: var(--ink-13);
	background: var(--surface);
	border: 1px solid var(--line-7);
	border-radius: 10px;
	cursor: pointer;
}
.ftc-co-segb.on { background: var(--navy); border-color: var(--navy); color: var(--on-solid); }

.ftc-co-btns { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.ftc-co-say { margin-top: 9px; font-size: 14px; }
.ftc-co-say.err { color: var(--bad-txt); }
.ftc-co-say.good { color: var(--ok-txt); }

/* ---------- My teams: a freshly made invite link ---------- */

.ftc-co-fresh {
	margin-top: 14px;
	padding: 13px;
	background: var(--ok-bg-1);
	border: 1px solid var(--ok-bg-4);
	border-radius: 10px;
}
.ftc-co-fresh .ftc-co-lab { margin-top: 0; }
.ftc-co-url {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 11px;
	font: inherit;
	font-size: 14px;
	color: var(--ink-16);
	background: var(--surface);
	border: 1px solid var(--line-7);
	border-radius: 8px;
}

/* ---------- My teams: form controls ---------- */

.ftc-co-sel {
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 9px;
	padding: 11px;
	font: inherit;
	font-size: 15px;
	color: var(--ink-16);
	background: var(--surface);
	border: 1px solid var(--line-7);
	border-radius: 10px;
}
.ftc-co-inline { display: flex; gap: 9px; flex-wrap: wrap; }
.ftc-co-inline .ftc-co-sel.sm { flex: 1 1 180px; width: auto; }

/*
 * The two score boxes on the Scores tab.
 *
 * ⚠️ They are labelled and side by side on purpose. "Us" and "Them" beside two bare
 * boxes is the only arrangement where a coach cannot enter the score backwards, and
 * getting it backwards turns a win into a loss on the ticker in front of the league.
 * The boxes stay side by side at every width — the whole row is 200px of content —
 * so the pairing is never broken across a wrap.
 */
.ftc-co-score {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ink-5);
}
.ftc-co-score input {
	width: 100%;
	box-sizing: border-box;
	padding: 11px;
	font: inherit;
	font-size: 20px;
	font-weight: 700;
	text-align: center;
	color: var(--ink-16);
	background: var(--surface);
	border: 1px solid var(--line-7);
	border-radius: 10px;
}

/* ---------- My teams: rosters ---------- */

.ftc-co-team {
	font-size: 16px;
	font-weight: 700;
	color: var(--brand-txt);
	margin-bottom: 10px;
}
.ftc-co-person {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 8px 0;
	border-top: 1px solid var(--line-2);
}
.ftc-co-person:first-of-type { border-top: 0; }
.ftc-co-ptxt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.ftc-co-pname {
	font-weight: 600;
	color: var(--ink-16);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ftc-co-x {
	flex: 0 0 auto;
	padding: 7px 12px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--bad-txt);
	background: var(--surface);
	border: 1px solid var(--bad-bg-4);
	border-radius: 8px;
	cursor: pointer;
}
.ftc-co-x:hover { background: var(--bad-bg-1); }
.ftc-co-x:disabled { opacity: .5; cursor: default; }

/* Player / parent on this one team, on the roster row. */
.ftc-co-rolesel {
	flex: 0 0 auto;
	padding: 6px 8px;
	font: inherit;
	font-size: 13px;
	color: var(--ink-16);
	background: var(--surface);
	border: 1px solid var(--line-7);
	border-radius: 8px;
}
.ftc-co-rolesel:disabled { opacity: .5; }

/*
 * Hoops Live: who keeps the book for this team.
 *
 * ⚠️ This started life as a bare <input type=checkbox> with a 12px grey "Stats"
 * label, wedged into the roster row between the role picker and Remove. A native
 * checkbox renders at 13x13 CSS px, so on a phone it was a grey speck next to a
 * bold red button — Matt's report was literally "Where is the tick mark". A
 * control that performs a grant has to look like one: a pill on its OWN LINE under
 * the person's name, with a real 18px box that shows a tick, and a 34px minimum
 * height so it is actually thumb-sized. Moving it out of the row also gave the
 * name back the ~55px that was truncating it to "Deann...".
 */
.ftc-co-stat {
	align-self: flex-start;
	margin-top: 6px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	padding: 6px 14px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-13);
	background: var(--surface);
	border: 1px solid var(--line-7);
	border-radius: 999px;
	cursor: pointer;
}
.ftc-co-stat .box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border: 2px solid var(--line-10);
	border-radius: 5px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	color: transparent;
}
.ftc-co-stat.on { color: var(--on-solid); background: var(--ok); border-color: var(--ok); }
.ftc-co-stat.on .box { color: var(--ok-txt); background: var(--surface); border-color: var(--surface); }
.ftc-co-stat:disabled { opacity: .55; cursor: default; }

/* A room checkbox with its per-team role beside it, in the admin console. */
.ftc-ad-picker-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 2px 0;
}
.ftc-ad-picker-row .ftc-check { flex: 1 1 auto; min-width: 0; margin: 0; }
.ftc-ad-rolesel {
	flex: 0 0 auto;
	width: 168px;
	padding: 5px 7px;
	font: inherit;
	font-size: 13px;
	color: var(--ink-16);
	background: var(--surface);
	border: 1px solid var(--line-7);
	border-radius: 7px;
}

@media (max-width: 560px) {
	.ftc-co-card { margin: 10px; padding: 12px; }
	.ftc-co-note { margin: 10px 10px 2px; }
	.ftc-co-tabs { padding: 10px 10px 0; }
	.ftc-co-btns .ftc-btn { flex: 1 1 auto; }
	.ftc-ad-picker-row { flex-wrap: wrap; gap: 4px; }
	.ftc-ad-rolesel { width: 100%; }
}
