/* NDH Friends — dashboard card styling.
   Reuses the theme's existing .content-card / .ndh-btn / .ndh-dashboard-card__kicker
   / .lwa-quiz-notice classes and CSS custom properties (--ndh-navy, --ndh-green,
   --ndh-light, --ndh-text, --ndh-muted, --ndh-radius) rather than redefining them,
   so this card matches the rest of the dashboard automatically if the palette
   ever changes. */

.ndh-friends-card h2 {
	margin: 0 0 18px;
}

.ndh-friends-username-box {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px 12px;
	padding: 14px 18px;
	margin-bottom: 20px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(91, 212, 109, 0.14) 0%, rgba(15, 42, 68, 0.06) 100%);
	border: 1px solid rgba(91, 212, 109, 0.3);
}

.ndh-friends-username-box span {
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ndh-muted);
}

.ndh-friends-username-box strong {
	font-size: 1.15rem;
	color: var(--ndh-navy);
}

.ndh-friends-username-box p {
	flex-basis: 100%;
	margin: 2px 0 0;
	font-size: 0.88rem;
	color: var(--ndh-muted);
}

/* v1.1.0 — inline nickname + pause-requests controls inside the username box. */
.ndh-friends-username-box .ndh-friends-form--inline {
	flex-basis: 100%;
	align-items: center;
	margin-top: 6px;
}

.ndh-friends-username-box .ndh-friends-form--inline label {
	flex-basis: 100%;
	font-size: 0.82rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	color: var(--ndh-muted);
}

.ndh-friends-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	font-weight: 400;
	color: var(--ndh-text);
	cursor: pointer;
	flex-basis: auto;
	text-transform: none;
	letter-spacing: normal;
}

.ndh-friends-toggle input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--ndh-green);
}

.ndh-friends-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 20px;
}

@media (max-width: 780px) {
	.ndh-friends-grid {
		grid-template-columns: 1fr;
	}
}

.ndh-friends-col {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ndh-friends-panel {
	border: 1px solid rgba(15, 42, 68, 0.08);
	border-radius: 16px;
	padding: 16px 18px;
	background: var(--ndh-light);
}

.ndh-friends-panel--list {
	height: 100%;
}

.ndh-friends-panel h3 {
	margin: 0 0 6px;
	font-size: 1rem;
	color: var(--ndh-navy);
}

.ndh-friends-panel__hint {
	margin: 0 0 12px;
	font-size: 0.85rem;
	color: var(--ndh-muted);
}

.ndh-friends-form {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.ndh-friends-form input[type="text"],
.ndh-friends-form input[type="email"] {
	flex: 1 1 180px;
	min-width: 0;
	padding: 0 14px;
	min-height: 44px;
	border-radius: 12px;
	border: 1px solid rgba(15, 42, 68, 0.16);
	font-size: 0.95rem;
	background: #fff;
}

.ndh-friends-empty {
	color: var(--ndh-muted);
	font-size: 0.9rem;
}

.ndh-friends-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ndh-friends-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid rgba(15, 42, 68, 0.08);
	flex-wrap: wrap;
}

.ndh-friends-row__name {
	font-weight: 600;
	color: var(--ndh-text);
}

.ndh-friends-row__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.ndh-friends-row__actions form {
	display: inline-flex;
}

.ndh-friends-link-btn {
	background: none;
	border: none;
	padding: 0;
	color: var(--ndh-muted);
	font-size: 0.85rem;
	text-decoration: underline;
	cursor: pointer;
}

.ndh-friends-link-btn:hover {
	color: var(--ndh-navy);
}
