/* ============================================
   BLOG STYLES — Piloton
   Dark theme, responsive, SEO-optimized
   ============================================ */

/* ---- Blog Listing Page ---- */
.blog-hero {
    padding: 6rem 0 3rem;
    text-align: center;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
}

.blog-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.2rem;
    color: #a0aec0;
    max-width: 600px;
    margin: 0 auto;
}

.blog-listing {
    padding: 3rem 0 5rem;
    background: #0f0f1a;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
}

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

.blog-card-tag {
    display: inline-block;
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.blog-card-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-body h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-body h2 a:hover {
    color: #667eea;
}

.blog-card-excerpt {
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #718096;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-card-read {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-read:hover {
    color: #a855f7;
}

/* ---- Article Page ---- */
.article-header {
    padding: 6rem 0 3rem;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    text-align: center;
}

.article-header .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

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

.breadcrumb span {
    color: #4a5568;
}

.article-tag {
    display: inline-block;
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.article-header h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #e2e8f0;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #a0aec0;
}

.article-meta svg {
    width: 16px;
    height: 16px;
    stroke: #667eea;
    vertical-align: middle;
    margin-right: 0.3rem;
}

/* Article Body */
.article-body {
    background: #0f0f1a;
    padding: 3rem 0 5rem;
}

.article-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
    color: #cbd5e0;
    font-size: 1.08rem;
    line-height: 1.85;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.article-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content a {
    color: #667eea;
    text-decoration: underline;
    text-decoration-color: rgba(102, 126, 234, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s;
}

.article-content a:hover {
    color: #a855f7;
    text-decoration-color: #a855f7;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

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

.article-content blockquote {
    border-left: 4px solid #667eea;
    background: rgba(102, 126, 234, 0.08);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #a0aec0;
}

.article-content .highlight-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.article-content .highlight-box h4 {
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.article-content .stat-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.article-content .stat-box .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.article-content .stat-box .stat-label {
    color: #a0aec0;
    font-size: 0.95rem;
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
    text-align: center;
}

.article-cta h3 {
    font-size: 1.5rem;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
    border-bottom: none;
    margin-top: 0;
}

.article-cta p {
    color: #a0aec0;
    margin-bottom: 1.5rem;
}

.article-cta .btn-cta {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #a855f7);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.article-cta .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* Related Articles */
.related-articles {
    padding: 3rem 0 4rem;
    background: #0a0a14;
}

.related-articles h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Table of Contents */
.toc {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.toc h4 {
    color: #e2e8f0;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.toc ol {
    padding-left: 1.25rem;
    margin: 0;
}

.toc li {
    margin-bottom: 0.4rem;
}

.toc a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.95rem;
}

.toc a:hover {
    text-decoration: underline;
}

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

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

    .article-header h1 {
        font-size: 1.8rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.4rem;
    }

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

    .article-cta {
        padding: 1.5rem;
    }
}
