/* مجهول — تنسيق مقالات المدونة (ثابت، لا يعتمد على Tailwind purge) */

.blog-article-cover {
    margin: 0;
    line-height: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-article-cover-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.blog-article-body {
    color: rgba(229, 231, 235, 0.95);
    font-size: 1.0625rem;
    line-height: 1.9;
}

.blog-article-body > * + * {
    margin-top: 1.25rem;
}

.blog-article-body p {
    margin: 0;
    color: rgba(209, 213, 219, 0.95);
}

.blog-article-body p.blog-intro {
    font-size: 1.125rem;
    line-height: 2;
    color: #f3f4f6;
    padding: 1rem 1.125rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-article-body h2.blog-section-heading {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 2rem 0 1rem;
    padding: 0.875rem 1rem;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.5;
    color: #fff;
    background: linear-gradient(to left, rgba(139, 92, 246, 0.16), rgba(236, 72, 153, 0.08));
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 0.875rem;
}

.blog-article-body h2.blog-section-heading::before {
    content: '';
    flex-shrink: 0;
    width: 0.3rem;
    height: 1.5rem;
    border-radius: 9999px;
    background: linear-gradient(to bottom, #c084fc, #f472b6);
}

.blog-article-body blockquote.blog-pullquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: clamp(1.125rem, 4.5vw, 1.45rem);
    font-weight: 700;
    line-height: 1.8;
    color: #fff;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(236, 72, 153, 0.14));
    border: 1px solid rgba(192, 132, 252, 0.35);
    border-radius: 1rem;
    box-shadow: 0 12px 40px rgba(88, 28, 135, 0.2);
}

.blog-article-body blockquote.blog-pullquote::before {
    content: '💬';
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-article-body ol.blog-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: blog-step;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-article-body ol.blog-steps > li {
    position: relative;
    margin: 0;
    padding: 1rem 3.5rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0.875rem;
    line-height: 1.85;
}

.blog-article-body ol.blog-steps > li::before {
    counter-increment: blog-step;
    content: counter(blog-step);
    position: absolute;
    top: 1rem;
    right: 0.875rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1;
}

.blog-article-body ul.blog-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.blog-article-body ul.blog-bullets > li {
    position: relative;
    margin: 0;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.75rem;
    line-height: 1.85;
}

.blog-article-body ul.blog-bullets > li::before {
    content: '✦';
    position: absolute;
    right: 0.9rem;
    top: 0.85rem;
    color: #c084fc;
    font-size: 0.85rem;
}

.blog-article-body ul.blog-sublist {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0.75rem 0.875rem 0.25rem;
    border-radius: 0.75rem;
    background: rgba(15, 10, 30, 0.45);
    border: 1px dashed rgba(167, 139, 250, 0.25);
}

.blog-article-body ul.blog-sublist > li {
    position: relative;
    padding: 0.35rem 1.5rem 0.35rem 0;
    color: rgba(209, 213, 219, 0.9);
    font-size: 0.98rem;
    line-height: 1.75;
}

.blog-article-body ul.blog-sublist > li::before {
    content: '–';
    position: absolute;
    right: 0;
    color: #f472b6;
    font-weight: 700;
}

.blog-article-body a {
    color: #d8b4fe;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(192, 132, 252, 0.45);
}

.blog-article-body a:hover {
    color: #fff;
}

.blog-article-body strong {
    color: #fff;
    font-weight: 700;
}

.blog-article-body code {
    display: inline-block;
    direction: ltr;
    unicode-bidi: isolate;
    padding: 0.15rem 0.5rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fbcfe8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.92em;
}

@media (min-width: 640px) {
    .blog-article-body {
        font-size: 1.125rem;
    }

    .blog-article-body h2.blog-section-heading {
        font-size: 1.375rem;
    }
}

.blog-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 60;
    background: linear-gradient(to right, #8b5cf6, #ec4899);
    transition: width 0.12s ease-out;
    pointer-events: none;
}

.blog-toc ol {
    list-style: decimal;
    padding-right: 1.25rem;
}

.blog-vote-btn[data-copied="1"],
button[data-copy-text][data-copied="1"] {
    border-color: rgba(16, 185, 129, 0.5) !important;
    color: #a7f3d0 !important;
}

.blog-article-body h3 {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}

.blog-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-article-body pre {
    overflow-x: auto;
    padding: 1rem;
    border-radius: 0.875rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-faq summary::-webkit-details-marker {
    display: none;
}
