/* 
* PolyPisodr Gardens - Blog Stylesheet
* Version: 1.0
* Description: Specific styles for blog pages and articles
*/

/* ======================================================
   Table of Contents:
   1. Blog Layout
   2. Blog Card & Grid Styles
   3. Featured Article
   4. Article Page Styles
   5. Sidebar Styles
   6. Article Navigation
   7. Related Articles
   8. Content Elements (lists, blockquotes, etc.)
   9. Responsive Styles
========================================================= */

/* ======================================================
   1. Blog Layout
========================================================= */
.blog-content {
    background-color: #f9f9f9;
}

.blog-content .container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.blog-main {
    flex: 1;
    min-width: 300px;
}

.blog-sidebar {
    width: 350px;
}

.blog-banner {
    background-color: #1b4f29;
}

/* ======================================================
   2. Blog Card & Grid Styles
========================================================= */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.article-card {
    background-color: #fff;
    border-radius: 0.6rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.article-img {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-img img {
    transform: scale(1.05);
}

.article-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-content h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.article-content h3 a {
    color: #264;
    text-decoration: none;
}

.article-content h3 a:hover {
    color: #396;
}

.article-meta {
    color: #777;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.article-date, .article-category, .article-author {
    display: inline-flex;
    align-items: center;
}

.article-meta i {
    margin-right: 0.5rem;
}

.read-more {
    margin-top: auto;
    padding-top: 2rem;
}

/* ======================================================
   3. Featured Article
========================================================= */
.featured-article {
    background-color: #fff;
    border-radius: 0.6rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 5rem;
}

.featured-img {
    display: block;
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-article:hover .featured-img img {
    transform: scale(1.03);
}

.featured-tag {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background-color: #396;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.featured-content {
    padding: 3rem;
}

.featured-content h2 {
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
}

.featured-content h2 a {
    color: #264;
    text-decoration: none;
}

.featured-content h2 a:hover {
    color: #396;
}

.featured-excerpt {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

/* ======================================================
   4. Article Page Styles
========================================================= */
.article-main {
    background-color: #f9f9f9;
}

.article-main .container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.blog-article {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: 0.6rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.article-sidebar {
    width: 350px;
}

.article-header {
    padding: 3rem 3rem 0;
}

.article-header h1 {
    font-size: 3.6rem;
    margin-bottom: 1.5rem;
}

.article-featured-img {
    width: 100%;
    height: 400px;
    margin: 3rem 0;
    overflow: hidden;
}

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

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

.article-intro {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.6;
    color: #555;
    border-left: 4px solid #396;
    padding-left: 2rem;
    margin-bottom: 3rem;
}

.article-content h2 {
    margin-top: 4rem;
    margin-bottom: 2rem;
    font-size: 2.8rem;
    position: relative;
    padding-bottom: 1rem;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 5rem;
    height: 3px;
    background-color: #396;
}

.article-content h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    color: #264;
}

.article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.article-content p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

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

.article-content a {
    color: #396;
    text-decoration: underline;
}

.article-content a:hover {
    color: #264;
}

/* Article Content Elements */
.info-box, .tip-box, .conclusion-box {
    background-color: #f6f9f7;
    padding: 2.5rem;
    border-radius: 0.6rem;
    margin: 3rem 0;
    position: relative;
    border-left: 4px solid #396;
}

.info-box h3, .tip-box h4, .conclusion-box h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    color: #264;
}

.info-box h3 i, .tip-box h4 i, .conclusion-box h3 i {
    margin-right: 1rem;
    color: #396;
}

.conclusion-box {
    background-color: #f0f7f2;
    border-left-color: #264;
}

.table-responsive {
    overflow-x: auto;
    margin: 3rem 0;
}

.planting-calendar {
    width: 100%;
    border-collapse: collapse;
}

.planting-calendar caption {
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #264;
    text-align: left;
}

.planting-calendar th, .planting-calendar td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.planting-calendar th {
    background-color: #f6f9f7;
    color: #264;
    font-weight: 600;
}

.planting-calendar tr:hover {
    background-color: #f9f9f9;
}

blockquote {
    font-style: italic;
    border-left: 4px solid #396;
    padding-left: 2rem;
    margin: 3rem 0;
    color: #555;
}

/* Author Bio */
.author-bio {
    display: flex;
    align-items: center;
    background-color: #f6f9f7;
    padding: 3rem;
    margin: 4rem 0 0;
    border-top: 1px solid #eee;
}

.author-icon {
    font-size: 6rem;
    color: #ccc;
    margin-right: 2rem;
}

.author-info h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.author-info p {
    margin-bottom: 0;
}

/* ======================================================
   5. Sidebar Styles
========================================================= */
.sidebar-widget {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 0.6rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

.widget-title {
    margin-top: 0;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    font-size: 2rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 5rem;
    height: 2px;
    background-color: #396;
}

/* Category Widget */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.2rem;
}

.category-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    text-decoration: none;
}

.category-list a:hover {
    color: #396;
}

.category-list span {
    background-color: #f6f9f7;
    color: #396;
    padding: 0.3rem 0.8rem;
    border-radius: 3rem;
    font-size: 1.2rem;
}

/* Popular Posts Widget */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.popular-post {
    display: flex;
    align-items: center;
}

.popular-post-img {
    width: 8rem;
    height: 8rem;
    border-radius: 0.4rem;
    overflow: hidden;
    margin-right: 1.5rem;
}

.popular-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
}

.popular-post-content h4 a {
    color: #264;
    text-decoration: none;
}

.popular-post-content h4 a:hover {
    color: #396;
}

.post-meta {
    color: #777;
    font-size: 1.3rem;
    margin-bottom: 0;
}

/* Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag {
    background-color: #f6f9f7;
    color: #396;
    padding: 0.5rem 1.2rem;
    border-radius: 3rem;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #396;
    color: #fff;
    text-decoration: none;
}

/* Table of Contents Widget */
.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
    position: relative;
}

