/* Blog-specific styles extending the main stylesheet */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.blog-header h1 {
    color: white;
    margin-bottom: 1rem;
    font-size: 3rem;
}

.blog-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Article */
.featured-article {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.featured-post {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    border-left: 5px solid #e67e22;
}

.featured-badge {
    position: absolute;
    top: -10px;
    left: 2rem;
    background: linear-gradient(45deg, #e67e22, #f39c12);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.featured-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.category {
    background-color: #e67e22;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.read-time {
    color: #666;
    font-size: 0.9rem;
}

.featured-post h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.featured-post h2 a {
    color: inherit;
    text-decoration: none;
}

.featured-post h2 a:hover {
    color: #e67e22;
}

.read-more-btn {
    display: inline-block;
    background: linear-gradient(45deg, #e67e22, #f39c12);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: linear-gradient(45deg, #d35400, #e67e22);
    transform: translateY(-2px);
    color: white;
}

/* Blog Categories */
.blog-categories {
    padding: 80px 0;
}

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

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid #e67e22;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.posts-count {
    color: #666;
    font-size: 0.9rem;
    background-color: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    display: inline-block;
    margin-top: 1rem;
}

/* Blog Posts Grid */
.blog-posts {
    padding: 80px 0;
    background-color: #f8f9fa;
}

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

.post-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: fit-content;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.post-category {
    font-size: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.8rem;
}

.post-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.post-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.post-card h3 a:hover {
    color: #e67e22;
}

.post-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    background-color: #e8f4fd;
    color: #2980b9;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-link {
    color: #e67e22;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-link:hover {
    color: #d35400;
}

/* Newsletter CTA */
.newsletter-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.newsletter-cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-benefits {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.newsletter-benefits span {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Popular Tags */
.popular-tags {
    padding: 80px 0;
}

.tags-cloud {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.tag-link {
    background-color: #f8f9fa;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tag-link:hover {
    background-color: #e67e22;
    color: white;
}

.tag-link.large {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.tag-link.medium {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
}

/* Individual Article Styles */
.blog-article {
    /* Styles for individual blog post pages */
}

.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0 80px;
}

.article-meta {
    margin-bottom: 2rem;
}

.back-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.back-link:hover {
    color: white;
}

.meta-info {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.meta-info span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.article-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 800px;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-tags .tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Article Content */
.article-content {
    padding: 80px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    margin-top: 2rem;
}

.article-body {
    max-width: none;
}

.article-body h2 {
    color: #2c3e50;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e67e22;
}

.article-body h3 {
    color: #34495e;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body h4 {
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.highlight-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fd 100%);
    border-left: 4px solid #e67e22;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
}

.highlight-box h3 {
    color: #e67e22;
    margin-bottom: 1rem;
    margin-top: 0;
}

/* Recipe Cards */
.recipe-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recipe-card h3 {
    color: #e67e22;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 0.5rem;
}

.recipe-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.recipe-meta span {
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
}

.glycemic-index {
    background-color: #d4edda;
    color: #155724;
    font-weight: bold;
}

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

.ingredients h4,
.instructions h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.ingredients ul {
    list-style: none;
    margin-left: 0;
}

.ingredients ul li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.ingredients ul li:before {
    content: "🥄";
    position: absolute;
    left: 0;
}

.instructions ol {
    margin-left: 1rem;
}

.instructions ol li {
    padding: 0.5rem 0;
    line-height: 1.6;
}

.nutrition-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.nutrition-info h4 {
    color: #e67e22;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.nutrition-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Recipe Lists */
.recipe-list {
    margin: 2rem 0;
}

.recipe-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.recipe-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recipe-item h3 {
    color: #e67e22;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.recipe-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.difficulty.easy {
    background-color: #d4edda;
    color: #155724;
}

.difficulty.medium {
    background-color: #fff3cd;
    color: #856404;
}

.diet {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.diet.vegetarian {
    background-color: #d1ecf1;
    color: #0c5460;
}

.diet.healthy {
    background-color: #d4edda;
    color: #155724;
}

.diet.traditional {
    background-color: #f8d7da;
    color: #721c24;
}

.diet.superfood {
    background-color: #e2e3e5;
    color: #383d41;
}

.diet.gourmet {
    background-color: #ffeaa7;
    color: #856404;
}

.diet.low-carb {
    background-color: #d1ecf1;
    color: #0c5460;
}

.diet.gluten-free {
    background-color: #f4e4bc;
    color: #8a6d3b;
}

.diet.kids {
    background-color: #ffcccb;
    color: #a94442;
}

.diet.fun {
    background-color: #dda0dd;
    color: #6b2c91;
}

/* Shopping Lists */
.shopping-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.shopping-category {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
}

.shopping-category h4 {
    color: #e67e22;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f39c12;
}

.shopping-category ul {
    list-style: none;
    margin-left: 0;
}

.shopping-category ul li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.shopping-category ul li:before {
    content: "🛒";
    position: absolute;
    left: 0;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tip-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #e67e22, #f39c12);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.tip-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.tip-card p {
    color: #666;
    line-height: 1.6;
}

/* Weekly Plans */
.weekly-menu,
.weekly-breakfast-plan,
.meal-plan,
.dessert-plan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.day-menu,
.day-plan,
.day-dessert {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border-top: 4px solid #e67e22;
}

.day-menu h4,
.day-plan h4,
.day-dessert h4 {
    color: #e67e22;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.day-menu p,
.day-plan ul,
.day-dessert p {
    color: #666;
    margin: 0;
}

.day-plan ul {
    list-style: none;
    text-align: left;
    margin-left: 0;
}

.day-plan ul li {
    padding: 0.25rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.day-plan ul li:last-child {
    border-bottom: none;
}

/* Special Content Sections */
.kids-recipes,
.snacks-grid,
.cookies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.cookie-item,
.snack-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
}

.cookie-item h3,
.snack-item h3 {
    color: #e67e22;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.safety-note {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    color: #856404;
}

.baby-food-section {
    margin: 2rem 0;
}

/* Protein Sources and Similar Lists */
.protein-sources,
.glycemic-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.protein-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    border-top: 4px solid #27ae60;
}

.protein-item h4 {
    color: #27ae60;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.protein-item ul {
    list-style: none;
    margin-left: 0;
}

.protein-item ul li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.protein-item ul li:before {
    content: "💪";
    position: absolute;
    left: 0;
}

/* Glycemic Index Table */
.glycemic-table h4 {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
}

.glycemic-table h4:nth-of-type(1) {
    background-color: #d4edda;
    color: #155724;
}

.glycemic-table h4:nth-of-type(2) {
    background-color: #fff3cd;
    color: #856404;
}

.glycemic-table h4:nth-of-type(3) {
    background-color: #f8d7da;
    color: #721c24;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* FAQ Section */
.faq-section {
    margin: 3rem 0;
}

.faq-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.faq-item h4 {
    color: #e67e22;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Article Footer */
.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.author-bio {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 2rem;
}

.author-avatar {
    font-size: 3rem;
    flex-shrink: 0;
}

.author-info h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.author-info p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Sidebar */
.article-sidebar {
    /* Sidebar styles */
}

.sidebar-widget {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e67e22;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease;
}

.related-post:hover {
    background-color: #e8f4fd;
    color: inherit;
}

.related-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.related-title {
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.4;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud .tag {
    background-color: #f8f9fa;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-cloud .tag:hover {
    background-color: #e67e22;
    color: white;
}

.newsletter-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.newsletter-widget h3 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.newsletter-widget p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

/* Responsive Design for Blog */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-sidebar {
        order: -1;
    }

    .sidebar-widget {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2.5rem;
    }

    .article-header h1 {
        font-size: 2.5rem;
    }

    .featured-post {
        padding: 2rem;
    }

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

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

    .tips-grid,
    .shopping-lists,
    .protein-sources {
        grid-template-columns: 1fr;
    }

    .weekly-menu,
    .weekly-breakfast-plan,
    .meal-plan {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-benefits {
        flex-direction: column;
        gap: 1rem;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .categories-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-cta-content {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .blog-header h1,
    .article-header h1 {
        font-size: 2rem;
    }

    .featured-post {
        padding: 1.5rem;
    }

    .recipe-card {
        padding: 1.5rem;
    }

    .tip-card {
        padding: 1.5rem;
    }

    .weekly-menu,
    .weekly-breakfast-plan,
    .meal-plan {
        grid-template-columns: 1fr;
    }

    .sidebar-widget {
        padding: 1.5rem;
    }

    .newsletter-benefits {
        font-size: 0.8rem;
    }

    .tags-cloud {
        justify-content: center;
    }
}

/* Print styles for blog */
@media print {
    .article-sidebar,
    .newsletter-cta,
    .popular-tags,
    .cta-box,
    .author-bio {
        display: none !important;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .recipe-card,
    .tip-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .article-header {
        background: none !important;
        color: black !important;
        padding: 2rem 0;
    }

    .article-header h1 {
        color: black !important;
    }
}
