/* Article Detail Typography & Content Styling */
.article-body {
    font-size: 1.075rem;
    line-height: 2.1;
    color: var(--bs-body-color);
    word-wrap: break-word;
}

.article-body p {
    margin-bottom: 1.4rem;
    text-align: justify;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    font-weight: 700;
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    color: var(--bs-heading-color);
}

.article-body h2 {
    font-size: 1.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid rgba(var(--bs-primary-rgb), 0.15);
}

.article-body h3 {
    font-size: 1.3rem;
}

.article-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0.5rem;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.article-body figure {
    margin: 1.5rem 0;
    text-align: center;
}

.article-body figure.image img {
    margin-bottom: 0.5rem;
}

.article-body figcaption {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    margin-top: 0.4rem;
}

/* Blockquote Styling - High Readability & Contrast */
.article-body blockquote,
.article-body .blockquote,
.article-content blockquote,
.article-content .blockquote {
    position: relative;
    padding: 1.25rem 1.5rem 1.25rem 1.75rem !important;
    margin: 2rem 0;
    border-right: 5px solid var(--bs-primary) !important;
    border-top: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    border-bottom: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    border-left: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    border-radius: 0 0.6rem 0.6rem 0;
    background-color: #f8fafc;
    color: #0f172a !important;
    font-style: normal !important;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 2.2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Reset any unwanted pseudo-elements or huge paddings from base templates */
.article-body blockquote::before,
.article-body .blockquote::before,
.article-content blockquote::before,
.article-content .blockquote::before {
    display: none !important;
}

/* Light theme specific enhancements */
[data-bs-theme="light"] .article-body blockquote,
[data-bs-theme="light"] .article-content blockquote,
[data-bs-theme="light"] .article-body .blockquote,
[data-bs-theme="light"] .article-content .blockquote,
:root:not([data-bs-theme="dark"]) .article-body blockquote,
:root:not([data-bs-theme="dark"]) .article-content blockquote {
    background-color: #f8fafc !important;
    border-top-color: #e2e8f0 !important;
    border-bottom-color: #e2e8f0 !important;
    border-left-color: #e2e8f0 !important;
    border-right: 5px solid var(--bs-primary) !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

/* Dark theme specific enhancements */
[data-bs-theme="dark"] .article-body blockquote,
[data-bs-theme="dark"] .article-content blockquote,
[data-bs-theme="dark"] .article-body .blockquote,
[data-bs-theme="dark"] .article-content .blockquote {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    border-left-color: rgba(255, 255, 255, 0.08) !important;
    border-right: 5px solid var(--bs-primary) !important;
    color: #f1f5f9 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Elements inside blockquote */
.article-body blockquote p,
.article-body .blockquote p,
.article-content blockquote p,
.article-content .blockquote p {
    margin-bottom: 0.75rem;
    line-height: 2.2;
    color: inherit !important;
    font-size: inherit;
    font-weight: inherit;
    font-style: normal !important;
    text-align: right;
}

.article-body blockquote p:last-child,
.article-body .blockquote p:last-child,
.article-content blockquote p:last-child,
.article-content .blockquote p:last-child {
    margin-bottom: 0;
}

.article-body blockquote *,
.article-body .blockquote *,
.article-content blockquote *,
.article-content .blockquote * {
    font-style: normal !important;
}

.article-body blockquote span,
.article-body .blockquote span,
.article-content blockquote span,
.article-content .blockquote span {
    background-color: transparent !important;
    color: inherit !important;
}

.article-body blockquote strong,
.article-body blockquote b,
.article-content blockquote strong,
.article-content blockquote b {
    color: var(--bs-primary) !important;
    font-weight: 700;
}

.article-body blockquote a,
.article-content blockquote a {
    color: var(--bs-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-body blockquote cite,
.article-body blockquote footer,
.article-content blockquote cite,
.article-content blockquote footer {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-primary);
    margin-top: 0.75rem;
    font-style: normal !important;
}

.article-body blockquote cite::before,
.article-body blockquote footer::before,
.article-content blockquote cite::before,
.article-content blockquote footer::before {
    content: "— ";
}

.article-body table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    border-radius: 0.5rem;
    overflow: hidden;
}

.article-body table th,
.article-body table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--bs-border-color);
}

.article-body table th {
    background-color: rgba(var(--bs-primary-rgb), 0.08);
    font-weight: 700;
}

.article-body pre {
    direction: ltr;
    text-align: left;
    background-color: #1e293b;
    color: #f8fafc;
    padding: 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
}

.article-body code:not(pre code) {
    direction: ltr;
    display: inline-block;
    background-color: rgba(var(--bs-primary-rgb), 0.08);
    color: var(--bs-primary);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    font-family: monospace;
}

.article-body ul,
.article-body ol {
    padding-right: 1.5rem;
    margin-bottom: 1.4rem;
}

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

/* Social Share Floating Buttons */
.social-share-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.2s, opacity 0.2s;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: #fff;
}

.share-telegram { background-color: #229ED9; }
.share-twitter { background-color: #000; }
.share-whatsapp { background-color: #25D366; }
.share-linkedin { background-color: #0077b5; }
.share-copy { background-color: #6c757d; }

/* Article Feedback & Reaction Box */
.article-reaction-box {
    border: 1px solid var(--bs-border-color-translucent) !important;
    backdrop-filter: blur(8px);
    transition: box-shadow 0.3s ease;
}

.article-reaction-box:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

.vote-btn {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.6rem 1.35rem;
    border-radius: 50rem;
    border: 1px solid var(--bs-border-color);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.vote-btn:hover {
    transform: translateY(-2px);
}

.vote-like-btn:hover {
    border-color: rgba(25, 135, 84, 0.5);
    color: #198754;
    background-color: rgba(25, 135, 84, 0.08);
}

.vote-like-btn.active {
    background-color: #198754 !important;
    color: #fff !important;
    border-color: #198754 !important;
    box-shadow: 0 4px 14px rgba(25, 135, 84, 0.35);
}

.vote-like-btn.active .badge {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
}

.vote-dislike-btn:hover {
    border-color: rgba(220, 53, 69, 0.5);
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.08);
}

.vote-dislike-btn.active {
    background-color: #dc3545 !important;
    color: #fff !important;
    border-color: #dc3545 !important;
    box-shadow: 0 4px 14px rgba(220, 53, 69, 0.35);
}

.vote-dislike-btn.active .badge {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
}

@keyframes votePulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.vote-btn.animate-pulse i {
    display: inline-block;
    animation: votePulse 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

