/**
 * FCWalk Frontend Styles — base layout and components.
 */

/* Hide Alpine x-cloak elements until Alpine initializes */
[x-cloak] { display: none !important; }

:root {
	--fcwalk-primary: #0d9488;
	--fcwalk-primary-dark: #0f766e;
	--fcwalk-navy: #1a2744;
	--fcwalk-gray-50: #f9fafb;
	--fcwalk-gray-100: #f3f4f6;
	--fcwalk-gray-200: #e5e7eb;
	--fcwalk-gray-500: #6b7280;
	--fcwalk-gray-700: #374151;
	--fcwalk-gray-900: #111827;
	--fcwalk-green: #059669;
	--fcwalk-amber: #d97706;
	--fcwalk-red: #dc2626;
	--fcwalk-radius: 8px;
	--fcwalk-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Progress bar */
.fcwalk-progress {
	background: var(--fcwalk-gray-200);
	border-radius: var(--fcwalk-radius);
	height: 20px;
	overflow: hidden;
	margin: 12px 0;
}

.fcwalk-progress-fill {
	background: linear-gradient(90deg, var(--fcwalk-primary), var(--fcwalk-green));
	height: 100%;
	border-radius: var(--fcwalk-radius);
	transition: width 0.6s ease;
	min-width: 2%;
}

.fcwalk-progress-text {
	display: flex;
	justify-content: space-between;
	font-size: 0.9rem;
	color: var(--fcwalk-gray-500);
	margin-top: 4px;
}

.fcwalk-progress-raised {
	color: var(--fcwalk-green);
	font-weight: 600;
}

/* Cards */
.fcwalk-card {
	background: #fff;
	border: 1px solid var(--fcwalk-gray-200);
	border-radius: var(--fcwalk-radius);
	padding: 24px;
	box-shadow: var(--fcwalk-shadow);
	margin-bottom: 16px;
}

/* Buttons */
.fcwalk-btn {
	display: inline-block;
	padding: 10px 24px;
	border-radius: var(--fcwalk-radius);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	border: none;
	text-align: center;
}

.fcwalk-btn:active {
	transform: scale(0.98);
}

.fcwalk-btn-primary {
	background: var(--fcwalk-primary);
	color: #fff;
}

.fcwalk-btn-primary:hover {
	background: var(--fcwalk-primary-dark);
	color: #fff;
}

.fcwalk-btn-outline {
	background: #fff;
	color: var(--fcwalk-primary);
	border: 2px solid var(--fcwalk-primary);
}

.fcwalk-btn-outline:hover {
	background: var(--fcwalk-primary);
	color: #fff;
}

/* Donation presets */
.fcwalk-donation-presets {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
	margin: 16px 0;
}

.fcwalk-donation-preset {
	padding: 12px 8px;
	border: 2px solid var(--fcwalk-gray-200);
	border-radius: var(--fcwalk-radius);
	text-align: center;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, color 0.2s;
	background: var(--fcwalk-gray-100);
	color: var(--fcwalk-gray-700);
}

.fcwalk-donation-preset:hover {
	border-color: var(--fcwalk-primary);
	background: #fff;
	color: var(--fcwalk-primary);
}

.fcwalk-donation-preset.active {
	border-color: var(--fcwalk-primary);
	/* !important: .fcwalk-walker-donate .fcwalk-donation-preset (equal specificity, later in file) must not win over the active state. */
	background: var(--fcwalk-primary) !important;
	color: #fff;
}

/* Leaderboard */
.fcwalk-leaderboard {
	list-style: none;
	padding: 0;
	margin: 0;
}

.fcwalk-leaderboard-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--fcwalk-gray-100);
}

.fcwalk-leaderboard-item:last-child {
	border-bottom: none;
}

.fcwalk-leaderboard-name a {
	color: var(--fcwalk-navy);
	text-decoration: none;
	font-weight: 500;
}

.fcwalk-leaderboard-name a:hover {
	color: var(--fcwalk-primary);
}

.fcwalk-leaderboard-amount {
	font-weight: 700;
	color: var(--fcwalk-green);
}

/* Share buttons */
.fcwalk-share-buttons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.fcwalk-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: var(--fcwalk-radius);
	font-size: 0.85rem;
	font-weight: 500;
	text-decoration: none;
	color: #fff;
	transition: opacity 0.2s;
}

