/* Blog-specific CSS for GrassID */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.blog-hero h1 {
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-hero .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-cta {
    margin-top: 2rem;
}

/* Featured Articles */
.featured-articles {
    padding: 4rem 0;
    background: var(--white);
}

.featured-articles h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 3rem;
}

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

.featured-article {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

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

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    background: var(--light-green);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-article h3 {
    font-size: 1.25rem;
    color: var(--dark-green);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.featured-article h3 a {
    color: inherit;
    text-decoration: none;
}

.featured-article h3 a:hover {
    color: var(--primary-green);
}

.featured-article p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.article-meta time {
    font-weight: 500;
}

/* Blog Categories */
.blog-categories {
    padding: 4rem 0;
    background: var(--bg-light);
}

.blog-categories h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 3rem;
}

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

.category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.category-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.category-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-count {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Newsletter Signup */
.newsletter-signup {
    padding: 4rem 0;
    background: var(--primary-green);
    color: var(--white);
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 1rem;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    background: var(--dark-green);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
}

.newsletter-disclaimer {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Individual Blog Article Styles */
.blog-article {
    background: var(--white);
}

.article-header {
    padding: 3rem 0 2rem;
    background: var(--bg-light);
}

.article-header .article-category {
    margin-bottom: 1rem;
}

.article-header h1 {
    font-size: 2.75rem;
    color: var(--dark-green);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-lead {
    font-size: 1.25rem;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 2rem;
    font-weight: 400;
}

.article-header .article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.reading-time,
.article-author {
    color: var(--text-light);
}

.article-header .article-image {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-header .article-image img {
    width: 100%;
    height: auto;
}

/* Article Content */
.article-content {
    padding: 3rem 0;
}

.article-content h2 {
    font-size: 2rem;
    color: var(--dark-green);
    margin: 2.5rem 0 1.5rem;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

.article-content h4 {
    font-size: 1.25rem;
    color: var(--dark-green);
    margin: 1.5rem 0 1rem;
}

.article-content p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

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

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.article-content strong {
    color: var(--dark-green);
    font-weight: 600;
}

/* Table of Contents */
.table-of-contents {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary-green);
}

.table-of-contents h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--dark-green);
    font-size: 1.25rem;
}

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

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

.table-of-contents a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.table-of-contents a:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

/* Pro Tips and Callouts */
.pro-tip {
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.pro-tip h4 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.pro-tip p {
    margin: 0;
}

.pro-tip a {
    color: var(--white);
    text-decoration: underline;
}

/* Special Content Sections */
.identification-guide,
.disease-grid,
.grass-identification-cards {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.characteristic-grid,
.grass-identification-cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.disease-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.characteristic-item,
.disease-card,
.grass-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.characteristic-item img,
.disease-card img,
.grass-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.grass-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.grass-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.grass-link:hover {
    text-decoration: underline;
}

/* Seasonal Sections */
.seasonal-section {
    margin: 3rem 0;
}

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

.task-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
}

.task-card h4 {
    color: var(--dark-green);
    margin: 0 0 1rem 0;
}

.task-card ul {
    margin: 0;
    padding-left: 1.5rem;
}

.task-priority {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-high {
    border-left: 4px solid #f44336;
}

.priority-high .task-priority {
    background: #f44336;
    color: white;
}

.priority-medium {
    border-left: 4px solid #ff9800;
}

.priority-medium .task-priority {
    background: #ff9800;
    color: white;
}

.priority-low {
    border-left: 4px solid #4caf50;
}

.priority-low .task-priority {
    background: #4caf50;
    color: white;
}

/* Monthly Calendar */
.monthly-calendar {
    margin: 2rem 0;
}

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

.month-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-green);
}

.month-card h3 {
    margin: 0 0 1rem 0;
    color: var(--dark-green);
    font-size: 1.5rem;
}

.task-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.task-list li {
    padding: 0.25rem 0;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.task-list li:before {
    content: "• ";
    color: var(--primary-green);
    font-weight: bold;
    margin-right: 0.5rem;
}

.activity-level {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.activity-level.high {
    background: #f44336;
    color: white;
}

.activity-level.medium {
    background: #ff9800;
    color: white;
}

.activity-level.low {
    background: #4caf50;
    color: white;
}

/* FAQ Sections */
.faq-container {
    margin: 2rem 0;
}

.faq-item {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-green);
    font-size: 1.25rem;
}

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

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.cta-content h3 {
    font-size: 2rem;
    margin: 0 0 1rem 0;
    color: var(--white);
}

.cta-content p {
    font-size: 1.25rem;
    margin: 0 0 2rem 0;
    color: var(--white);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 500;
}

.feature-icon {
    font-size: 1.25rem;
}

/* Related Articles */
.related-articles {
    margin: 3rem 0 0 0;
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
}

.related-articles h3 {
    font-size: 1.75rem;
    color: var(--dark-green);
    margin-bottom: 2rem;
}

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

.related-article {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    transition: background 0.3s;
}

.related-article:hover {
    background: #e8e8e8;
}

.related-article img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.related-article h4 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}

.related-article h4 a {
    color: var(--dark-green);
    text-decoration: none;
}

.related-article h4 a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.related-article p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-lead {
        font-size: 1.1rem;
    }
    
    .article-header .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .characteristic-grid,
    .disease-grid,
    .grass-identification-cards,
    .task-grid,
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .related-article {
        flex-direction: column;
    }
    
    .related-article img {
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 2rem 1rem;
    }
    
    .blog-hero h1 {
        font-size: 1.75rem;
    }
    
    .article-header {
        padding: 2rem 0 1rem;
    }
    
    .article-header h1 {
        font-size: 1.75rem;
    }
    
    .article-content {
        padding: 2rem 0;
    }
    
    .table-of-contents {
        padding: 1.5rem;
    }
}