/* css/blog.css */
/* Blog specific styles */

.page-header-blog {
    background: var(--color-secondary);
    border-bottom-color: var(--color-border);
}

.blog-categories {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

.category-pill {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.category-pill:hover,
.category-pill.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

/* Featured Post */
.featured-post {
    padding: var(--space-3xl) 0;
    background: var(--color-background);
    border-bottom: var(--border-thick);
}

.featured-article {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
    background: var(--color-surface);
    border: var(--border-thick);
    box-shadow: var(--shadow-brutal-lg);
    overflow: hidden;
}

.featured-image {
    position: relative;
    min-height: 400px;
}

.image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: var(--space-lg);
}

.featured-badge {
    background: var(--color-accent);
    color: white;
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    border: var(--border-thin);
    box-shadow: 3px 3px 0px 0px rgba(0, 0, 0, 0.2);
}

.featured-content {
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
    font-family: var(--font-heading);
    flex-wrap: wrap;
}

.post-category {
    background: var(--color-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    font-weight: 600;
}

.post-date {
    color: var(--color-text-muted);
}

.read-time {
    color: var(--color-text-muted);
}

.featured-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.featured-content p {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.post-stats {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Blog Grid Section */
.blog-grid-section {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.section-header-flex h2 {
    margin: 0;
}

.view-all {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.blog-card {
    background: var(--color-surface);
    border: var(--border-thick);
    box-shadow: var(--shadow-brutal);
    transition: var(--transition-base);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px 0px var(--color-border);
}

.card-image {
    height: 200px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: var(--space-md);
}

.card-category {
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    border: var(--border-thin);
    box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.2);
}

.card-content {
    padding: var(--space-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.card-content p {
    margin-bottom: var(--space-md);
    flex-grow: 1;
    font-size: 0.95rem;
}

.read-more {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

/* Topic Sections */
.topic-sections {
    padding: var(--space-3xl) 0;
    background: var(--color-background);
    border-top: var(--border-thick);
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.topic-block {
    background: var(--color-surface);
    border: var(--border-thick);
    padding: var(--space-xl);
    box-shadow: var(--shadow-brutal);
}

.topic-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.topic-block h3 {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border);
}

.topic-list {
    list-style: none;
    margin-bottom: var(--space-md);
}

.topic-list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid #eee;
}

.topic-list li:last-child {
    border-bottom: none;
}

.topic-list a {
    color: var(--color-text-muted);
    transition: var(--transition-fast);
    display: block;
}

.topic-list a:hover {
    color: var(--color-accent);
    transform: translateX(4px);
}

.topic-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Newsletter */
.newsletter-section {
    padding: var(--space-3xl) 0;
    background: var(--color-primary);
    border-top: var(--border-thick);
    border-bottom: var(--border-thick);
}

.newsletter-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
    background: var(--color-surface);
    border: var(--border-thick);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-brutal-lg);
    flex-wrap: wrap;
}

.newsletter-content h2 {
    margin-bottom: var(--space-sm);
    font-size: 1.75rem;
}

.newsletter-content p {
    margin: 0;
    color: var(--color-text-muted);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: var(--border-thick);
    font-family: var(--font-body);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 4px 4px 0px 0px var(--color-accent-light);
}

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

    .featured-image {
        min-height: 250px;
    }

    .newsletter-box {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
        max-width: none;
    }
}

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

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