.fcwalk-share-btn:hover {
	opacity: 0.85;
	color: #fff;
}

.fcwalk-share-btn--facebook { background: #1877f2; }
.fcwalk-share-btn--twitter  { background: #0f1419; }
.fcwalk-share-btn--email    { background: var(--fcwalk-gray-700); }
.fcwalk-share-btn--sms      { background: var(--fcwalk-green); }
.fcwalk-share-btn--whatsapp { background: #25d366; }

/* Badge */
.fcwalk-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.fcwalk-badge--captain {
	background: var(--fcwalk-amber);
	color: #fff;
}

.fcwalk-badge--returning {
	background: var(--fcwalk-primary);
	color: #fff;
}

.fcwalk-badge--milestone {
	background: #fef3c7;
	color: #92400e;
}

.fcwalk-badge--secondary {
	background: #e0e7ff;
	color: #3730a3;
}

.fcwalk-hint {
	font-size: 0.85rem;
	color: #6b7280;
	margin: 4px 0 8px;
}

.fcwalk-walker-team--secondary {
	font-size: 0.9em;
	opacity: 0.85;
}

/* Responsive */
@media (max-width: 768px) {
	.fcwalk-donation-presets {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 480px) {
	.fcwalk-donation-presets {
		grid-template-columns: repeat(2, 1fr);
	}

	.fcwalk-share-buttons {
		flex-direction: column;
	}

	.fcwalk-share-btn {
		justify-content: center;
	}
}

/* ═══ Walker personal page ═══ */

.fcwalk-btn--lg {
	padding: 14px 32px;
	font-size: 1.05rem;
}

/* Share button internals (all contexts) */
.fcwalk-share-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

button.fcwalk-share-btn {
	font-family: inherit;
	border: none;
}

.fcwalk-share-btn--copy {
	background: var(--fcwalk-primary);
	cursor: pointer;
}

/* Hero */
.fcwalk-walker-hero {
	background: #fff;
	border-bottom: 1px solid var(--fcwalk-gray-200);
}

.fcwalk-walker-hero__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 40px 20px;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}

.fcwalk-walker-hero__media img {
	width: 100%;
	height: 100%;
	max-height: 440px;
	object-fit: cover;
	border-radius: 16px;
	display: block;
	aspect-ratio: 5 / 4;
}

.fcwalk-walker-hero__avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #fff;
	/* thin outer ring so the white border reads on white backgrounds */
	box-shadow: 0 0 0 1px var(--fcwalk-gray-200), 0 1px 3px rgba(0, 0, 0, 0.08);
	display: block;
	margin-bottom: 14px;
}

.fcwalk-walker-hero__team {
	color: var(--fcwalk-gray-500);
	font-size: 0.95rem;
	margin: 0 0 14px;
}

.fcwalk-walker-hero__team a {
	color: var(--fcwalk-primary);
	font-weight: 600;
	text-decoration: none;
}

.fcwalk-walker-hero__team a:hover {
	text-decoration: underline;
}

.fcwalk-walker-hero__eyebrow {
	color: var(--fcwalk-primary);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 8px;
}

.fcwalk-walker-hero__name {
	color: var(--fcwalk-navy);
	font-size: clamp(2.1rem, 4.5vw, 3.2rem);
	line-height: 1.1;
	margin: 0 0 12px;
}

.fcwalk-walker-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.fcwalk-walker-hero__message {
	color: var(--fcwalk-gray-700);
	font-size: 1.05rem;
	line-height: 1.65;
	margin: 0 0 24px;
}

.fcwalk-walker-hero__actions {
	display: flex;
	gap: 12px;
}

/* Two-column layout */
.fcwalk-walker-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 24px;
	align-items: start;
	padding: 32px 0 56px;
}

.fcwalk-walker-main > .fcwalk-card:last-child,
.fcwalk-walker-sidebar > .fcwalk-card:last-child {
	margin-bottom: 0;
}

.fcwalk-walker-layout .fcwalk-card h3 {
	margin: 0 0 12px;
	font-size: 1.1rem;
	color: var(--fcwalk-navy);
}

/* Progress card */
.fcwalk-walker-progress__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.fcwalk-walker-progress__raised {
	font-size: 2.3rem;
	font-weight: 800;
	color: var(--fcwalk-primary);
	line-height: 1;
}

.fcwalk-walker-progress__goal {
	color: var(--fcwalk-gray-500);
	font-size: 0.95rem;
	margin-left: 6px;
}

.fcwalk-walker-progress__pct {
	color: var(--fcwalk-primary);
	font-weight: 700;
}

.fcwalk-walker-progress .fcwalk-progress {
	height: 14px;
	margin-bottom: 0;
}

/* Donation card */
.fcwalk-walker-donate__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.fcwalk-walker-donate__secure {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--fcwalk-gray-500);
	font-size: 0.82rem;
	white-space: nowrap;
}

