
/* ==========================================================================
   INTERMITTENT FASTING MACRO SPLIT CALCULATOR - APPLE GRADE DESIGN SYSTEM
   ========================================================================== */
.fs-macro-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 30px 20px 80px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0F172A;
    box-sizing: border-box;
}

/* Header */
.fs-macro-header {
    text-align: center;
    margin-bottom: 35px;
}
.fs-macro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #EEF2FF;
    color: #4F46E5;
    border: 1px solid #C7D2FE;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 16px;
}
.fs-macro-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #0F172A;
    line-height: 1.25;
    margin: 0 0 14px 0;
    letter-spacing: -0.5px;
}
.fs-macro-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #64748B;
    max-width: 720px;
    margin: 0 auto 20px auto;
}

/* Reviewer Byline */
.fs-reviewer-byline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 13px;
    color: #475569;
}
.fs-reviewer-byline a {
    color: #10B981;
    font-weight: 600;
    text-decoration: none;
}
.fs-reviewer-byline a:hover {
    text-decoration: underline;
}

/* Unit Toggle */
.fs-unit-toggle {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}
.fs-unit-pill {
    background: #F1F5F9;
    padding: 4px;
    border-radius: 12px;
    display: inline-flex;
    border: 1px solid #E2E8F0;
}
.fs-unit-btn {
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748B;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}
.fs-unit-btn.active {
    background: #FFFFFF;
    color: #4F46E5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Calculator Card */
.fs-macro-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .fs-macro-card { padding: 24px; border-radius: 18px; }
}

.fs-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.fs-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 768px) {
    .fs-grid-3, .fs-grid-2 { grid-template-columns: 1fr; gap: 16px; }
}

.fs-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fs-field label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.fs-field select, .fs-field input {
    height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1.5px solid #CBD5E1;
    font-size: 15px;
    color: #0F172A;
    background: #FFFFFF;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
    width: 100%;
}
.fs-field select:focus, .fs-field input:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* Action Button */
.fs-calc-btn-wrap {
    text-align: center;
    margin-top: 10px;
}
.fs-macro-submit {
    background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.fs-macro-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.4);
}

/* Results Section */
.fs-results-box {
    display: none;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 20px;
    padding: 35px;
    margin-top: 35px;
    animation: fsFadeIn 0.4s ease-out forwards;
}
@keyframes fsFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.fs-results-header {
    text-align: center;
    margin-bottom: 30px;
}
.fs-results-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 10px 0;
}
.fs-calorie-badge-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}
.fs-cal-badge-pill {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 14px;
    padding: 12px 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.fs-cal-badge-pill .lbl {
    font-size: 12px;
    color: #64748B;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.fs-cal-badge-pill .val {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #4F46E5;
    margin-top: 2px;
}

/* Multi-segmented Macro Bar */
.fs-macro-bar-wrap {
    margin: 30px 0 35px 0;
}
.fs-macro-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 700;
    color: #64748B;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.fs-macro-bar {
    height: 22px;
    border-radius: 11px;
    background: #E2E8F0;
    display: flex;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}
.fs-bar-segment {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.fs-bar-protein { background: #3B82F6; }
.fs-bar-fats { background: #F59E0B; }
.fs-bar-carbs { background: #10B981; }

/* 3 Macro Cards Grid */
.fs-macro-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}
@media (max-width: 768px) {
    .fs-macro-cards-grid { grid-template-columns: 1fr; }
}

.fs-macro-stat-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 24px;
    border-left: 6px solid #CBD5E1;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.fs-stat-card-protein { border-left-color: #3B82F6; }
.fs-stat-card-fats { border-left-color: #F59E0B; }
.fs-stat-card-carbs { border-left-color: #10B981; }

.fs-stat-title {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fs-stat-grams {
    font-family: 'Poppins', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: #0F172A;
    margin: 8px 0 4px 0;
    line-height: 1.1;
}
.fs-stat-grams span {
    font-size: 20px;
    font-weight: 600;
    color: #64748B;
}
.fs-stat-calories {
    font-size: 13.5px;
    color: #64748B;
    font-weight: 500;
}

/* Fasting Window Meals Breakdown */
.fs-meals-breakdown {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 25px;
}
.fs-meals-breakdown h4 {
    margin: 0 0 16px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0F172A;
}
.fs-meals-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.fs-meal-item {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px 18px;
}
.fs-meal-item .title {
    font-weight: 700;
    font-size: 14px;
    color: #334155;
    margin-bottom: 6px;
}
.fs-meal-item .details {
    font-size: 13px;
    color: #64748B;
    line-height: 1.5;
}

/* App Banner */
.fs-app-suite-banner {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-radius: 20px;
    padding: 30px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.2);
    margin-top: 40px;
}
@media (max-width: 768px) {
    .fs-app-suite-banner { flex-direction: column; text-align: center; }
}
.fs-app-suite-left {
    flex: 1;
}
.fs-app-suite-left h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #FFFFFF;
}
.fs-app-suite-left p {
    font-size: 14px;
    color: #94A3B8;
    line-height: 1.5;
    margin: 0;
}
.fs-app-suite-btns {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.fs-app-suite-btn {
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.fs-btn-ios {
    background: #10B981;
    color: #FFFFFF !important;
}
.fs-btn-ios:hover { background: #059669; }
.fs-btn-android {
    background: rgba(255,255,255,0.1);
    color: #FFFFFF !important;
    border: 1px solid rgba(255,255,255,0.2);
}
.fs-btn-android:hover { background: rgba(255,255,255,0.2); }

/* Educational Guide Content */
.fs-macro-guide {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.fs-macro-guide h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #0F172A;
    margin-top: 0;
}
.fs-macro-guide h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1E293B;
    margin-top: 28px;
}
.fs-macro-guide p, .fs-macro-guide li {
    font-size: 15.5px;
    line-height: 1.7;
    color: #334155;
}
.fs-macro-guide ul {
    padding-left: 24px;
    margin-bottom: 20px;
}

.fs-next-step-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.fs-next-step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.12);
    border-color: #10B981 !important;
}

.fs-macro-disclaimer {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 13px;
    color: #991B1B;
    line-height: 1.6;
    margin-top: 30px;
}
