/* =============================================================================
   BLOG & INSIGHTS STYLES - Light Theme
   Matches the minimalist design of the public site
   ============================================================================= */

/* Blog Hero */
.blog-hero {
    background: var(--color-bg-primary);
    padding: 100px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.blog-hero .lead {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Filter */
.blog-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem 0;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg-primary);
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

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

.blog-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Blog Card */
.blog-card {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: var(--color-accent);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--color-bg-secondary);
    position: relative;
}

.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-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 3rem;
}

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

.blog-card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
    line-height: 1.4;
}

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

.blog-card-excerpt {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.blog-card-meta i {
    margin-right: 0.4rem;
}

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

.blog-card-read-more i {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-read-more i {
    transform: translateX(4px);
}

/* Single Blog Post */
.blog-post-article {
    background: var(--color-bg-primary);
}

.blog-post-hero {
    background: var(--color-bg-primary);
    padding: 100px 0 60px;
    border-bottom: 1px solid var(--color-border);
}

.blog-post-header {
    max-width: 900px;
    margin: 0 auto;
}

.blog-post-category-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.blog-post-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--color-text-primary);
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

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

.author-icon {
    font-size: 2.5rem;
    color: var(--color-text-muted);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-info strong {
    font-size: 1rem;
    color: var(--color-text-primary);
}

.author-info span {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.blog-post-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.blog-post-featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 2rem;
}

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

/* Blog Post Content */
.blog-post-content {
    background: var(--color-bg-primary);
}

.blog-post-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.blog-post-body h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--color-text-primary);
}

.blog-post-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--color-text-primary);
}

.blog-post-body p {
    margin-bottom: 1.5rem;
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-post-body li {
    margin-bottom: 0.75rem;
}

.blog-post-body a {
    color: var(--color-accent);
    text-decoration: underline;
}

.blog-post-body a:hover {
    text-decoration: none;
}

.blog-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.blog-post-body blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--color-bg-secondary);
    font-style: italic;
    color: var(--color-text-secondary);
}

.blog-post-tags {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.tag-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Related Posts */
.related-posts {
    background: var(--color-bg-secondary);
}

.related-posts h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

/* Back to Blog */
.back-to-blog {
    background: var(--color-bg-primary);
    padding: 3rem 0;
}

/* Empty State */
.empty-state {
    padding: 5rem 2rem;
}

.empty-state i {
    color: var(--color-text-muted);
}

.empty-state h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

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

    .blog-hero .lead {
        font-size: 1.1rem;
    }

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

    .blog-post-title {
        font-size: 2rem;
    }

    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .blog-post-body {
        font-size: 1rem;
    }

    .blog-post-body h2 {
        font-size: 1.6rem;
    }

    .blog-post-body h3 {
        font-size: 1.3rem;
    }
}

/* Dark Mode Support (if needed in the future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* =============================================================================
   ARTICLE CATEGORIES DESIGN (Home Page Blog Section)
   Inspired by modern card-based layouts with image overlays
   ============================================================================= */

/* Section Header with Browse Button */
.section-header-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 0.5rem 0;
}

.section-header-text p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.browse-all-btn {
    padding: 0.75rem 2rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.browse-all-btn:hover {
    background: var(--color-text-primary);
    color: var(--color-bg-primary);
    border-color: var(--color-text-primary);
}

/* Article Categories Grid */
.article-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Article Category Card */
.article-category-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 450px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.article-category-card:hover {
    transform: scale(1.05);
}

.article-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Article Card Image */
.article-card-image {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.article-card-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Arrow Icon in Top Right */
.article-card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.article-category-card:hover .article-card-arrow {
    background: var(--color-accent);
    color: #ffffff;
    transform: rotate(-45deg);
}

/* Content Overlay at Bottom */
.article-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    z-index: 1;
}

.article-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.article-card-excerpt {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-header-with-button {
        flex-direction: column;
        align-items: flex-start;
    }

    .browse-all-btn {
        width: 100%;
        text-align: center;
    }

    .article-categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-category-card {
        height: 380px;
    }

    .article-card-title {
        font-size: 1.5rem;
    }

    .article-card-excerpt {
        font-size: 0.9rem;
    }

    .article-card-arrow {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }
}
