/* Ensure navigation is always clickable */
.header,
.nav-menu,
.nav-link,
.nav-cta,
.theme-switcher,
.mobile-menu-toggle {
    pointer-events: auto !important;
    z-index: 1000;
}

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    padding: 6rem 0 4rem;
    margin-top: 80px; /* Account for fixed header */
    text-align: center;
    color: white;
}

.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.blog-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    min-height: 60vh;
}

/* Category Filter */
.blog-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-pill {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    background: #f3f4f6;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-pill:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.category-pill.active {
    background: #3b82f6;
    color: white;
}

body[data-theme="dark"] .category-pill {
    background: #374151;
    color: #d1d5db;
}

body[data-theme="dark"] .category-pill:hover {
    background: #3b82f6;
    color: white;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

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

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.blog-category {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-date {
    color: #6b7280;
    font-size: 0.875rem;
}

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

.blog-card-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #3b82f6;
}

.blog-card-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.author-name {
    font-size: 0.875rem;
    color: #4b5563;
    font-weight: 500;
}

.read-more {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Dark Theme */
body[data-theme="dark"] .blog-card {
    background: #1f2937;
}

body[data-theme="dark"] .blog-card-title a {
    color: #f3f4f6;
}

body[data-theme="dark"] .blog-card-excerpt {
    color: #9ca3af;
}

body[data-theme="dark"] .blog-date {
    color: #9ca3af;
}

body[data-theme="dark"] .author-name {
    color: #d1d5db;
}

body[data-theme="dark"] .blog-card-footer {
    border-top-color: #374151;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
    grid-column: 1 / -1;
}

.no-posts i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.no-posts p {
    font-size: 1.125rem;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 2.5rem;
    }

    .blog-hero-subtitle {
        font-size: 1.125rem;
    }

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

    .blog-categories {
        justify-content: flex-start;
    }
}
