/* Blog Styles - FlexPath */
/* Inherits base styles from ../styles.css */

/* Blog Index Page */
.blog-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #f8faff 0%, #e8f4ff 100%);
    text-align: center;
}

.blog-hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.blog-hero p {
    font-size: 18px;
    color: #555;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Series Section */
.blog-series-section {
    padding: 80px 0;
    background: #ffffff;
}

.blog-series-section:nth-child(odd) {
    background: #f8faff;
}

.series-header {
    margin-bottom: 40px;
}

.series-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #007AFF;
    background: rgba(0, 122, 255, 0.08);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.series-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.series-header p {
    font-size: 17px;
    color: #666;
    line-height: 1.6;
    max-width: 700px;
}

/* Article Cards */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.article-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    border-color: rgba(0, 122, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.1);
    transform: translateY(-2px);
}

.article-card .part-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #007AFF;
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.35;
}

.article-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.65;
    flex: 1;
}

.article-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #007AFF;
    margin-top: 16px;
    text-decoration: none;
}

.article-card .read-more svg {
    transition: transform 0.2s ease;
}

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

/* Article Page */
.article-hero {
    padding: 140px 0 40px;
    background: linear-gradient(135deg, #f8faff 0%, #e8f4ff 100%);
}

.article-hero .container {
    max-width: 800px;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.article-breadcrumb a {
    color: #007AFF;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

.article-breadcrumb .separator {
    color: #ccc;
}

.article-breadcrumb .current {
    color: #888;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-meta .series-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #007AFF;
    background: rgba(0, 122, 255, 0.08);
    padding: 5px 12px;
    border-radius: 100px;
}

.article-meta .part-info {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

.article-hero h1 {
    font-size: 38px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.25;
    margin-bottom: 16px;
}

.article-hero .article-excerpt {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
}

/* Article Body */
.article-body {
    padding: 60px 0 80px;
    background: #ffffff;
}

.article-body .container {
    max-width: 800px;
}

.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 48px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 36px;
    margin-bottom: 16px;
    line-height: 1.35;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content hr {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 48px 0;
}

.article-content em {
    font-style: italic;
}

/* Series Navigation */
.series-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e8e8e8;
}

.series-nav a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    max-width: 48%;
}

.series-nav a:hover {
    border-color: rgba(0, 122, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.08);
}

.series-nav a .nav-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #007AFF;
}

.series-nav a .nav-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.series-nav .next-article {
    text-align: right;
    margin-left: auto;
}

/* Article CTA */
.article-cta {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 122, 255, 0.1);
    text-align: center;
}

.article-cta h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    margin-top: 0;
}

.article-cta p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.article-cta .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #007AFF;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-cta .cta-btn:hover {
    background: #0056CC;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.article-cta .cta-note {
    font-size: 13px;
    color: #888;
    margin-top: 12px;
    margin-bottom: 0;
}

/* Blog CTA Banner */
.blog-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #007AFF, #0056CC);
    text-align: center;
    color: white;
}

.blog-cta-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.blog-cta-section p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.blog-cta-section .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: white;
    color: #007AFF;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-cta-section .cta-btn:hover {
    background: #f0f7ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 0 40px;
    }

    .blog-hero h1 {
        font-size: 32px;
    }

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

    .article-hero {
        padding: 120px 0 30px;
    }

    .article-hero h1 {
        font-size: 28px;
    }

    .series-nav {
        flex-direction: column;
    }

    .series-nav a {
        max-width: 100%;
    }

    .series-nav .next-article {
        text-align: left;
    }

    .article-cta {
        padding: 28px 20px;
    }
}
