/* Blog-specific styles - Stripe-inspired design */

/* Blog Header */
.blog-hero {
    background: white;
    padding: 80px 0 60px;
    border-bottom: 1px solid #e5e7eb;
}

.blog-hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    color: #111827;
    text-align: center;
}

.blog-hero p {
    font-size: 20px;
    color: #6b7280;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 80px 0;
    max-width: 900px;
    margin: 0 auto;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e5e7eb;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: linear-gradient(135deg, #e1f0ff 0%, #f8fafc 100%);
}

.blog-card-content {
    padding: 32px;
}

.blog-category {
    display: inline-block;
    background: #eff6ff;
    color: #2f91e7;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.blog-card h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #111827;
}

.blog-card-link:hover h2 {
    color: #2f91e7;
}

.blog-excerpt {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2f91e7, #1e7bc8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.blog-author-info {
    display: flex;
    flex-direction: column;
}

.blog-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.blog-author-role {
    font-size: 13px;
    color: #6b7280;
}

.blog-date {
    font-size: 14px;
    color: #9ca3af;
    margin-left: auto;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2f91e7;
    font-weight: 600;
    font-size: 16px;
    margin-top: 16px;
    transition: gap 0.2s ease;
}

.blog-card-link:hover .blog-read-more {
    gap: 12px;
}

/* Article Page */
.article-hero {
    background: white;
    padding: 80px 0 40px;
    border-bottom: 1px solid #e5e7eb;
}

.article-header {
    max-width: 800px;
    margin: 0 auto;
}

.article-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #111827;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.article-image {
    width: 100%;
    max-width: 1000px;
    max-height: 500px;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
    margin-top: 40px;
    object-fit: cover;
}

.article-content {
    max-width: 800px;
    margin: 60px auto;
    font-size: 18px;
    line-height: 1.8;
    color: #1a1a1a;
}

.article-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 48px 0 24px;
    color: #111827;
}

.article-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 36px 0 16px;
    color: #111827;
}

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

.article-content ul,
.article-content ol {
    margin: 24px 0 24px 32px;
}

.article-content li {
    margin-bottom: 12px;
}

.article-content a {
    color: #2f91e7;
    text-decoration: none;
    border-bottom: 1px solid rgba(47, 145, 231, 0.3);
}

.article-content a:hover {
    border-bottom-color: #2f91e7;
}

.article-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 32px;
    transition: color 0.2s ease;
}

.article-back:hover {
    color: #2f91e7;
}

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

    .blog-hero p {
        font-size: 18px;
    }

    .blog-grid {
        padding: 48px 0;
        gap: 32px;
    }

    .blog-card-image {
        height: 250px;
    }

    .blog-card-content {
        padding: 24px;
    }

    .blog-card h2 {
        font-size: 22px;
    }

    .blog-excerpt {
        font-size: 15px;
    }

    .article-title {
        font-size: 32px;
    }

    .article-content {
        font-size: 16px;
        margin: 40px auto;
    }

    .article-content h2 {
        font-size: 26px;
    }

    .article-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 48px 0 32px;
    }

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

    .blog-hero p {
        font-size: 16px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card h2 {
        font-size: 20px;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .blog-date {
        margin-left: 0;
    }

    .article-hero {
        padding: 48px 0 24px;
    }

    .article-title {
        font-size: 26px;
    }
}