.fcwalk-walker-donate .fcwalk-donation-presets {
	grid-template-columns: repeat(3, 1fr);
}

.fcwalk-walker-donate .fcwalk-donation-preset {
	background: #fff;
	padding: 14px 8px;
}

.fcwalk-donation-preset--other {
	grid-column: 1 / -1;
}

.fcwalk-amount-input {
	display: flex;
	align-items: stretch;
	border: 2px solid var(--fcwalk-gray-200);
	border-radius: var(--fcwalk-radius);
	overflow: hidden;
	margin-top: 4px;
	background: #fff;
}

.fcwalk-amount-input:focus-within {
	border-color: var(--fcwalk-primary);
}

.fcwalk-amount-input__prefix {
	display: flex;
	align-items: center;
	padding: 10px 14px;
	background: var(--fcwalk-gray-100);
	color: var(--fcwalk-gray-500);
	font-weight: 600;
	border-right: 1px solid var(--fcwalk-gray-200);
}

.fcwalk-amount-input input {
	border: none;
	outline: none;
	flex: 1;
	padding: 10px 12px;
	font-size: 1rem;
	min-width: 0;
}

.fcwalk-walker-donate__cta {
	display: block;
	width: 100%;
	margin-top: 16px;
}

.fcwalk-walker-donate__note {
	text-align: center;
	color: var(--fcwalk-gray-500);
	font-size: 0.85rem;
	margin: 12px 0 0;
}

/* About card */
.fcwalk-walker-about {
	position: relative;
}

.fcwalk-walker-about__body {
	color: var(--fcwalk-gray-700);
	line-height: 1.7;
	padding-right: 110px;
}

.fcwalk-walker-about__body p:last-child {
	margin-bottom: 0;
}

.fcwalk-walker-about__shoe {
	position: absolute;
	right: 24px;
	bottom: 24px;
	width: 96px;
	height: auto;
	color: var(--fcwalk-primary);
	opacity: 0.55;
}

/* Sidebar: donation list */
.fcwalk-donation-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fcwalk-donation-list li {
	padding: 10px 0;
	border-bottom: 1px solid var(--fcwalk-gray-100);
}

.fcwalk-donation-list li:first-child {
	padding-top: 0;
}

.fcwalk-donation-list li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.fcwalk-donation-list__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
}

.fcwalk-donation-list__row strong {
	color: var(--fcwalk-gray-900);
	font-weight: 600;
}

.fcwalk-donation-amount {
	color: var(--fcwalk-primary);
	font-weight: 700;
	white-space: nowrap;
}

.fcwalk-donation-message {
	color: var(--fcwalk-gray-500);
	font-size: 0.88rem;
	font-style: italic;
	margin: 4px 0 0;
}

/* Sidebar: share card (circular icons) */
.fcwalk-walker-share__hint {
	color: var(--fcwalk-gray-500);
	font-size: 0.9rem;
	margin: -4px 0 16px;
}

.fcwalk-walker-share .fcwalk-share-buttons {
	display: flex;
	flex-direction: row; /* beats the ≤480px column rule for pill buttons above */
	flex-wrap: wrap;
	gap: 4px 10px;
}

.fcwalk-walker-share .fcwalk-share-btn {
	flex-direction: column;
	gap: 6px;
	padding: 6px 2px;
	width: 62px;
	background: transparent;
	color: var(--fcwalk-gray-500);
	font-size: 0.72rem;
	font-weight: 500;
	cursor: pointer;
}

.fcwalk-walker-share .fcwalk-share-btn:hover {
	opacity: 1;
	color: var(--fcwalk-gray-900);
	background: transparent;
}

.fcwalk-walker-share .fcwalk-share-btn__icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: #fff;
	transition: transform 0.15s;
}

.fcwalk-walker-share .fcwalk-share-btn:hover .fcwalk-share-btn__icon {
	transform: scale(1.08);
}

