/**
 * Snap Channels — Profile Page Styles
 * Branded, full-bleed-friendly form layouts using the MyCityGov palette.
 * Builds on top of accept.css for shared form primitives.
 */

.snapch-profile-shell {
	max-width: 880px;
	margin: 40px auto;
	padding: 0 24px 60px;
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #0F172A;
}

.snapch-profile-head {
	margin-bottom: 24px;
}
.snapch-profile-head h1 {
	font-family: 'DM Serif Display', Georgia, serif !important;
	font-size: 36px !important;
	font-weight: normal !important;
	color: #0B1D3A !important;
	margin: 8px 0 0 !important;
	line-height: 1.3 !important;
	padding-top: 6px;
}
.snapch-profile-back,
.snapch-profile-back:link,
.snapch-profile-back:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px 10px 14px !important;
	background: #fff !important;
	color: #1258C2 !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	border: 1px solid #E5E7EB !important;
	border-radius: 999px;
	box-shadow: 0 1px 3px rgba(15,23,42,0.06);
	transition: background 0.12s, color 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.snapch-profile-back:hover,
.snapch-profile-back:focus-visible {
	background: #1258C2 !important;
	color: #fff !important;
	border-color: #1258C2 !important;
	box-shadow: 0 4px 12px rgba(18,88,194,0.18);
}
.snapch-profile-back svg { display: block; }

.snapch-profile-flash {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
	border-left: 3px solid;
}
.snapch-profile-flash-success {
	background: #ECFDF5;
	border-color: #10B981;
	color: #065F46;
}
.snapch-profile-flash-error {
	background: #FEF2F2;
	border-color: #DC2626;
	color: #991B1B;
}

.snapch-profile-grid {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 32px;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}

.snapch-profile-tabs {
	display: flex;
	flex-direction: column;
	background: #F5F7FB;
	border-right: 1px solid #E5E7EB;
	padding: 14px 0;
	gap: 2px;
}
.snapch-profile-tab,
.snapch-profile-tab:link,
.snapch-profile-tab:visited {
	display: block !important;
	padding: 10px 18px !important;
	color: #475569 !important;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none !important;
	border-left: 3px solid transparent;
	transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.snapch-profile-tab:hover {
	background: rgba(18,88,194,0.04) !important;
	color: #0B1D3A !important;
}
.snapch-profile-tab.is-active {
	background: #fff !important;
	color: #1258C2 !important;
	border-left-color: #1258C2;
	font-weight: 600;
}

.snapch-profile-pane {
	padding: 28px 32px 32px;
}
.snapch-profile-pane h2 {
	font-family: 'DM Serif Display', Georgia, serif !important;
	font-size: 22px !important;
	color: #0B1D3A !important;
	margin: 0 0 6px !important;
	font-weight: normal !important;
	line-height: 1.3 !important;
	padding-top: 6px;
}
.snapch-profile-pane h3 {
	font-size: 15px;
	font-weight: 600;
	color: #0B1D3A;
	margin: 24px 0 8px;
}
.snapch-profile-hint {
	color: #64748B;
	font-size: 13.5px;
	line-height: 1.55;
	margin: 0 0 20px;
}

.snapch-profile-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.snapch-profile-form .snapch-accept-field { margin-bottom: 0; }

/* Avatar block */
.snapch-profile-avatar-row {
	display: flex;
	gap: 24px;
	align-items: center;
	padding: 12px 0;
}
.snapch-profile-avatar-preview {
	width: 96px !important;
	height: 96px !important;
	min-width: 96px !important;
	max-width: 96px !important;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #fff;
	box-shadow: 0 0 0 1px #E5E7EB, 0 4px 12px rgba(15,23,42,0.08);
	background: #F5F7FB;
}
.snapch-profile-avatar-controls {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
	position: relative;
}
.snapch-profile-avatar-controls small {
	color: #94A3B8;
	font-size: 12px;
}

/* Email pane static row */
.snapch-profile-static-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	background: #F5F7FB;
	border-radius: 10px;
	margin-bottom: 4px;
}
.snapch-profile-label {
	font-size: 11.5px;
	font-weight: 600;
	color: #64748B;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.snapch-profile-value {
	font-size: 15px;
	color: #0B1D3A;
	font-weight: 500;
}

.snapch-profile-pending {
	margin-top: 12px;
	padding: 14px 16px;
	background: #FEF3C7;
	border-left: 3px solid #E8A838;
	border-radius: 0 10px 10px 0;
	color: #78350F;
	font-size: 13.5px;
}
.snapch-profile-pending p { margin: 0 0 8px; line-height: 1.5; }
.snapch-profile-pending p:last-child { margin-bottom: 0; }

/* Toggles for notification prefs */
.snapch-profile-toggle {
	display: flex !important;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid #E5E7EB;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.12s, background 0.12s;
}
.snapch-profile-toggle:hover {
	border-color: #1258C2;
	background: rgba(18,88,194,0.02);
}
.snapch-profile-toggle input[type="checkbox"] {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	accent-color: #1258C2;
}
.snapch-profile-toggle-label {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
}
.snapch-profile-toggle-label strong {
	font-size: 14.5px;
	color: #0B1D3A;
	font-weight: 600;
}
.snapch-profile-toggle-label small {
	font-size: 13px;
	color: #64748B;
	line-height: 1.5;
}

/* Muted channels list */
.snapch-profile-muted {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #E5E7EB;
}
.snapch-profile-muted-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.snapch-profile-muted-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: #F5F7FB;
	border-radius: 8px;
	font-size: 14px;
	color: #0B1D3A;
}

/* Link-style button */
.snapch-link-btn,
.snapch-link-btn:link,
.snapch-link-btn:visited {
	background: transparent !important;
	border: none !important;
	color: #1258C2 !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	cursor: pointer !important;
	padding: 4px 0 !important;
	font-family: inherit !important;
	text-decoration: underline !important;
	box-shadow: none !important;
}
.snapch-link-btn:hover { color: #0E47A1 !important; }

/* Secondary button variant */
.snapch-accept-btn-secondary,
.snapch-accept-btn-secondary:link,
.snapch-accept-btn-secondary:visited {
	background: #F5F7FB !important;
	color: #1258C2 !important;
	border: 1px solid #E5E7EB !important;
	cursor: pointer;
	display: inline-block;
	padding: 10px 18px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none !important;
	font-family: inherit;
}
.snapch-accept-btn-secondary:hover,
.snapch-accept-btn-secondary:focus-visible {
	background: rgba(18,88,194,0.08) !important;
	border-color: #1258C2 !important;
	color: #0B1D3A !important;
}

/* Mobile */
@media (max-width: 760px) {
	.snapch-profile-shell { margin: 20px auto; padding: 0 16px 40px; }
	.snapch-profile-head h1 { font-size: 28px !important; }
	.snapch-profile-grid {
		grid-template-columns: 1fr;
	}
	.snapch-profile-tabs {
		flex-direction: row;
		overflow-x: auto;
		padding: 0;
		border-right: none;
		border-bottom: 1px solid #E5E7EB;
	}
	.snapch-profile-tab {
		border-left: none !important;
		border-bottom: 3px solid transparent;
		flex-shrink: 0;
		padding: 14px 18px !important;
	}
	.snapch-profile-tab.is-active {
		border-left: none;
		border-bottom-color: #1258C2;
	}
	.snapch-profile-pane { padding: 22px 20px 26px; }
	.snapch-profile-avatar-row { gap: 16px; }
	.snapch-profile-avatar-preview {
		width: 72px !important;
		height: 72px !important;
		min-width: 72px !important;
		max-width: 72px !important;
	}
}

/* =========================================================================
 * Pause notifications UI (v1.8.2)
 * ======================================================================= */
.snapch-pause-active {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	background: rgba(232, 168, 56, 0.08);
	border: 1px solid rgba(232, 168, 56, 0.32);
	border-radius: 10px;
	margin-bottom: 12px;
}
.snapch-pause-active-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #E8A838;
	flex-shrink: 0;
	animation: snapch-pause-pulse 1.8s ease-in-out infinite;
}
@keyframes snapch-pause-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}
.snapch-pause-active-text { flex: 1; line-height: 1.35; }
.snapch-pause-active-text strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #0B1D3A;
}
.snapch-pause-active-text small {
	font-size: 12.5px;
	color: #6B7280;
}
.snapch-pause-resume-btn,
.snapch-pause-resume-btn:link,
.snapch-pause-resume-btn:visited {
	background: #fff !important;
	color: #1258C2 !important;
	border: 1px solid #1258C2 !important;
	padding: 8px 16px !important;
	border-radius: 8px !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	font-family: inherit !important;
	transition: background 0.12s, color 0.12s !important;
	white-space: nowrap;
}
.snapch-pause-resume-btn:hover,
.snapch-pause-resume-btn:focus-visible {
	background: #1258C2 !important;
	color: #fff !important;
}

.snapch-pause-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-bottom: 8px;
}
.snapch-pause-btn,
.snapch-pause-btn:link,
.snapch-pause-btn:visited {
	display: block !important;
	text-align: left !important;
	background: #F5F7FB !important;
	color: #0B1D3A !important;
	border: 1px solid #E5E7EB !important;
	padding: 14px 16px !important;
	border-radius: 10px !important;
	cursor: pointer !important;
	font-family: inherit !important;
	transition: background 0.12s, border-color 0.12s, transform 0.05s !important;
}
.snapch-pause-btn strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #0B1D3A;
}
.snapch-pause-btn small {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: #6B7280;
	font-weight: 400;
}
.snapch-pause-btn:hover,
.snapch-pause-btn:focus-visible {
	background: rgba(18, 88, 194, 0.06) !important;
	border-color: #1258C2 !important;
}
.snapch-pause-btn:active {
	transform: scale(0.99);
}
.snapch-pause-btn-wide {
	grid-column: span 2;
}
@media (max-width: 600px) {
	.snapch-pause-grid {
		grid-template-columns: 1fr;
	}
	.snapch-pause-btn-wide {
		grid-column: span 1;
	}
}
