/* Blog Homepage Styles */

/* Blog section styles */
#blog-header,
#blog-posts {
    margin: 0 auto;
}

#blog-header {
    padding: 10rem 2rem 4rem;
    text-align: center;
}

.blog-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-description {
    font-size: 1.1rem;
    color: #666;
    margin-top: 1rem;
    line-height: 1.6;
}

#blog-posts {
    padding: 2rem 2rem 4rem;
}

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 4rem;
    align-items: start;
}

/* Blog Posts Grid - Simple List View */
.blog-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.blog-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 2rem 0;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.blog-card:first-child {
    padding-top: 0;
}

.blog-card:last-child {
    border-bottom: none;
}

.blog-card:hover {
    background: #fafafa;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
}

.blog-card-header {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-card-date {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.blog-card-category {
    font-size: 0.75rem;
    color: #656D4A;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-content {
    flex: 1;
    min-width: 0;
}

.blog-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    line-height: 1.3;
    font-weight: 600;
}

.blog-card-excerpt {
    display: none;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.blog-tag {
    background: #f5f5f5;
    color: #666;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e8e8e8;
}

.blog-card-link {
    display: none;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.sidebar-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-posts-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

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

.sidebar-posts-list a {
    text-decoration: none;
    color: #333;
    display: block;
}

.sidebar-post-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.3rem;
}

.sidebar-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.sidebar-posts-list a:hover .sidebar-post-title {
    color: #656D4A;
}

.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    margin-bottom: 0.8rem;
}

.sidebar-categories a {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: block;
    padding: 0.3rem 0;
}

.sidebar-categories a:hover,
.sidebar-categories a.active {
    color: #656D4A;
    font-weight: 600;
}

/* Mobile Responsive */
@media screen and (max-width: 1200px) {
    .blog-container {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        gap: 2rem;
    }

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

@media screen and (max-width: 768px) {
    #blog-header {
        padding: 6rem 1rem 3rem;
    }

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

    .blog-description {
        font-size: 1rem;
    }

    #blog-posts {
        padding: 1.5rem 1rem 3rem;
    }

    .blog-container {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .blog-posts-grid {
        gap: 0;
    }

    .blog-card {
        padding: 1.5rem 0;
        gap: 1rem;
        flex-direction: column;
    }

    .blog-card:hover {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .blog-card-title {
        font-size: 1.3rem;
    }

    .blog-card-header {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    #blog-header {
        padding: 5rem 1rem 2rem;
    }

    .blog-container {
        padding: 0 0.75rem;
    }

    .blog-card {
        padding: 1.25rem 0;
        gap: 0.75rem;
    }

    .blog-card-title {
        font-size: 1.2rem;
    }

    .blog-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-card-excerpt {
        font-size: 0.95rem;
    }
}
