/* Native iOS UI Styles for Scrollytelling Mockup */
.ios-ui {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #fafaf9; /* Warm off-white */
    color: #1c1917; /* Soft dark slate */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    opacity: 0;
    transform: scale(1.05) translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 60px;
}

.ios-ui.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 2;
}

/* Hide scrollbar */
.ios-ui::-webkit-scrollbar { display: none; }
.ios-ui { -ms-overflow-style: none; scrollbar-width: none; }

/* Status Bar & Navbar Space */
.ios-status { height: 50px; width: 100%; }

/* Header */
.ios-header { padding: 8px 20px 16px; border-bottom: 1px solid rgba(0,0,0,0.06); margin-bottom: 16px; position: sticky; top: 0; background: rgba(250, 250, 249, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 10; }
.ios-header p { margin: 0 0 4px; font-size: 13px; color: #78716c; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.ios-header h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }

/* Sections & Lists */
.ios-section { margin-top: 24px; }
.ios-section-title { font-size: 13px; font-weight: 600; color: #78716c; text-transform: uppercase; letter-spacing: 0.5px; padding: 0 20px; margin-bottom: 8px; }

.ios-list { background: #ffffff; border-radius: 12px; margin: 0 16px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.ios-list-item { padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,0.05); display: flex; align-items: center; }
.ios-list-item:last-child { border-bottom: none; }

/* List Checkbox */
.ios-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #d6d3d1; margin-right: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-sizing: border-box; }
.ios-check.checked { background: #4ade80; border-color: #4ade80; }
.ios-check.checked::after { content: ''; width: 6px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) translateY(-1px); margin-left: -2px; }

/* Item Content */
.ios-item-content { flex-grow: 1; }
.ios-item-title { font-size: 16px; font-weight: 600; margin: 0 0 4px 0; color: #1c1917; }
.ios-item-subtitle { color: #78716c; font-size: 13px; margin: 0; }
.ios-item-right { font-size: 15px; color: #78716c; }

/* Gamification Avatar */
.ios-avatar-row { display: flex; align-items: center; padding: 0 20px; margin-bottom: 20px; }
.ios-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, #c084fc, #38bdf8); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #fff; margin-right: 16px; box-shadow: 0 4px 12px rgba(192, 132, 252, 0.3); }
.ios-level { background: rgba(192, 132, 252, 0.15); color: #a855f7; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; display: inline-block; margin-top: 4px; }

/* Progress Bar */
.ios-progress { height: 8px; background: #e7e5e4; border-radius: 4px; overflow: hidden; margin-top: 12px; }
.ios-progress-fill { height: 100%; background: linear-gradient(90deg, #38bdf8, #c084fc); border-radius: 4px; width: 65%; }

/* Meal Planner */
.meal-nav { display: flex; overflow-x: auto; padding: 0 16px 16px; gap: 8px; -ms-overflow-style: none; scrollbar-width: none; }
.meal-nav::-webkit-scrollbar { display: none; }
.meal-day { padding: 8px 14px; border-radius: 20px; background: #ffffff; border: 1px solid #e7e5e4; color: #78716c; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.meal-day.active { background: #fb923c; border-color: #fb923c; color: #fff; box-shadow: 0 4px 10px rgba(251, 146, 60, 0.25); }
.meal-card { background: #ffffff; border-radius: 16px; margin: 0 16px 12px; padding: 16px; display: flex; gap: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.02); }
.meal-img { width: 65px; height: 65px; border-radius: 12px; background: #f5f5f4; object-fit: cover; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.meal-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; margin-bottom: 6px; text-transform: uppercase; }
.meal-tag.lunch { background: rgba(74, 222, 128, 0.15); color: #22c55e; }
.meal-tag.dinner { background: rgba(251, 146, 60, 0.15); color: #f97316; }

/* Calendar Timeline */
.timeline { position: relative; padding: 0 20px; }
.timeline::before { content: ''; position: absolute; left: 30px; top: 10px; bottom: 0; width: 2px; background: #e7e5e4; }
.time-event { position: relative; padding-left: 36px; margin-bottom: 24px; }
.time-dot { position: absolute; left: 6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #38bdf8; border: 4px solid #fafaf9; box-shadow: 0 0 0 1px #0ea5e9; }
.time-dot.orange { background: #fb923c; box-shadow: 0 0 0 1px #f97316; }
.event-time { font-size: 12px; color: #78716c; font-weight: 600; margin-bottom: 4px; }
.event-card { background: #ffffff; border-radius: 12px; padding: 14px; border-left: 3px solid #38bdf8; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.event-card.orange { border-left-color: #fb923c; }

/* Budget Stats */
.budget-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.budget-stat { background: #ffffff; padding: 16px; border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.02); }
.budget-label { font-size: 12px; color: #78716c; font-weight: 600; text-transform: uppercase; margin-bottom: 8px; }
.budget-val { font-size: 24px; font-weight: 700; color: #1c1917; }
.budget-val.green { color: #4ade80; }

/* Shared Styles */
.badge { display: inline-block; padding: 4px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; background: #f5f5f4; border: 1px solid #e7e5e4; color: #57534e; }
.badge.blue { background: rgba(56, 189, 248, 0.15); color: #0284c7; border: none; }
.badge.purple { background: rgba(192, 132, 252, 0.15); color: #9333ea; border: none; }
