Redesign v2: Solar Momentum — bold, bright, energetic
Design philosophy informed by skills review: - canvas-design: Named aesthetic movement, craftsmanship emphasis - frontend-design: Bold direction, distinctive typography, avoid AI slop - frontend-patterns: Component composition, proper hooks - theme-factory: Focused 4-color palettes with clear hierarchy Changes: - Palette: Deep orange (#FF5722) + vivid green (#00C853) + electric blue + purple - Typography: Outfit (display, 900 weight) + Plus Jakarta Sans (body) - Background: Warm gradient (peach → cream → light blue) - Gate banner: 2.8rem hero numbers, thick gradient progress bars - Activity checklist: Colored icon badges per category - Cards: Larger radius (20px), warm shadows, tinted section backgrounds - Login: Bold gradient hero (orange → dark), fire emoji brand - Navigation: Orange active indicator bar, frosted glass backdrop - Week view: Purple-themed hero with large stats - Buttons: More shadow depth, active press scale animation - All CSS variables renamed to semantic system (--orange, --green, --text-2) - Zero orphaned old variable references
This commit is contained in:
parent
22f5e8fae3
commit
080b7856b7
9 changed files with 566 additions and 552 deletions
|
|
@ -1,466 +1,447 @@
|
|||
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800&family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&display=swap');
|
||||
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');
|
||||
|
||||
:root {
|
||||
--bg: #faf8f5;
|
||||
--bg-card: #ffffff;
|
||||
--bg-warm: #fff7f0;
|
||||
--bg-cool: #f0f4ff;
|
||||
--bg-mint: #eefbf5;
|
||||
--text: #1a1a2e;
|
||||
--text-secondary: #555570;
|
||||
--text-muted: #8e8ea0;
|
||||
--accent: #ff6b35;
|
||||
--accent-hover: #e85d2c;
|
||||
--accent-light: rgba(255, 107, 53, 0.08);
|
||||
--accent-glow: rgba(255, 107, 53, 0.15);
|
||||
--success: #22c55e;
|
||||
--success-bg: #eefbf3;
|
||||
--danger: #ef4444;
|
||||
--danger-bg: #fef2f2;
|
||||
--warning: #f59e0b;
|
||||
--warning-bg: #fffbeb;
|
||||
--blue: #3b82f6;
|
||||
--blue-bg: #eff6ff;
|
||||
--purple: #8b5cf6;
|
||||
--border: #e8e5e0;
|
||||
--border-light: #f0ede8;
|
||||
--shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.04), 0 1px 2px rgba(26, 26, 46, 0.03);
|
||||
--shadow-md: 0 4px 12px rgba(26, 26, 46, 0.06), 0 2px 4px rgba(26, 26, 46, 0.04);
|
||||
--shadow-lg: 0 12px 32px rgba(26, 26, 46, 0.08), 0 4px 8px rgba(26, 26, 46, 0.04);
|
||||
--shadow-glow: 0 4px 20px rgba(255, 107, 53, 0.2);
|
||||
--radius: 16px;
|
||||
--radius-sm: 10px;
|
||||
--radius-xs: 6px;
|
||||
--radius-full: 100px;
|
||||
--font-display: 'Bricolage Grotesque', serif;
|
||||
--font-body: 'DM Sans', sans-serif;
|
||||
/* === Solar Momentum Palette === */
|
||||
--orange: #FF5722;
|
||||
--orange-dark: #E64A19;
|
||||
--orange-light: #FF8A65;
|
||||
--orange-ghost: rgba(255, 87, 34, 0.06);
|
||||
--orange-glow: rgba(255, 87, 34, 0.18);
|
||||
|
||||
--green: #00C853;
|
||||
--green-dark: #00A844;
|
||||
--green-light: #69F0AE;
|
||||
--green-ghost: rgba(0, 200, 83, 0.06);
|
||||
|
||||
--blue: #2979FF;
|
||||
--blue-ghost: rgba(41, 121, 255, 0.06);
|
||||
--purple: #7C4DFF;
|
||||
--purple-ghost: rgba(124, 77, 255, 0.06);
|
||||
|
||||
--red: #FF1744;
|
||||
--red-ghost: rgba(255, 23, 68, 0.06);
|
||||
--amber: #FFB300;
|
||||
|
||||
--text: #1B1B2F;
|
||||
--text-2: #4A4A68;
|
||||
--text-3: #8888A4;
|
||||
--text-inv: #FFFFFF;
|
||||
|
||||
--bg: #F5F3EF;
|
||||
--bg-warm: linear-gradient(170deg, #FFF3E8 0%, #F5F3EF 50%, #EDF2FF 100%);
|
||||
--card: #FFFFFF;
|
||||
--card-border: rgba(0,0,0,0.04);
|
||||
--divider: rgba(0,0,0,0.06);
|
||||
|
||||
--shadow-1: 0 1px 3px rgba(27,27,47,0.05);
|
||||
--shadow-2: 0 4px 16px rgba(27,27,47,0.08);
|
||||
--shadow-3: 0 12px 40px rgba(27,27,47,0.12);
|
||||
--shadow-orange: 0 4px 20px rgba(255,87,34,0.25);
|
||||
--shadow-green: 0 4px 20px rgba(0,200,83,0.25);
|
||||
|
||||
--r: 14px;
|
||||
--r-sm: 10px;
|
||||
--r-lg: 20px;
|
||||
--r-full: 999px;
|
||||
|
||||
--font: 'Plus Jakarta Sans', system-ui, sans-serif;
|
||||
--font-display: 'Outfit', system-ui, sans-serif;
|
||||
}
|
||||
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
/* === Reset === */
|
||||
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
font-family: var(--font);
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
min-height: 100dvh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-optical-sizing: auto;
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
a { color: var(--accent); text-decoration: none; font-weight: 500; }
|
||||
a:hover { color: var(--accent-hover); }
|
||||
/* === Typography === */
|
||||
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.2; }
|
||||
|
||||
/* ===== Buttons ===== */
|
||||
a { color: var(--blue); text-decoration: none; font-weight: 600; }
|
||||
a:hover { opacity: 0.8; }
|
||||
|
||||
/* === Buttons === */
|
||||
button {
|
||||
font-family: var(--font-body);
|
||||
font-family: var(--font);
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
border-radius: var(--radius-full);
|
||||
border-radius: var(--r);
|
||||
padding: 12px 24px;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
font-size: 0.88rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.01em;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
transition: all 0.2s cubic-bezier(.4,0,.2,1);
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
button:active { transform: scale(0.97); }
|
||||
|
||||
.btn-primary {
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
box-shadow: var(--shadow-sm), 0 2px 8px rgba(255, 107, 53, 0.25);
|
||||
background: var(--orange);
|
||||
color: var(--text-inv);
|
||||
box-shadow: var(--shadow-orange);
|
||||
}
|
||||
.btn-primary:hover {
|
||||
background: var(--accent-hover);
|
||||
box-shadow: var(--shadow-md), 0 4px 16px rgba(255, 107, 53, 0.3);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
.btn-primary:active { transform: translateY(0); }
|
||||
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
|
||||
.btn-primary:hover { background: var(--orange-dark); }
|
||||
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
|
||||
|
||||
.btn-success {
|
||||
background: var(--success);
|
||||
color: white;
|
||||
box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
|
||||
background: var(--green);
|
||||
color: var(--text-inv);
|
||||
box-shadow: var(--shadow-green);
|
||||
}
|
||||
.btn-success:hover { box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3); transform: translateY(-1px); }
|
||||
|
||||
.btn-outline {
|
||||
background: var(--bg-card);
|
||||
border: 1.5px solid var(--border);
|
||||
background: var(--card);
|
||||
border: 2px solid var(--divider);
|
||||
color: var(--text);
|
||||
}
|
||||
.btn-outline:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
background: var(--accent-light);
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background: var(--danger);
|
||||
color: white;
|
||||
}
|
||||
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
|
||||
|
||||
.btn-ghost {
|
||||
background: transparent;
|
||||
color: var(--text-secondary);
|
||||
padding: 8px 16px;
|
||||
color: var(--text-2);
|
||||
padding: 10px 16px;
|
||||
}
|
||||
.btn-ghost:hover { color: var(--accent); background: var(--accent-light); }
|
||||
.btn-ghost:hover { background: var(--orange-ghost); color: var(--orange); }
|
||||
|
||||
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
|
||||
.btn-danger { background: var(--red); color: var(--text-inv); }
|
||||
.btn-sm { padding: 8px 16px; font-size: 0.82rem; border-radius: var(--r-sm); }
|
||||
.btn-full { width: 100%; }
|
||||
|
||||
/* ===== Inputs ===== */
|
||||
/* === Inputs === */
|
||||
input, select, textarea {
|
||||
font-family: var(--font-body);
|
||||
background: var(--bg-card);
|
||||
font-family: var(--font);
|
||||
background: var(--card);
|
||||
color: var(--text);
|
||||
border: 1.5px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
border: 2px solid var(--divider);
|
||||
border-radius: var(--r);
|
||||
padding: 12px 16px;
|
||||
font-size: 0.9rem;
|
||||
font-size: 0.88rem;
|
||||
font-weight: 500;
|
||||
width: 100%;
|
||||
outline: none;
|
||||
transition: all 0.2s;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
input:focus, select:focus, textarea:focus {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px var(--accent-glow);
|
||||
border-color: var(--orange);
|
||||
box-shadow: 0 0 0 3px var(--orange-glow);
|
||||
}
|
||||
input::placeholder, textarea::placeholder { color: var(--text-muted); }
|
||||
select { cursor: pointer; }
|
||||
input::placeholder, textarea::placeholder { color: var(--text-3); font-weight: 400; }
|
||||
|
||||
/* ===== Cards ===== */
|
||||
/* === Cards === */
|
||||
.card {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border-light);
|
||||
border-radius: var(--radius);
|
||||
background: var(--card);
|
||||
border: 1px solid var(--card-border);
|
||||
border-radius: var(--r-lg);
|
||||
padding: 20px;
|
||||
margin-bottom: 16px;
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: box-shadow 0.2s;
|
||||
margin-bottom: 14px;
|
||||
box-shadow: var(--shadow-1);
|
||||
}
|
||||
.card:hover { box-shadow: var(--shadow-md); }
|
||||
|
||||
/* ===== Page Layout ===== */
|
||||
/* === Page Layout === */
|
||||
.page {
|
||||
max-width: 480px;
|
||||
max-width: 440px;
|
||||
margin: 0 auto;
|
||||
padding: 20px 16px;
|
||||
padding-bottom: 100px;
|
||||
padding: 16px;
|
||||
padding-bottom: 96px;
|
||||
min-height: 100dvh;
|
||||
background: var(--bg-warm);
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.6rem;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.02em;
|
||||
margin-bottom: 20px;
|
||||
color: var(--text);
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
/* ===== Progress Bars ===== */
|
||||
/* === Progress Bars === */
|
||||
.progress-bar {
|
||||
width: 100%;
|
||||
height: 10px;
|
||||
background: var(--border-light);
|
||||
border-radius: var(--radius-full);
|
||||
background: rgba(0,0,0,0.05);
|
||||
border-radius: var(--r-full);
|
||||
overflow: hidden;
|
||||
}
|
||||
.progress-bar-fill {
|
||||
height: 100%;
|
||||
border-radius: var(--radius-full);
|
||||
transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
border-radius: var(--r-full);
|
||||
transition: width 0.6s cubic-bezier(.4,0,.2,1);
|
||||
}
|
||||
|
||||
/* ===== Status colors ===== */
|
||||
.status-earned { color: var(--success); }
|
||||
.status-locked { color: var(--danger); }
|
||||
/* === Status Helpers === */
|
||||
.status-earned { color: var(--green); }
|
||||
.status-locked { color: var(--red); }
|
||||
|
||||
/* ===== Checklist ===== */
|
||||
/* === Section Title (small label) === */
|
||||
.section-label {
|
||||
font-size: 0.72rem;
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: var(--text-3);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
/* === Checklist === */
|
||||
.checklist-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 12px 0;
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
padding: 11px 0;
|
||||
border-bottom: 1px solid var(--divider);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.checklist-item:last-child { border-bottom: none; }
|
||||
.checklist-check { font-size: 1.2rem; min-width: 28px; }
|
||||
.checklist-check { font-size: 1.15rem; min-width: 26px; }
|
||||
.checklist-points {
|
||||
margin-left: auto;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
background: var(--bg);
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
color: var(--text-3);
|
||||
background: rgba(0,0,0,0.04);
|
||||
padding: 3px 10px;
|
||||
border-radius: var(--radius-full);
|
||||
border-radius: var(--r-full);
|
||||
}
|
||||
|
||||
/* ===== Bottom Navigation ===== */
|
||||
/* === Bottom Navigation === */
|
||||
.nav-bar {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: var(--bg-card);
|
||||
border-top: 1px solid var(--border-light);
|
||||
bottom: 0; left: 0; right: 0;
|
||||
background: rgba(255,255,255,0.92);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border-top: 1px solid var(--divider);
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
padding: 6px 0 env(safe-area-inset-bottom, 8px);
|
||||
padding: 4px 0 env(safe-area-inset-bottom, 6px);
|
||||
z-index: 100;
|
||||
box-shadow: 0 -4px 20px rgba(26, 26, 46, 0.06);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
.nav-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.65rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.02em;
|
||||
padding: 6px 12px;
|
||||
gap: 1px;
|
||||
color: var(--text-3);
|
||||
font-size: 0.62rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.03em;
|
||||
padding: 6px 14px;
|
||||
text-decoration: none;
|
||||
transition: all 0.2s;
|
||||
border-radius: var(--radius-sm);
|
||||
transition: color 0.15s;
|
||||
border-radius: var(--r-sm);
|
||||
position: relative;
|
||||
}
|
||||
.nav-item.active {
|
||||
color: var(--accent);
|
||||
.nav-item.active { color: var(--orange); }
|
||||
.nav-item.active::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -4px; left: 50%; transform: translateX(-50%);
|
||||
width: 20px; height: 3px;
|
||||
background: var(--orange);
|
||||
border-radius: 2px;
|
||||
}
|
||||
.nav-item.active .nav-icon {
|
||||
background: var(--accent-light);
|
||||
border-radius: var(--radius-full);
|
||||
padding: 2px 12px;
|
||||
}
|
||||
.nav-item:hover { color: var(--accent); }
|
||||
.nav-icon { font-size: 1.25rem; transition: all 0.2s; }
|
||||
.nav-icon { font-size: 1.2rem; margin-bottom: 1px; }
|
||||
|
||||
/* ===== Forms ===== */
|
||||
.form-group { margin-bottom: 18px; }
|
||||
/* === Forms === */
|
||||
.form-group { margin-bottom: 16px; }
|
||||
.form-label {
|
||||
display: block;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
color: var(--text-2);
|
||||
margin-bottom: 6px;
|
||||
letter-spacing: 0.02em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* ===== Option Grid (Onboarding) ===== */
|
||||
/* === Option Grid === */
|
||||
.option-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 12px;
|
||||
gap: 10px;
|
||||
}
|
||||
.option-btn {
|
||||
background: var(--bg-card);
|
||||
border: 2px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 18px 14px;
|
||||
background: var(--card);
|
||||
border: 2px solid var(--divider);
|
||||
border-radius: var(--r-lg);
|
||||
padding: 18px 12px;
|
||||
text-align: center;
|
||||
color: var(--text);
|
||||
font-size: 0.88rem;
|
||||
font-weight: 500;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
.option-btn:hover {
|
||||
border-color: var(--accent);
|
||||
box-shadow: var(--shadow-md);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-1);
|
||||
}
|
||||
.option-btn:hover { border-color: var(--orange-light); transform: translateY(-2px); box-shadow: var(--shadow-2); }
|
||||
.option-btn.selected {
|
||||
border-color: var(--accent);
|
||||
background: var(--accent-light);
|
||||
box-shadow: 0 0 0 3px var(--accent-glow);
|
||||
border-color: var(--orange);
|
||||
background: var(--orange-ghost);
|
||||
box-shadow: 0 0 0 3px var(--orange-glow);
|
||||
}
|
||||
|
||||
/* ===== Chips ===== */
|
||||
.chip-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
/* === Chips === */
|
||||
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
|
||||
.chip {
|
||||
background: var(--bg-card);
|
||||
border: 1.5px solid var(--border);
|
||||
border-radius: var(--radius-full);
|
||||
background: var(--card);
|
||||
border: 2px solid var(--divider);
|
||||
border-radius: var(--r-full);
|
||||
padding: 8px 18px;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
font-size: 0.84rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.chip:hover { border-color: var(--accent); }
|
||||
.chip:hover { border-color: var(--orange-light); }
|
||||
.chip.selected {
|
||||
border-color: var(--accent);
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
border-color: var(--orange);
|
||||
background: var(--orange);
|
||||
color: var(--text-inv);
|
||||
}
|
||||
|
||||
/* ===== Reward Cards ===== */
|
||||
/* === Reward Cards === */
|
||||
.reward-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 14px 0;
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.reward-card:last-child { border-bottom: none; }
|
||||
|
||||
/* ===== Likert Scale ===== */
|
||||
/* === Likert Scale === */
|
||||
.likert-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin: 10px 0 20px;
|
||||
margin: 8px 0 18px;
|
||||
justify-content: center;
|
||||
}
|
||||
.likert-btn {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
width: 44px; height: 44px;
|
||||
border-radius: 50%;
|
||||
background: var(--bg-card);
|
||||
border: 2px solid var(--border);
|
||||
background: var(--card);
|
||||
border: 2px solid var(--divider);
|
||||
color: var(--text);
|
||||
font-weight: 700;
|
||||
font-size: 0.9rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: 800;
|
||||
font-size: 0.88rem;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
box-shadow: var(--shadow-sm);
|
||||
box-shadow: var(--shadow-1);
|
||||
}
|
||||
.likert-btn:hover { border-color: var(--accent); transform: scale(1.08); }
|
||||
.likert-btn:hover { border-color: var(--orange); transform: scale(1.1); }
|
||||
.likert-btn.selected {
|
||||
border-color: var(--accent);
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
|
||||
transform: scale(1.08);
|
||||
border-color: transparent;
|
||||
background: var(--orange);
|
||||
color: var(--text-inv);
|
||||
box-shadow: var(--shadow-orange);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
.likert-labels {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 0.72rem;
|
||||
color: var(--text-muted);
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
/* ===== Gate Banner ===== */
|
||||
.gate-banner {
|
||||
text-align: center;
|
||||
padding: 24px 20px;
|
||||
border-radius: var(--radius);
|
||||
margin-bottom: 16px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.gate-banner::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0; left: 0; right: 0; bottom: 0;
|
||||
opacity: 0.4;
|
||||
z-index: 0;
|
||||
}
|
||||
.gate-banner > * { position: relative; z-index: 1; }
|
||||
|
||||
.gate-earned {
|
||||
background: linear-gradient(135deg, #eefbf3 0%, #d1fae5 100%);
|
||||
border: 1.5px solid rgba(34, 197, 94, 0.25);
|
||||
}
|
||||
.gate-locked {
|
||||
background: linear-gradient(135deg, #fff7f0 0%, #fef2f2 100%);
|
||||
border: 1.5px solid rgba(239, 68, 68, 0.2);
|
||||
}
|
||||
.gate-pts {
|
||||
font-family: var(--font-display);
|
||||
font-size: 2.2rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.03em;
|
||||
margin: 6px 0;
|
||||
}
|
||||
|
||||
/* ===== Meal sections ===== */
|
||||
.meal-section { margin-bottom: 20px; }
|
||||
.meal-title {
|
||||
font-size: 0.75rem;
|
||||
font-size: 0.68rem;
|
||||
color: var(--text-3);
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 8px;
|
||||
padding-bottom: 6px;
|
||||
border-bottom: 2px solid var(--border-light);
|
||||
}
|
||||
|
||||
/* ===== States ===== */
|
||||
/* === Gate Banner === */
|
||||
.gate-banner {
|
||||
text-align: center;
|
||||
padding: 28px 20px;
|
||||
border-radius: var(--r-lg);
|
||||
margin-bottom: 14px;
|
||||
position: relative;
|
||||
}
|
||||
.gate-earned {
|
||||
background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 50%, #E0F2F1 100%);
|
||||
border: 2px solid rgba(0,200,83,0.2);
|
||||
}
|
||||
.gate-locked {
|
||||
background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 50%, #FFF8E1 100%);
|
||||
border: 2px solid rgba(255,87,34,0.15);
|
||||
}
|
||||
.gate-pts {
|
||||
font-family: var(--font-display);
|
||||
font-size: 2.8rem;
|
||||
font-weight: 900;
|
||||
letter-spacing: -0.04em;
|
||||
line-height: 1;
|
||||
margin: 8px 0;
|
||||
}
|
||||
|
||||
/* === Meal Sections === */
|
||||
.meal-section { margin-bottom: 18px; }
|
||||
.meal-title {
|
||||
font-size: 0.72rem;
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--text-3);
|
||||
margin-bottom: 6px;
|
||||
padding-bottom: 6px;
|
||||
border-bottom: 2px solid var(--divider);
|
||||
}
|
||||
|
||||
/* === States === */
|
||||
.loading {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 60px;
|
||||
color: var(--text-muted);
|
||||
font-weight: 500;
|
||||
color: var(--text-3);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.error-msg {
|
||||
background: var(--danger-bg);
|
||||
border: 1px solid rgba(239, 68, 68, 0.2);
|
||||
padding: 14px 16px;
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--danger);
|
||||
font-weight: 500;
|
||||
font-size: 0.9rem;
|
||||
margin-bottom: 16px;
|
||||
background: var(--red-ghost);
|
||||
border: 2px solid rgba(255,23,68,0.15);
|
||||
padding: 12px 16px;
|
||||
border-radius: var(--r);
|
||||
color: var(--red);
|
||||
font-weight: 600;
|
||||
font-size: 0.88rem;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
/* ===== Animations ===== */
|
||||
/* === Animations === */
|
||||
@keyframes fadeUp {
|
||||
from { opacity: 0; transform: translateY(12px); }
|
||||
from { opacity: 0; transform: translateY(16px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
@keyframes scaleIn {
|
||||
from { opacity: 0; transform: scale(0.95); }
|
||||
@keyframes popIn {
|
||||
from { opacity: 0; transform: scale(0.92); }
|
||||
to { opacity: 1; transform: scale(1); }
|
||||
}
|
||||
@keyframes shimmer {
|
||||
0% { background-position: -200% 0; }
|
||||
100% { background-position: 200% 0; }
|
||||
@keyframes countUp {
|
||||
from { opacity: 0; transform: translateY(8px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.card {
|
||||
animation: fadeUp 0.3s ease-out both;
|
||||
}
|
||||
.card:nth-child(2) { animation-delay: 0.05s; }
|
||||
.card:nth-child(3) { animation-delay: 0.1s; }
|
||||
.card:nth-child(4) { animation-delay: 0.15s; }
|
||||
.page > .card:nth-child(1) { animation: fadeUp 0.3s ease-out both; }
|
||||
.page > .card:nth-child(2) { animation: fadeUp 0.3s ease-out 0.06s both; }
|
||||
.page > .card:nth-child(3) { animation: fadeUp 0.3s ease-out 0.12s both; }
|
||||
.page > .card:nth-child(4) { animation: fadeUp 0.3s ease-out 0.18s both; }
|
||||
.gate-banner { animation: popIn 0.35s cubic-bezier(.4,0,.2,1) both; }
|
||||
.gate-pts { animation: countUp 0.4s ease-out 0.15s both; }
|
||||
|
||||
.gate-banner {
|
||||
animation: scaleIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
|
||||
}
|
||||
|
||||
/* Smooth page transitions */
|
||||
.page {
|
||||
animation: fadeUp 0.25s ease-out;
|
||||
}
|
||||
|
||||
/* ===== Scrollbar ===== */
|
||||
/* === Scrollbar === */
|
||||
::-webkit-scrollbar { width: 4px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
|
||||
::-webkit-scrollbar-thumb { background: var(--divider); border-radius: 4px; }
|
||||
|
||||
/* ===== Mobile adjustments ===== */
|
||||
/* === Mobile === */
|
||||
@media (max-width: 380px) {
|
||||
.page { padding: 12px 12px 100px; }
|
||||
.gate-pts { font-size: 1.8rem; }
|
||||
.page { padding: 12px 10px 96px; }
|
||||
.gate-pts { font-size: 2.2rem; }
|
||||
.option-grid { gap: 8px; }
|
||||
.option-btn { padding: 14px 10px; font-size: 0.82rem; }
|
||||
.option-btn { padding: 14px 10px; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue