feat: add all 5 polish features (stewardship breakdown, tangible impact cards, 1-click check copy, native share, and sticky rebuilding pill)

This commit is contained in:
2026-09-02 15:36:31 -07:00
parent e9b4a0e81e
commit 8fcc825d3b
4 changed files with 594 additions and 3 deletions
+314
View File
@@ -2141,5 +2141,319 @@ button, input, select, textarea {
flex-grow: 1;
}
/* ==========================================================================
Stewardship Allocation Breakdown
========================================================================== */
.stewardship-box {
margin: 40px auto 48px;
max-width: 860px;
background: var(--white);
border: 1px solid var(--slate-200);
border-radius: var(--radius-lg);
padding: 32px 36px;
box-shadow: var(--shadow-sm);
text-align: center;
}
.stewardship-header h3 {
font-family: var(--font-heading);
font-size: 1.5rem;
color: var(--primary-950);
margin: 8px 0 6px 0;
}
.stewardship-header p {
color: var(--slate-600);
font-size: 0.94rem;
margin-bottom: 24px;
}
.stewardship-bar {
display: flex;
height: 28px;
border-radius: var(--radius-full);
overflow: hidden;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 28px;
}
.steward-segment {
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 0.82rem;
font-weight: 800;
letter-spacing: 0.05em;
transition: opacity 0.2s ease;
}
.steward-segment:hover {
opacity: 0.9;
}
.segment-rebuild {
background: linear-gradient(135deg, #b8860b 0%, #d4af37 100%);
color: #0b1528;
}
.segment-kitchen {
background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}
.segment-seminary {
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}
.stewardship-legend {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 20px;
text-align: left;
}
.legend-item {
display: flex;
gap: 12px;
background: var(--slate-50);
border: 1px solid var(--slate-200);
border-radius: var(--radius-md);
padding: 14px 16px;
}
.legend-dot {
width: 14px;
height: 14px;
border-radius: 50%;
margin-top: 4px;
flex-shrink: 0;
}
.dot-rebuild { background: #d4af37; }
.dot-kitchen { background: #10b981; }
.dot-seminary { background: #3b82f6; }
.legend-item strong {
display: block;
font-size: 0.92rem;
color: var(--primary-950);
margin-bottom: 4px;
}
.legend-item p {
font-size: 0.82rem;
color: var(--slate-600);
line-height: 1.45;
margin: 0;
}
/* ==========================================================================
Interactive "See Your Impact" Tangible Cards
========================================================================== */
.impact-cards-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin: 28px 0;
}
.impact-metric-card {
background: var(--slate-50);
border: 1.5px solid var(--slate-200);
border-radius: var(--radius-md);
padding: 20px 16px;
text-align: left;
cursor: pointer;
transition: var(--transition);
display: flex;
flex-direction: column;
}
.impact-metric-card:hover {
background: var(--white);
border-color: var(--gold-400);
transform: translateY(-3px);
box-shadow: var(--shadow-md);
}
.impact-metric-amount {
display: inline-block;
font-family: var(--font-heading);
font-size: 1.4rem;
font-weight: 800;
color: var(--primary-900);
margin-bottom: 6px;
}
.impact-metric-title {
font-size: 0.95rem;
font-weight: 700;
color: var(--slate-900);
margin-bottom: 6px;
}
.impact-metric-desc {
font-size: 0.82rem;
color: var(--slate-600);
line-height: 1.45;
margin: 0 0 10px 0;
flex-grow: 1;
}
.impact-metric-action {
font-size: 0.8rem;
font-weight: 700;
color: var(--gold-500, #b45309);
display: flex;
align-items: center;
gap: 4px;
}
/* ==========================================================================
1-Click Copy Mailing Info Button & Toast
========================================================================== */
.btn-copy-check {
transition: all 0.25s ease;
cursor: pointer;
font-weight: 600;
font-size: 0.88rem;
}
.btn-copy-check:hover {
background: var(--slate-100);
border-color: var(--slate-400);
}
.btn-copy-check.copied {
background: #dcfce7 !important;
border-color: #22c55e !important;
color: #15803d !important;
}
/* Global Floating Toast Notification */
.toast-notification {
position: fixed;
bottom: 24px;
left: 50%;
transform: translateX(-50%) translateY(100px);
background: #0f172a;
color: #ffffff;
padding: 12px 24px;
border-radius: var(--radius-full);
font-size: 0.92rem;
font-weight: 600;
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
border: 1px solid rgba(255, 255, 255, 0.15);
display: flex;
align-items: center;
gap: 10px;
z-index: 9999;
opacity: 0;
pointer-events: none;
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.toast-notification.active {
transform: translateX(-50%) translateY(0);
opacity: 1;
pointer-events: auto;
}
/* ==========================================================================
Sticky Rebuilding Progress Floating Pill
========================================================================== */
.sticky-rebuild-pill {
position: fixed;
bottom: 24px;
right: 24px;
background: rgba(10, 22, 51, 0.92);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1.5px solid var(--gold-400);
border-radius: var(--radius-full);
padding: 10px 18px;
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
display: flex;
align-items: center;
gap: 14px;
z-index: 999;
transform: translateY(120px);
opacity: 0;
visibility: hidden;
transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0.35s;
}
.sticky-rebuild-pill.visible {
transform: translateY(0);
opacity: 1;
visibility: visible;
}
.sticky-pill-info {
display: flex;
flex-direction: column;
}
.sticky-pill-title {
font-size: 0.78rem;
font-weight: 800;
color: var(--white);
letter-spacing: 0.04em;
text-transform: uppercase;
}
.sticky-pill-sub {
font-size: 0.74rem;
color: var(--gold-300);
font-weight: 700;
}
.sticky-pill-btn {
background: var(--grad-gold);
color: var(--primary-950);
font-weight: 800;
font-size: 0.82rem;
padding: 7px 16px;
border-radius: var(--radius-full);
border: none;
cursor: pointer;
white-space: nowrap;
transition: transform 0.2s ease, box-shadow 0.2s ease;
display: inline-flex;
align-items: center;
gap: 4px;
}
.sticky-pill-btn:hover {
transform: scale(1.04);
box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}
.sticky-pill-close {
background: transparent;
border: none;
color: var(--slate-400);
font-size: 1.1rem;
cursor: pointer;
padding: 2px 4px;
line-height: 1;
transition: color 0.2s;
}
.sticky-pill-close:hover {
color: var(--white);
}
@media (max-width: 600px) {
.sticky-rebuild-pill {
right: 12px;
left: 12px;
bottom: 16px;
justify-content: space-between;
padding: 8px 14px;
}
}