/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f1f2b;
    background: #fffdf5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #ffffff;
    color: #1f1f2b;
    padding: 1rem 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: #f5b301;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    color: #1f1f2b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: #f5b301;
}

/* Floating TOC */
.toc-floating {
    position: fixed;
    right: 24px;
    top: 140px;
    width: 220px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-radius: 16px;
    padding: 1rem;
    z-index: 20;
    border: 1px solid #f3e6b3;
}

.toc-title {
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #1f1f2b;
}

.toc-floating ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.toc-floating a {
    color: #3b3b4f;
    text-decoration: none;
    font-weight: 500;
}

.toc-floating a:hover {
    color: #f5b301;
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at 30% 20%, #fff7ce 0%, #ffe89a 35%, #ffd55b 70%);
    color: #1f1f2b;
    padding: 4rem 0;
    text-align: center;
    border-radius: 0 0 48px 48px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 10%, rgba(255,255,255,0.35), transparent 45%);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    background: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #e09b00;
}

.stat-label {
    font-size: 0.9rem;
    color: #4b4b61;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
    color: #37374d;
}

.hero-image {
    margin-top: 2rem;
}

.eggs-visual {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.egg-icon {
    font-size: 3rem;
    color: #f5b301;
    animation: bounce 2s infinite;
}

.egg-icon:nth-child(2) { animation-delay: 0.2s; }
.egg-icon:nth-child(3) { animation-delay: 0.4s; }
.egg-icon:nth-child(4) { animation-delay: 0.6s; }
.egg-icon:nth-child(5) { animation-delay: 0.8s; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Section Headers */
section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 2.3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #1f1f2b;
}

.section-lead {
    text-align: center;
    max-width: 760px;
    margin: -1.2rem auto 1.6rem auto;
    color: #4b4b61;
    font-size: 1rem;
}

.section-summary {
    text-align: center;
    max-width: 760px;
    margin: 1.4rem auto 0 auto;
    color: #1f1f2b;
    font-weight: 700;
    font-size: 1rem;
}

/* Nutrition Section */
.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.nutrition-card {
    background: white;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 14px 36px rgba(0,0,0,0.08);
    border: 1px solid #f3e6b3;
}

.nutrition-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    color: #1f1f2b;
}

.nutrition-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nutrition-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.nutrition-row:last-child {
    border-bottom: none;
}

.nutrition-value {
    font-weight: 600;
    color: #667eea;
}

.nutrition-percent {
    font-size: 0.9rem;
    color: #666;
}

/* Macro Visualization */
.macro-viz {
    background: white;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 14px 36px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #f3e6b3;
}

.macro-viz h3 {
    margin-bottom: 1.5rem;
    color: #1f1f2b;
}

.macro-chart {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 540px;
    margin: 0 auto;
}

.macro-item {
    position: relative;
    height: 44px;
    background: #f7f3df;
    border-radius: 22px;
    overflow: hidden;
    padding-top: 22px;
}

.macro-bar {
    height: 22px;
    border-radius: 22px;
    transition: width 0.8s ease;
    width: 0%;
}

