/* Sunday Hoops — mobile-first styles. Desktop is a progressive enhancement. */

.sh-game-page,
.sh-join-flow {
	max-width: 480px;
	margin: 0 auto;
	padding: 12px;
	font-size: 16px;
	line-height: 1.4;
}

.sh-game-header {
	text-align: center;
	margin-bottom: 16px;
}

.sh-game-title {
	margin: 0 0 6px;
	font-size: 1.4em;
}

.sh-game-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	font-size: 0.9em;
	color: #555;
	margin-bottom: 8px;
}

.sh-status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.85em;
	font-weight: 600;
	background: #eee;
}

.sh-status-open { background: #dcf5e0; color: #1a7431; }
.sh-status-closed { background: #ffe6cc; color: #9a5a00; }
.sh-status-completed { background: #e0e0e0; color: #555; }

.sh-join-button {
	display: block;
	text-align: center;
	background: #d9541f;
	color: #fff;
	font-size: 1.2em;
	font-weight: 700;
	padding: 16px;
	border-radius: 10px;
	text-decoration: none;
	margin-bottom: 24px;
}

.sh-join-button.sh-join-disabled {
	background: #bbb;
}

.sh-court {
	margin-bottom: 20px;
}

.sh-court-title {
	background: #222;
	color: #fff;
	padding: 8px 12px;
	margin: 0;
	border-radius: 8px 8px 0 0;
	font-size: 1em;
}

.sh-teams {
	display: flex;
	flex-direction: column;
	border: 1px solid #ddd;
	border-top: none;
	border-radius: 0 0 8px 8px;
	overflow: hidden;
}

@media (min-width: 460px) {
	.sh-teams {
		flex-direction: row;
	}
	.sh-team {
		flex: 1;
	}
	.sh-team + .sh-team {
		border-left: 1px solid #ddd;
	}
}

.sh-team {
	padding: 8px 0;
}

.sh-team-title {
	margin: 0 12px 6px;
	font-size: 0.9em;
	color: #777;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.sh-player-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sh-player-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	border-top: 1px solid #eee;
}

.sh-player-row:first-child {
	border-top: none;
}

.sh-player-name {
	font-weight: 500;
}

.sh-empty-slot {
	color: #aaa;
	font-weight: 400;
	font-style: italic;
}

.sh-tag {
	font-size: 0.75em;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
}

.sh-tag-paid {
	background: #1a7431;
	color: #fff;
}

.sh-tag-pending {
	background: #eee;
	color: #888;
}

.sh-section-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #222;
	color: #fff;
	padding: 8px 12px;
	margin: 0;
	border-radius: 8px 8px 0 0;
	font-size: 1em;
}

.sh-cash-count {
	font-weight: 400;
	font-size: 0.85em;
	opacity: 0.85;
}

.sh-next-game,
.sh-cash-list {
	margin-bottom: 20px;
}

.sh-next-game .sh-player-list,
.sh-cash-list .sh-player-list {
	border: 1px solid #ddd;
	border-top: none;
	border-radius: 0 0 8px 8px;
}

.sh-empty-row {
	color: #aaa;
	font-style: italic;
	justify-content: center;
}

.sh-empty {
	text-align: center;
	padding: 40px 20px;
	color: #777;
}

/* Join flow */

.sh-step { display: none; }
.sh-step.sh-active { display: block; }

.sh-choice-row {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
}

.sh-choice-btn {
	flex: 1;
	padding: 20px 10px;
	border: 2px solid #ddd;
	border-radius: 10px;
	background: #fff;
	font-size: 1.1em;
	font-weight: 600;
	text-align: center;
}

.sh-choice-btn.sh-selected {
	border-color: #d9541f;
	background: #fff4ee;
}

.sh-slot-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 6px;
	margin-bottom: 12px;
}

.sh-slot-cell {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 0.85em;
	background: #fff;
}

.sh-slot-cell.sh-taken {
	background: #eee;
	color: #aaa;
}

.sh-slot-cell.sh-available {
	background: #dcf5e0;
	cursor: pointer;
}

.sh-slot-cell.sh-picked {
	background: #d9541f;
	color: #fff;
	border-color: #d9541f;
}

.sh-form-group {
	margin-bottom: 16px;
}

.sh-form-group label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.sh-form-group input[type="text"],
.sh-form-group input[type="file"] {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 8px;
	box-sizing: border-box;
	font-size: 1em;
}

.sh-bank-account {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f5f5f5;
	padding: 12px;
	border-radius: 8px;
	margin-bottom: 12px;
}

.sh-bank-account-number {
	font-family: monospace;
	font-size: 1.1em;
	letter-spacing: 0.05em;
}

.sh-copy-btn {
	background: #222;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 0.9em;
}

.sh-next-btn,
.sh-submit-btn {
	display: block;
	width: 100%;
	padding: 16px;
	background: #d9541f;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 1.1em;
	font-weight: 700;
}

.sh-next-btn:disabled,
.sh-submit-btn:disabled {
	background: #bbb;
}

.sh-back-link {
	display: inline-block;
	margin-bottom: 12px;
	color: #777;
	text-decoration: none;
}

.sh-error {
	background: #ffe0e0;
	color: #a00;
	padding: 10px 12px;
	border-radius: 8px;
	margin-bottom: 12px;
}

.sh-team-picker {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.sh-team-tab {
	padding: 8px 14px;
	border: 1px solid #ccc;
	border-radius: 999px;
	font-size: 0.9em;
	background: #fff;
}

.sh-team-tab.sh-selected {
	background: #222;
	color: #fff;
	border-color: #222;
}

.sh-teammate-row {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
}

.sh-teammate-row input {
	flex: 1;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 8px;
}
