/* SEO Pages - Additional Styles */

/* Hero Image */
.hero-image-container {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.image-credit {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    opacity: 0.7;
}

.image-credit a {
    color: var(--text-secondary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero-image {
        height: 250px;
        border-radius: 12px;
    }
}

/* Nutrition Card */
.nutrition-card {
    background: linear-gradient(135deg, var(--primary-green) 0%, #22c55e 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    color: white;
}

.nutrition-header h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.nutrition-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.nutrition-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.nutrition-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.nutrition-note {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.macros-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.macro-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.macro-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
}

.macro-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Benefits List */
.benefits-list,
.tips-list,
.takeaways-list {
    list-style: none;
    padding: 0;
}

.benefits-list li,
.tips-list li,
.takeaways-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 700;
}

.tips-list li::before {
    content: "💡";
    position: absolute;
    left: 0;
}

.takeaways-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 700;
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.faq-question {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Related Foods Grid */
.related-foods-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.related-food {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.related-food:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    border: 2px solid var(--primary-green);
}

.cta-box h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #1a1a2e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-box .cta-button:hover {
    background: #16213e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Table of Contents */
.table-of-contents {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid var(--border);
}

.table-of-contents h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents li.toc-sub {
    padding-left: 1.5rem;
}

.table-of-contents a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.table-of-contents a:hover {
    color: var(--primary-green);
}

/* Guide Sections */
.guide-section {
    margin: 2rem 0;
}

.guide-section h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.section-tips {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
}

.subsection {
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-green);
}

.subsection h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Recipe Card */
.recipe-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border);
}

.recipe-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.recipe-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

.recipe-macros {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.recipe-ingredients,
.recipe-instructions {
    margin: 1.5rem 0;
}

.recipe-ingredients h3,
.recipe-instructions h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.recipe-ingredients ul,
.recipe-instructions ol {
    padding-left: 1.5rem;
    line-height: 1.8;
}

.recipe-tip {
    background: #fef3c7;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

/* Calculator Placeholder */
.calculator-placeholder {
    margin: 2rem 0;
}

.calculator-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    border: 2px dashed #0ea5e9;
}

.calculator-box h3 {
    color: #0369a1;
    margin-bottom: 0.5rem;
}

.calculator-box p {
    color: #0c4a6e;
}

.calculator-cta {
    margin-top: 1rem;
    font-weight: 500;
}

/* Ranges Table */
.ranges-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.ranges-table th,
.ranges-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.ranges-table th {
    background: var(--surface);
    font-weight: 600;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary-green);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s;
}

/* Content Section */
.content-section {
    margin: 2.5rem 0;
}

.content-section h2 {
    margin-bottom: 1rem;
}

/* Conclusion */
.conclusion {
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .nutrition-grid {
        grid-template-columns: 1fr;
    }

    .macros-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nutrition-value {
        font-size: 2rem;
    }

    .recipe-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .recipe-macros {
        flex-direction: column;
        gap: 0.5rem;
    }
}
