/* Blog Index Specific Styles */
/* Requires /css/styles.css, /css/components/*.css, and /blog/blog-articles.css to be loaded first */

/* ===== Blog Index Unique Styles ===== */

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-header p {
    font-size: 1.2em;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-post-preview {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.blog-post-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.blog-post-preview h2 {
    margin-bottom: 15px;
    font-size: 1.4em;
}

.blog-post-preview h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-preview h2 a:hover {
    color: var(--primary-color);
}

.excerpt {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    text-decoration: underline;
    gap: 8px;
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-filter {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

/* Blog index specific header styles - different from styles.css .header */
.header-content h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.8em;
}

.header-content p {
    color: var(--text-secondary);
    margin: 0;
}

.site-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0 8px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Blog Index Specific Media Queries */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2em;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}