/* =========================================
   BLOG PAGE STYLES
   ========================================= */

/* Blog Header */
.blog-header {
    padding: 7rem 0 1rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.blog-header h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 0;
    color: var(--color-text);
}

.blog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.filter-tabs {
    display: flex;
    gap: 2rem;
}

.filter-tab {
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.filter-tab:hover {
    color: var(--color-text);
}

.filter-tab.active {
    color: var(--color-text);
    font-weight: 500;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    align-items: stretch;
}

/* Blog Posts List (Left - Scrollable) */
.blog-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Featured Sidebar (Right - Sticky) */
.blog-featured-sidebar {
    position: relative;
}

/* Featured Post */
.featured-post {
    position: sticky;
    top: 100px;
    margin-bottom: 0;
}

.featured-image {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

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

.featured-content .post-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.featured-content h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    line-height: 1.2;
}

.featured-content p {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.post-date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

a.post-card,
a.featured-post {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
}

.post-image {
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

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

.post-content .post-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.post-content h3 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--color-text);
    line-height: 1.3;
}

.post-content p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

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

.sidebar-section h4 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-post {
    display: block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.sidebar-post:hover {
    opacity: 0.8;
}

.sidebar-post-image {
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.sidebar-post-content h5 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.sidebar-post-content .post-date {
    font-size: 0.8rem;
}

/* Placeholder Images */
.placeholder-image {
    width: 100%;
    height: 100%;
}

.gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.gradient-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.gradient-6 {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* Responsive */
@media (max-width: 1200px) {
    .blog-layout {
        grid-template-columns: 280px 1fr;
        gap: 3rem;
    }
}

@media (max-width: 968px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-featured-sidebar {
        position: static;
        order: -1;
        margin-bottom: 2rem;
    }

    .blog-posts-list {
        order: 1;
    }
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2.5rem;
    }

    .filter-tabs {
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

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

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