.fcwalk-walker-share .fcwalk-share-btn--facebook .fcwalk-share-btn__icon { background: #1877f2; }
.fcwalk-walker-share .fcwalk-share-btn--twitter .fcwalk-share-btn__icon  { background: #0f1419; }
.fcwalk-walker-share .fcwalk-share-btn--email .fcwalk-share-btn__icon    { background: var(--fcwalk-gray-700); }
.fcwalk-walker-share .fcwalk-share-btn--sms .fcwalk-share-btn__icon      { background: var(--fcwalk-green); }
.fcwalk-walker-share .fcwalk-share-btn--whatsapp .fcwalk-share-btn__icon { background: #25d366; }
.fcwalk-walker-share .fcwalk-share-btn--copy .fcwalk-share-btn__icon     { background: var(--fcwalk-primary); }

/* Sidebar: QR card */
.fcwalk-walker-qr {
	text-align: center;
}

.fcwalk-walker-qr__hint {
	color: var(--fcwalk-gray-500);
	font-size: 0.9rem;
	margin: -4px 0 14px;
}

.fcwalk-walker-qr .fcwalk-qrcode {
	display: inline-block;
	width: 100%;
	max-width: 180px;
	border: 1px solid var(--fcwalk-gray-200);
	border-radius: var(--fcwalk-radius);
	padding: 10px;
	background: #fff;
}

.fcwalk-walker-qr .fcwalk-qrcode svg {
	width: 100%;
	height: auto;
	display: block;
}

/* Sidebar: join button under team members */
.fcwalk-walker-teamjoin {
	display: block;
	width: 100%;
	margin-top: 14px;
	text-align: center;
}

/* Sidebar: team card */
.fcwalk-walker-teamcard__label {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--fcwalk-gray-500);
	margin: 0 0 4px;
}

.fcwalk-walker-layout .fcwalk-walker-teamcard__name {
	margin: 0 0 12px;
}

.fcwalk-walker-teamcard__name a {
	color: var(--fcwalk-primary);
	text-decoration: none;
}

.fcwalk-walker-teamcard__name a:hover {
	text-decoration: underline;
}

.fcwalk-progress--slim {
	height: 8px;
	margin: 0 0 8px;
}

.fcwalk-walker-teamcard__raised {
	color: var(--fcwalk-gray-700);
	font-weight: 600;
	font-size: 0.95rem;
	margin: 0;
}

.fcwalk-walker-teamcard__raised span {
	color: var(--fcwalk-gray-500);
	font-weight: 400;
}

.fcwalk-walker-teamcard .fcwalk-walker-team--secondary {
	margin: 10px 0 0;
}

/* Walker page responsive */
@media (max-width: 900px) {
	.fcwalk-walker-hero__inner {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 24px 20px 32px;
	}

	.fcwalk-walker-hero__media img {
		aspect-ratio: 16 / 10;
		max-height: 320px;
	}

	.fcwalk-walker-layout {
		grid-template-columns: 1fr;
		padding: 24px 0 40px;
	}
}

@media (max-width: 600px) {
	.fcwalk-walker-about__body {
		padding-right: 0;
	}

	.fcwalk-walker-about__shoe {
		display: none;
	}
}

/* Receipt intro — donation thank-you vs registration-complete confirmation. */
.fcwalk-receipt-intro {
	background: #f0fdfa;
	border: 1px solid var(--fcwalk-primary-light, #ccfbf1);
	border-left: 4px solid var(--fcwalk-primary, #0d9488);
	border-radius: 8px;
	padding: 14px 16px;
	margin: 0 0 20px;
}

.fcwalk-receipt-intro p {
	margin: 0;
}

/* Content-library blocks (FCWalk → Settings → Library) on the receipt page —
   match the inline styles the template used before the copy became editable. */
.fcwalk-receipt .fcwalk-lib-block h1 {
	font-size: 1.5rem;
	margin: 0 0 8px;
}

.fcwalk-receipt .fcwalk-lib-block p {
	color: #374151;
}

.fcwalk-receipt .fcwalk-lib-block img {
	max-width: 100%;
	height: auto;
}

.fcwalk-receipt .fcwalk-lib-block--receipt-tax-note {
	margin-top: 20px;
}

.fcwalk-receipt .fcwalk-lib-block.fcwalk-lib-block--receipt-tax-note p {
	color: #6b7280;
	font-size: 0.85rem;
}