.toc-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #396;
}

.toc-list a {
    color: #333;
    text-decoration: none;
}

.toc-list a:hover {
    color: #396;
}

/* Product List */
.product-list {
    list-style: none;
    margin-bottom: 2rem;
}

.product-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.product-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #396;
}

/* ======================================================
   6. Article Navigation
========================================================= */
.article-navigation {
    display: flex;
    justify-content: space-between;
    padding: 3rem;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-previous a, .nav-next a {
    display: flex;
    align-items: center;
    color: #555;
    text-decoration: none;
    max-width: 300px;
}

.nav-previous a:hover, .nav-next a:hover {
    color: #396;
}

.nav-previous i, .nav-next i {
    font-size: 1.8rem;
    color: #396;
}

.nav-previous i {
    margin-right: 1.5rem;
}

.nav-next i {
    margin-left: 1.5rem;
}

.nav-direction {
    display: block;
    font-size: 1.4rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.nav-title {
    font-weight: 600;
}

.nav-previous {
    margin-right: auto;
}

.nav-next {
    margin-left: auto;
    text-align: right;
}

/* ======================================================
   7. Related Articles
========================================================= */
.related-articles {
    padding: 3rem;
}

.related-articles h3 {
    margin-bottom: 2.5rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2.5rem;
}

.related-article {
    background-color: #f9f9f9;
    border-radius: 0.4rem;
    overflow: hidden;
}

.related-img {
    display: block;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article:hover .related-img img {
    transform: scale(1.05);
}

.related-article h4 {
    padding: 1.5rem;
    margin: 0;
    font-size: 1.6rem;
}

.related-article h4 a {
    color: #264;
    text-decoration: none;
}

.related-article h4 a:hover {
    color: #396;
}

/* ======================================================
   9. Responsive Styles
========================================================= */
@media (max-width: 992px) {
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .blog-main, .blog-article {
        width: 100%;
    }
    
    .blog-sidebar, .article-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .article-header h1 {
        font-size: 3rem;
    }
    
    .article-featured-img {
        height: 300px;
    }
    
    .article-header, .article-content, .author-bio, .article-navigation, .related-articles {
        padding: 2rem;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 2rem;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .nav-previous a, .nav-next a {
        max-width: none;
    }
}

@media (max-width: 576px) {
    .article-grid, .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-header h1 {
        font-size: 2.4rem;
    }
    
    .article-featured-img {
        height: 200px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-icon {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
}
