/* Article-specific styles */
.blog-article {
    background: white;
}

.article-header {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9) 0%, rgba(46, 125, 50, 0.9) 100%);
    color: white;
    padding: 140px 0 60px;
}

.article-header .breadcrumb {
    margin-bottom: 2rem;
}

.article-header .breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.article-header .breadcrumb li {
    display: flex;
    align-items: center;
}

.article-header .breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.article-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.article-header .breadcrumb a:hover {
    color: white;
}

.article-meta-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.article-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.article-date {
    font-size: 0.875rem;
    opacity: 0.9;
}

.read-time {
    font-size: 0.875rem;
    opacity: 0.9;
}

.article-header h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
}

.article-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 800px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 1rem;
}

.author-title {
    font-size: 0.875rem;
    opacity: 0.8;
}

.featured-image {
    width: 100%;
    aspect-ratio: 1200/630;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: 12px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.article-content {
    padding: 80px 0;
    line-height: 1.8;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.table-of-contents {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    position: static;
}

.table-of-contents h2 {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    color: #1f2937;
}

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

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

.table-of-contents a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.table-of-contents a:hover {
    color: #4CAF50;
}

.article-content section {
    margin-bottom: 3rem;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2rem 0 1rem 0;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 0.75rem 0;
}

.article-content p {
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
    color: #4b5563;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #4CAF50;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    position: relative;
}

.article-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Custom components for articles */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.benefit-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    color: #1f2937;
}

.tips-list {
    margin: 2rem 0;
}

.tip-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tip-item h3 {
    color: #4CAF50;
    margin-top: 0;
    margin-bottom: 1rem;
}

.macro-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.macro-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.macro-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box h4 {
    margin-top: 0;
    color: #1e40af;
}

.food-sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.food-category {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
}

.food-category h4 {
    margin-top: 0;
    color: #1f2937;
}

.carb-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.carb-type-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.gi-scale {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gi-category {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.gi-category.low {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.gi-category.medium {
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.gi-category.high {
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.fat-types {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.fat-type {
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid;
}

.fat-type.healthy {
    background: #dcfce7;
    border-color: #22c55e;
}

.fat-type.moderate {
    background: #fef3c7;
    border-color: #eab308;
}

.fat-type.avoid {
    background: #fee2e2;
    border-color: #ef4444;
}

.macro-distribution {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.percentage-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.percentage-circle.protein {
    background: #ef4444;
}

.percentage-circle.carbs {
    background: #22c55e;
}

.percentage-circle.fats {
    background: #3b82f6;
}

.goal-macros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.goal-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.goal-card h4 {
    margin-top: 0;
    color: #1f2937;
}

.meal-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.meal-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.meal-card h4 {
    margin-top: 0;
    color: #1f2937;
}

.takeaways {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.takeaway {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.takeaway h3 {
    margin-top: 0;
    color: #4CAF50;
}

.video-container {
    margin: 2rem 0;
    text-align: center;
}

.video-placeholder {
    background: #f3f4f6;
    border: 2px dashed #9ca3af;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.video-placeholder iframe {
    max-width: 100%;
    margin-top: 1rem;
}

.cta-box {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9) 0%, rgba(46, 125, 50, 0.9) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    margin-top: 0;
    color: white;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #4CAF50;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.share-buttons {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 2rem 0;
    margin: 3rem 0;
    text-align: center;
}

.share-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-link {
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.3s;
}

.share-link:hover {
    background: #4CAF50;
    color: white;
}

.author-bio {
    display: flex;
    gap: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
}

.author-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-content h3 {
    margin-top: 0;
    color: #1f2937;
}

.related-articles {
    margin-top: 4rem;
}

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

.related-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

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

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin: 0;
}

.related-content {
    padding: 1.5rem;
}

.related-content h3 {
    margin: 0 0 0.5rem 0;
}

.related-content h3 a {
    color: #1f2937;
    text-decoration: none;
}

.related-content h3 a:hover {
    color: #4CAF50;
}

.related-content time {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-header {
        padding: 100px 0 40px;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-lead {
        font-size: 1.125rem;
    }
    
    .table-of-contents {
        position: static;
        margin-bottom: 2rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .share-links {
        flex-direction: column;
        align-items: center;
    }
    
    .macro-overview,
    .benefits-grid,
    .food-sources-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        border-radius: 8px;
        margin-bottom: 2rem;
    }
}

/* App Download Buttons - using styles from main styles.css */
