/* Blog-specific styles */

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

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.blog-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Articles Grid */
.blog-articles {
    padding: 5rem 0;
}

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

.article-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.article-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 2rem auto 1.5rem;
}

.article-content {
    padding: 0 2rem 2rem;
}

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

.article-date,
.article-category {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-category {
    background-color: var(--bg-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.article-card h2 {
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-card h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card h2 a:hover {
    color: var(--primary-color);
}

.article-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Article Page */
.article-page {
    padding: 6rem 0 3rem;
    margin-top: 60px;
}

.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.article-meta {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta i {
    color: var(--primary-color);
}

.article-page h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    line-height: 1.3;
    color: var(--text-primary);
}

.article-icon-large {
    text-align: center;
    margin: 2rem 0;
}

.article-icon-large i {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.8;
}

/* Article Content */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.125rem;
}

.article-content .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-content h2 {
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.article-content h2 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.article-content h3 {
    margin: 2rem 0 1rem;
    color: var(--text-primary);
    font-size: 1.4rem;
}

.article-content h4 {
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.article-content h5 {
    margin: 1rem 0 0.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.article-content li strong {
    color: var(--text-primary);
}

/* Special Content Boxes */
.info-box,
.tip-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.tip-box {
    background-color: #f0f9ff;
    border-left-color: var(--accent-color);
}

.info-box h4,
.tip-box h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-box h4 {
    color: var(--accent-color);
}

.info-box p,
.tip-box p {
    margin: 0;
    color: var(--text-secondary);
}

/* Recipe/Instructions Boxes */
.recipe-box {
    background: linear-gradient(135deg, #fef7cd, #fbbf24);
    border: 1px solid #f59e0b;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    color: #92400e;
}

.recipe-box h4 {
    color: #92400e;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.recipe-box h5 {
    color: #92400e;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.recipe-box ul,
.recipe-box ol {
    margin: 0;
    color: #92400e;
}

.recipe-box p {
    margin: 0.5rem 0;
    color: #92400e;
}

/* Tables */
.cleaning-schedule {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cleaning-schedule th {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.cleaning-schedule td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.cleaning-schedule tr:last-child td {
    border-bottom: none;
}

.cleaning-schedule tr:nth-child(even) {
    background-color: var(--bg-secondary);
}

/* Planning Sections */
.month-plan {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.month-plan h4 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.month-plan h5 {
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.1rem;
}

.month-plan ul {
    margin: 0 0 1rem 0;
}

.special-tasks {
    background-color: rgba(37, 99, 235, 0.1);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: var(--radius-md);
}

.special-tasks h5 {
    color: var(--primary-color);
    margin: 0 0 0.75rem 0;
}

.special-tasks ul {
    margin: 0;
}

/* Household Plans */
.household-plan {
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.household-plan h4 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.household-plan ul {
    margin: 0 0 1.5rem 0;
}

/* Article Footer */
.article-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.tag {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

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

.article-share span {
    color: var(--text-secondary);
    font-weight: 500;
}

.article-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-share a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Related Articles */
.related-articles {
    max-width: 800px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.related-articles h3 {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

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

.related-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--text-secondary);
}

.related-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.related-card h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-header {
        padding: 6rem 0 3rem;
    }
    
    .blog-header h1 {
        font-size: 2.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-page h1 {
        font-size: 2rem;
    }
    
    .article-content {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .article-content .lead {
        font-size: 1.125rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-share {
        align-self: stretch;
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .recipe-box,
    .info-box,
    .tip-box,
    .month-plan,
    .household-plan {
        margin: 1.5rem 0;
        padding: 1.5rem;
    }
    
    .cleaning-schedule {
        font-size: 0.875rem;
    }
    
    .cleaning-schedule th,
    .cleaning-schedule td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .article-page h1 {
        font-size: 1.75rem;
    }
    
    .article-content h2 {
        font-size: 1.25rem;
    }
    
    .article-icon-large i {
        font-size: 3rem;
    }
    
    .cleaning-schedule {
        font-size: 0.75rem;
    }
    
    .cleaning-schedule th,
    .cleaning-schedule td {
        padding: 0.5rem 0.25rem;
    }
}

/* Print Styles for Articles */
@media print {
    .article-header,
    .article-footer,
    .related-articles {
        page-break-inside: avoid;
    }
    
    .article-content h2,
    .article-content h3 {
        page-break-after: avoid;
    }
    
    .recipe-box,
    .info-box,
    .tip-box,
    .month-plan {
        page-break-inside: avoid;
        background: #f9f9f9 !important;
        border: 1px solid #ccc !important;
    }
    
    .cleaning-schedule {
        page-break-inside: avoid;
    }
}
