/* Blog System - Shared Styles */
/* Extends the main style.css utilities */

/* --- Blog Layout Container --- */
.blog-container {
    max-width: 48rem;
    margin: 0 auto;
    padding: 2.5rem 1rem;
}

/* --- Blog Listing Page --- */
.blog-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}
.blog-hero h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
.blog-hero p {
    font-size: 0.875rem;
    color: #64748b;
    max-width: 28rem;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    gap: 1.25rem;
}

.blog-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: block;
}
.blog-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
    transform: translateY(-2px);
}
.blog-card-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
}
.blog-card-tag.stt { background: #eef2ff; color: #4f46e5; }
.blog-card-tag.tts { background: #ecfdf5; color: #059669; }
.blog-card h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.blog-card p {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}
.blog-card-meta {
    font-size: 0.6875rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* --- Article Page --- */
.article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
    transition: all 150ms;
}
.article-back:hover {
    color: #4338ca;
    gap: 0.5rem;
}

.article-header {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.article-header h1 {
    font-size: 1.625rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}
.article-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.article-meta-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 0.375rem;
    background: #eef2ff;
    color: #4f46e5;
}

/* Article Body */
.article-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid #4f46e5;
}
.article-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.article-body p {
    font-size: 0.9375rem;
    line-height: 1.85;
    color: #475569;
    margin-bottom: 1rem;
}
.article-body ul, .article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.article-body li {
    font-size: 0.9375rem;
    line-height: 1.85;
    color: #475569;
    margin-bottom: 0.375rem;
}
.article-body strong {
    color: #1e293b;
    font-weight: 600;
}

.article-image {
    margin: 1.25rem 0 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}
.article-image img {
    display: block;
    width: 100%;
    height: auto;
}
.article-image figcaption {
    font-size: 0.75rem;
    color: #64748b;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 0.625rem 0.75rem;
}

/* Highlight / Tip Box */
.article-tip {
    background: #eef2ff;
    border-left: 3px solid #4f46e5;
    padding: 1rem 1.25rem;
    border-radius: 0 0.75rem 0.75rem 0;
    margin: 1.5rem 0;
}
.article-tip p {
    color: #4338ca;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0;
}

/* Step List */
.article-steps {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}
.article-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.25rem;
}
.article-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

/* CTA Block */
.article-cta {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 1rem;
    text-align: center;
    color: white;
}
.article-cta h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}
.article-cta p {
    font-size: 0.8125rem;
    opacity: 0.85;
    margin-bottom: 1.25rem;
    color: white;
}
.article-cta a {
    display: inline-block;
    background: white;
    color: #4f46e5;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.article-cta a:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Related Articles */
.related-articles {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}
.related-articles h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.related-articles a {
    display: block;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
    transition: all 0.15s;
}
.related-articles a:hover {
    background: #eef2ff;
    color: #4f46e5;
}

/* Blog Footer */
.blog-footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}
.blog-footer p {
    font-size: 0.625rem;
    color: #cbd5e1;
}
.blog-footer a {
    color: #94a3b8;
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.15s;
}
.blog-footer a:hover {
    color: #4f46e5;
}
