/* Blog Specific Styles */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 60px 0;
    text-align: center;
}

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

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

/* Blog Content */
.blog-content {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.blog-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.blog-date {
    color: #666;
}

.blog-category {
    background-color: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.blog-info h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.blog-info h2 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-info h2 a:hover {
    color: #3498db;
}

.blog-info p {
    color: #666;
    margin-bottom: 1.5rem;
    flex: 1;
    line-height: 1.6;
}

.read-more {
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.read-more:hover {
    color: #2980b9;
    gap: 0.75rem;
}

.read-more i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Article Page Styles */
.article-content {
    padding: 40px 0 80px;
}

.article-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.article-date::before {
    content: '📅 ';
}

.article-category {
    background-color: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
}

.article-read-time::before {
    content: '⏱️ ';
}

.article-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: normal;
    margin-bottom: 0;
    line-height: 1.6;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.article-image {
    text-align: center;
    margin: 2rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    border-radius: 12px;
    color: white;
}

.article-image i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.article-image p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.article-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

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

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

.article-body ul,
.article-body ol {
    margin: 1rem 0 1.5rem 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    color: #666;
    list-style: disc;
}

.article-body li strong {
    color: #2c3e50;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: #666;
}

.article-body a {
    color: #3498db;
    text-decoration: underline;
}

.article-body a:hover {
    color: #2980b9;
}

/* Special Content Boxes */
.recipe-box {
    background-color: #f8f9fa;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.recipe-box h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 1px solid #3498db;
    padding-bottom: 0.5rem;
}

.recipe-box ul,
.recipe-box ol {
    margin-left: 1.5rem;
}

.recipe-box li {
    margin-bottom: 0.5rem;
    color: #666;
}

.weekly-schedule {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.weekly-schedule h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.weekly-schedule p {
    color: #666;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid #3498db;
}

.timeline {
    margin: 2rem 0;
}

.timeline h4 {
    background-color: #3498db;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.timeline ul {
    background-color: #f8f9fa;
    margin: 0;
    padding: 1rem 1rem 1rem 2rem;
    border-radius: 0 0 8px 8px;
    border: 2px solid #3498db;
    border-top: none;
}

.timeline li {
    margin-bottom: 0.5rem;
    color: #666;
    list-style: disc;
}

/* Article Footer */
.article-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

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

.article-share h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-buttons a:hover {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
    transform: translateY(-2px);
}

.article-navigation {
    text-align: center;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    color: #2980b9;
    gap: 0.75rem;
}

.back-to-blog i {
    transition: transform 0.3s ease;
}

.back-to-blog:hover i {
    transform: translateX(-3px);
}

/* Related Articles */
.related-articles {
    padding: 60px 0;
    background-color: white;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.related-articles .blog-card {
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.related-articles .blog-image {
    height: 120px;
    font-size: 2rem;
}

.related-articles .blog-info {
    padding: 1rem;
}

.related-articles .blog-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.related-articles .blog-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Responsive Design for Blog */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-header p {
        font-size: 1rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .article-body {
        padding: 0 1rem;
    }
    
    .article-image {
        padding: 2rem 1rem;
    }
    
    .article-image i {
        font-size: 3rem;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .share-buttons a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .recipe-box,
    .weekly-schedule,
    .timeline {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 40px 0;
    }
    
    .blog-header h1 {
        font-size: 1.75rem;
    }
    
    .blog-content {
        padding: 40px 0;
    }
    
    .blog-card {
        margin: 0 10px;
    }
    
    .blog-image {
        height: 150px;
        font-size: 2.5rem;
    }
    
    .article-content {
        padding: 20px 0 40px;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .article-body h3 {
        font-size: 1.25rem;
    }
    
    .related-articles {
        padding: 40px 0;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-buttons a {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* Print Styles for Articles */
@media print {
    .article-header {
        text-align: left;
    }
    
    .breadcrumb,
    .article-share,
    .article-navigation,
    .related-articles {
        display: none;
    }
    
    .article-image {
        background: #f0f0f0;
        color: #333;
        border: 1px solid #ccc;
    }
    
    .article-body {
        font-size: 11pt;
        line-height: 1.6;
    }
    
    .article-body h2,
    .article-body h3,
    .article-body h4 {
        page-break-after: avoid;
        color: #000;
    }
    
    .recipe-box,
    .weekly-schedule,
    .timeline {
        border: 1px solid #ccc;
        background: #f9f9f9;
        page-break-inside: avoid;
    }
}