.protein .macro-bar {
    background: linear-gradient(90deg, #f5b301, #ffce3a);
}

.fat .macro-bar {
    background: linear-gradient(90deg, #f79d4a, #ff784b);
}

.carbs .macro-bar {
    background: linear-gradient(90deg, #7ed957, #5ec576);
}

.macro-label {
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    color: #1f1f2b;
    font-weight: 700;
    font-size: 0.95rem;
}

.macro-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Age Recommendations */
/* Calculator */
.calculator-card {
    background: white;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 14px 36px rgba(0,0,0,0.08);
    border: 1px solid #f3e6b3;
    margin-bottom: 2rem;
}

.calculator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calculator-header i {
    color: #f5b301;
    font-size: 1.8rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: #f5b301;
    font-weight: 700;
}

.calculator-card h3 {
    font-size: 1.5rem;
    margin: 0.25rem 0;
}

.subtext {
    color: #555;
    font-size: 0.95rem;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    align-items: end;
}

.form-row label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: #2c2c3a;
    gap: 0.35rem;
}

.form-row input, .form-row select {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #e4d89b;
    background: #fffdf5;
    font-size: 0.95rem;
    color: #1f1f2b;
}

.primary-btn {
    background: linear-gradient(90deg, #ffb300, #ffd44f);
    border: none;
    color: #1f1f2b;
    padding: 0.8rem 1.4rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(255, 179, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(255, 179, 0, 0.45);
}

.calc-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.result-card {
    background: #fff9e1;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    border: 1px solid #f3e6b3;
}

.result-card.highlight {
    background: #ffe8ae;
    border-color: #ffcf52;
}

.result-card .label {
    font-weight: 700;
    color: #1f1f2b;
}

.result-card .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #e09b00;
}

.result-card .muted {
    color: #555;
    font-size: 0.9rem;
}

/* Age Recommendations */
.age-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.age-card {
    background: white;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f3e6b3;
}

.age-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}

.age-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.age-header i {
    font-size: 1.8rem;
    color: #f5b301;
}

.age-header h3 {
    font-size: 1.2rem;
    color: #1f1f2b;
}

.teenager .age-header i { color: #ff784b; }
.adult .age-header i { color: #f5b301; }
.senior .age-header i { color: #5ec576; }

.age-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.9rem;
    background: #fff9e1;
    border-radius: 12px;
    border: 1px solid #f3e6b3;
    gap: 1rem;
}

.age-stat {
    text-align: center;
    flex: 1;
}

.age-label {
    display: block;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.35rem;
}

.age-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f1f2b;
}

.age-percentages {
    margin-bottom: 1rem;
}

.percentage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f1f1;
}

.percentage-label {
    font-size: 0.95rem;
    color: #4b4b61;
}

.percentage-value {
    font-weight: 700;
    color: #e09b00;
    font-size: 1.05rem;
}

.age-advice {
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem;
    background: #f7f3df;
    border-radius: 12px;
    border-left: 4px solid #f5b301;
}

.age-advice i {
    color: #f5b301;
    flex-shrink: 0;
}

.age-advice p {
    font-size: 0.95rem;
    color: #2c2c3a;
}

.teenager .age-advice {
    background: #fff1eb;
    border-left-color: #ff784b;
}

.adult .age-advice {
    background: #fff8e3;
    border-left-color: #f5b301;
}

.senior .age-advice {
    background: #edf9ef;
    border-left-color: #5ec576;
}

/* Comparisons */
.comparisons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.comparison-card {
    background: white;
    border-radius: 16px;
    padding: 1.4rem;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    transition: transform 0.25s ease;
    border: 1px solid #f3e6b3;
}

.comparison-card:hover {
    transform: translateY(-3px);
}

.comparison-icon {
    font-size: 2.4rem;
    color: #f5b301;
    margin-bottom: 0.6rem;
}

.comparison-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #1f1f2b;
}

.comparison-amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: #e09b00;
    margin-bottom: 0.25rem;
}

.comparison-desc {
    font-size: 0.9rem;
    color: #4b4b61;
}

/* Recipes */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.recipe-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform 0.25s ease;
    border: 1px solid #f3e6b3;
}

.recipe-card:hover {
    transform: translateY(-4px);
}

.recipe-image {
    height: 150px;
    background: linear-gradient(135deg, #ffb300, #ffd44f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f1f2b;
}

.recipe-image i {
    font-size: 3rem;
    opacity: 0.9;
}

.recipe-content {
    padding: 1.25rem;
}

.recipe-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #1f1f2b;
}

.recipe-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: #4b4b61;
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.recipe-content p {
    color: #4b4b61;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Health Section */
.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem;
}

.health-card {
    background: white;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    display: flex;
    gap: 1.25rem;
    border: 1px solid #f3e6b3;
}

.health-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.positive .health-icon {
    color: #27ae60;
}

.caution .health-icon {
    color: #f39c12;
}

.health-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #1f1f2b;
}

.health-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.health-content li {
    padding-left: 1.4rem;
    position: relative;
    color: #4b4b61;
}

.health-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.caution .health-content li:before {
    content: "⚠";
    color: #f39c12;
}

/* FAQ */
.faq-section {
    background: #fffdf5;
    padding: 3rem 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #f3e6b3;
    border-radius: 14px;
    background: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1f1f2b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-icon {
    font-weight: 800;
    color: #e09b00;
    margin-left: 1rem;
}

.faq-answer {
    padding: 0 1.25rem 1rem 1.25rem;
    color: #4b4b61;
    line-height: 1.5;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-icon {
    content: "-";
    transform: rotate(45deg);
}

/* Footer */
.footer {
    background: #1f1f2b;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .toc-floating {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 0.75rem;
    }

    .stat-item {
        padding: 0.75rem;
    }

    .nav {
        display: none;
    }

    .calculator-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .eggs-visual {
        flex-wrap: wrap;
    }

    .egg-icon {
        font-size: 2rem;
    }

    section h2 {
        font-size: 1.9rem;
    }

    .macro-label {
        font-size: 0.85rem;
    }
}
