/**
 * Bitcoin Arabia - Headless Article Page Styles
 * Full theme parity with home.css and global.css
 * Features:
 * - Fixed Reading Progress Bar
 * - Centered Editorial Column (max-width: 860px) strictly right-aligned (RTL)
 * - Dynamic Breadcrumbs & Category Badge
 * - Rich Author & Meta Bar with Social Sharing
 * - Featured Hero Media with Caption
 * - Table of Contents (فهرس المحتويات) with Active Scroll Spy
 * - Comprehensive WordPress Content Renderer & Sanitization
 * - Modernized In-Content CTA Affiliate Buttons
 * - Safe AdSense Units (Top, In-Content, Bottom)
 * - Author Bio Box & Related Articles Grid
 */

/* ==========================================================================
   1. READING PROGRESS BAR
   ========================================================================== */
.reading-progress-track {
    position: fixed;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: transparent;
    z-index: 1100;
    pointer-events: none;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f7931a 0%, #d97706 50%, #f59e0b 100%);
    box-shadow: 0 0 10px rgba(247, 147, 26, 0.7);
    transition: width 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. ARTICLE CONTAINER & EDITORIAL WRAPPER
   ========================================================================== */
.article-page-wrapper {
    max-width: 860px;
    width: 100%;
    margin-inline: auto;
    padding-inline: 1.25rem;
    padding-block: 2rem 4rem;
    direction: rtl !important;
    text-align: right !important;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .article-page-wrapper {
        padding-inline: 2rem;
        padding-block: 2.5rem 5rem;
    }
}

/* ==========================================================================
   3. BREADCRUMBS NAVIGATION
   ========================================================================== */
.article-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-inline: 0.25rem;
    direction: rtl !important;
    text-align: right !important;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.breadcrumb-item:hover {
    color: var(--accent-btc-hover);
}

.breadcrumb-separator {
    color: var(--text-dim);
    font-size: 0.75rem;
    user-select: none;
}

.breadcrumb-item.current {
    color: var(--text-main);
    font-weight: 600;
    pointer-events: none;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 640px) {
    .breadcrumb-item.current {
        max-width: 420px;
    }
}

/* ==========================================================================
   4. ARTICLE HEADER & HERO
   ========================================================================== */
.article-header {
    margin-bottom: 2.25rem;
    text-align: right !important;
    direction: rtl !important;
}

.article-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--gold-subtle-bg);
    color: var(--gold-subtle-text);
    border: 1px solid var(--gold-subtle-border);
    padding-inline: 0.85rem;
    padding-block: 0.3rem;
    border-radius: var(--radius-pill);
    font-size: 0.825rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-category-chip:hover {
    background-color: #fef3c7;
    border-color: #fcd34d;
    transform: translateY(-1px);
}

.article-main-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    text-align: right !important;
}

@media (min-width: 768px) {
    .article-main-title {
        font-size: 2.65rem;
        line-height: 1.3;
    }
}

/* Meta Row (Author, Date, Read Time, Share) */
.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-block: 1.25rem;
    border-block: 1px solid var(--border-color);
    margin-bottom: 2rem;
    direction: rtl !important;
}

.article-author-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f7931a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
    box-shadow: var(--shadow-subtle);
}

.author-info-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: right;
}

.author-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.article-date-read {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.meta-dot {
    color: var(--text-dim);
}

/* Social Share Action Cluster */
.article-share-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-inline-end: 0.25rem;
}

.btn-share {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-share:hover {
    background-color: var(--bg-input);
    color: var(--text-main);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}

.btn-share.btn-share-x:hover {
    color: #000000;
    border-color: #000000;
}

.btn-share.btn-share-tg:hover {
    color: #229ed9;
    border-color: #229ed9;
}

.btn-share.btn-share-wa:hover {
    color: #25d366;
    border-color: #25d366;
}

.btn-share.btn-share-copy:hover {
    color: var(--accent-btc-hover);
    border-color: var(--accent-btc);
}

/* Toast Notification for Copied Link */
.toast-notice {
    position: fixed;
    bottom: 2rem;
    inset-inline-start: 50%;
    transform: translateX(50%) translateY(100px);
    background-color: #0f172a;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 2500;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-notice.show {
    transform: translateX(50%) translateY(0);
    opacity: 1;
}

/* Featured Hero Image */
.article-featured-media {
    margin-bottom: 2.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--bg-input);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.featured-img-cover {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.featured-img-caption {
    padding: 0.75rem 1rem;
    font-size: 0.825rem;
    color: var(--text-muted);
    text-align: center;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   5. TABLE OF CONTENTS (فهرس المحتويات)
   ========================================================================== */
.toc-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-subtle);
    border-inline-start: 4px solid var(--accent-btc);
    text-align: right !important;
    direction: rtl !important;
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.toc-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
}

.toc-title-wrap svg {
    color: var(--accent-btc);
}

.toc-toggle-icon {
    transition: transform 0.2s ease;
    color: var(--text-dim);
}

.toc-card.collapsed .toc-toggle-icon {
    transform: rotate(180deg);
}

.toc-card.collapsed .toc-list {
    display: none;
}

.toc-list {
    list-style: none !important;
    margin-top: 1.25rem;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right !important;
}

.toc-item {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: right !important;
}

.toc-item.level-3 {
    padding-inline-start: 1.25rem !important;
    font-size: 0.885rem;
}

.toc-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease, padding-inline-start 0.15s ease;
    display: inline-block;
}

.toc-link:hover,
.toc-link.active {
    color: var(--accent-btc-hover);
    font-weight: 700;
    padding-inline-start: 4px;
}

/* ==========================================================================
   6. WORDPRESS CONTENT RENDERER (STRICT RTL EDITORIAL TYPOGRAPHY)
   ========================================================================== */
.article-rendered-content {
    font-size: 1.125rem;
    line-height: 1.95;
    color: var(--text-main);
    word-break: break-word;
    direction: rtl !important;
    text-align: right !important;
}

@media (max-width: 640px) {
    .article-rendered-content {
        font-size: 1.05rem;
        line-height: 1.85;
    }
}

/* Enforce Right Alignment for paragraphs, divs, headings */
.article-rendered-content p {
    margin-bottom: 1.65rem;
    text-align: right !important;
    direction: rtl !important;
}

.article-rendered-content strong,
.article-rendered-content b {
    font-weight: 700;
    color: var(--text-main);
}

.article-rendered-content a {
    color: var(--accent-btc-hover);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.15s ease;
}

.article-rendered-content a:hover {
    color: var(--text-main);
}

/* Headings with Vertical Rhythm & Subtle Separators */
.article-rendered-content h2,
.article-rendered-content .wp-block-heading {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-main);
    margin-top: 3.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    scroll-margin-top: 100px;
    text-align: right !important;
    direction: rtl !important;
}

.article-rendered-content h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    inset-inline-start: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-btc) 0%, #f59e0b 100%);
    border-radius: var(--radius-pill);
}

.article-rendered-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-main);
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px dashed rgba(226, 232, 240, 0.8);
    scroll-margin-top: 100px;
    text-align: right !important;
    direction: rtl !important;
}

.article-rendered-content h4,
.article-rendered-content h5,
.article-rendered-content h6 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    text-align: right !important;
    direction: rtl !important;
}

/* Blockquotes */
.article-rendered-content blockquote {
    margin-block: 2rem;
    padding: 1.25rem 1.75rem;
    background-color: var(--bg-input);
    border-inline-start: 4px solid var(--accent-btc);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-style: normal;
    color: var(--text-main);
    position: relative;
    text-align: right !important;
    direction: rtl !important;
}

.article-rendered-content blockquote p {
    text-align: right !important;
}

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

/* Bullet Lists & Numbered Lists - Strict Right Alignment */
.article-rendered-content ul,
.article-rendered-content ol,
.article-rendered-content .wp-block-list {
    margin-block: 1.5rem;
    padding-inline-start: 2rem !important;
    padding-inline-end: 0 !important;
    list-style-position: outside !important;
    text-align: right !important;
    direction: rtl !important;
    display: block !important;
}

.article-rendered-content li {
    margin-bottom: 0.75rem;
    line-height: 1.85;
    text-align: right !important;
    direction: rtl !important;
}

.article-rendered-content ul li::marker {
    color: var(--accent-btc);
}

.article-rendered-content ol li::marker {
    color: var(--accent-btc);
    font-weight: 700;
}

/* Tables */
.article-rendered-content .table-responsive,
.article-rendered-content table {
    width: 100%;
    border-collapse: collapse;
    margin-block: 2rem;
    font-size: 0.95rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: block;
    overflow-x: auto;
    direction: rtl !important;
}

.article-rendered-content th,
.article-rendered-content td {
    padding: 0.85rem 1.25rem;
    text-align: right !important;
    border-bottom: 1px solid var(--border-color);
}

.article-rendered-content th {
    background-color: var(--bg-input);
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
}

.article-rendered-content tr:nth-child(even) td {
    background-color: rgba(241, 245, 249, 0.4);
}

.article-rendered-content tr:hover td {
    background-color: rgba(247, 147, 26, 0.04);
}

/* Code Blocks & Inlines */
.article-rendered-content code {
    font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
    font-size: 0.875em;
    background-color: var(--bg-input);
    color: #e11d48;
    padding: 0.2em 0.45em;
    border-radius: 4px;
    direction: ltr !important;
    display: inline-block;
}

.article-rendered-content pre {
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-block: 2rem;
    direction: ltr !important;
    text-align: left !important;
    font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    border: 1px solid #1e293b;
}

.article-rendered-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    display: block;
}

/* Inline Images & Figures */
.article-rendered-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-block: 1.5rem;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-color);
    display: block;
    margin-inline: auto;
}

.article-rendered-content figure {
    margin-block: 2rem;
    text-align: center;
}

.article-rendered-content figcaption {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: center;
}

/* ==========================================================================
   7. SANITIZED IN-CONTENT CTA BUTTONS (E.G. AFFILIATE & REGISTRATION BUTTONS)
   ========================================================================== */
.modern-article-cta-wrap,
.wp-block-buttons,
.wp-block-button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-block: 1.25rem !important;
    text-align: center !important;
    width: 100% !important;
    clear: both !important;
}

li .modern-article-cta-wrap {
    margin-block: 1rem 0.5rem !important;
    justify-content: flex-start !important;
}

.modern-article-cta-btn,
.wp-block-button__link,
.article-rendered-content a.modern-article-cta-btn,
.article-rendered-content a.wp-block-button__link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    min-height: 46px !important;
    border: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
}

.modern-article-cta-btn:hover,
.wp-block-button__link:hover,
.article-rendered-content a.modern-article-cta-btn:hover,
.article-rendered-content a.wp-block-button__link:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.45) !important;
    text-decoration: none !important;
}

/* Fallback overrides for legacy WordPress inline button colors */
.article-rendered-content a[style*="background"] {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    padding: 12px 28px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-block: 1rem !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3) !important;
}

/* Hide any legacy table of contents that might leak into the DOM */
.article-rendered-content .lwptoc,
.article-rendered-content .lwptoc_items,
.article-rendered-content .ez-toc-container,
.article-rendered-content #toc_container,
.article-rendered-content .toc_container,
.article-rendered-content .table-of-contents,
.article-rendered-content .wp-block-table-of-contents,
.article-rendered-content .rank-math-toc-wrapper {
    display: none !important;
}

/* ==========================================================================
   8. IN-CONTENT DYNAMIC AD UNIT
   ========================================================================== */
.article-incontent-ad-wrapper {
    margin-block: 2.5rem;
    padding: 1rem 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.015);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
}

.article-incontent-ad-wrapper .ad-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-align: center;
}

.article-incontent-ad-wrapper ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
    min-height: 250px !important;
    margin: 0 auto;
}

/* ==========================================================================
   9. ARTICLE FOOTER (TAGS, AUTHOR BIO, EXPLORE TOOLS CTA)
   ========================================================================== */
.article-footer-block {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    direction: rtl !important;
    text-align: right !important;
}

/* Tags Cloud */
.article-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.tags-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-inline-end: 0.5rem;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    background-color: var(--bg-input);
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    font-size: 0.825rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-badge:hover {
    background-color: var(--bg-card);
    color: var(--accent-btc-hover);
    border-color: var(--accent-btc);
    box-shadow: var(--shadow-subtle);
}

/* Author Bio Card */
.author-bio-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-subtle);
    direction: rtl !important;
    text-align: right !important;
}

@media (min-width: 640px) {
    .author-bio-card {
        flex-direction: row;
        align-items: center;
    }
}

.author-bio-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7931a 0%, #d97706 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(247, 147, 26, 0.3);
}

.author-bio-content {
    flex-grow: 1;
}

.author-bio-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.author-bio-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Bottom CTA Banner for Free Tools */
.article-tools-cta-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 2.5rem;
}

.article-tools-cta-box h3 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
    color: #ffffff;
}

.article-tools-cta-box p {
    font-size: 0.95rem;
    color: #94a3b8;
    max-width: 540px;
    margin-inline: auto;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-tools-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f7931a 0%, #d97706 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    box-shadow: var(--shadow-glow-btc);
    transition: all 0.2s ease;
}

.article-tools-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(247, 147, 26, 0.45);
    color: #ffffff;
}

/* ==========================================================================
   10. SKELETON LOADER & ERROR STATES
   ========================================================================== */
.article-skeleton-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    direction: rtl !important;
    text-align: right !important;
}

.skeleton-anim {
    background: linear-gradient(90deg, var(--bg-input) 25%, #e2e8f0 50%, var(--bg-input) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-meta-bar {
    height: 48px;
    width: 100%;
}

.skeleton-hero-img {
    height: 360px;
    width: 100%;
    border-radius: var(--radius-lg);
}

.skeleton-text-line {
    height: 20px;
    width: 100%;
}

.skeleton-text-line.w-80 { width: 80%; }
.skeleton-text-line.w-60 { width: 60%; }
.skeleton-text-line.w-40 { width: 40%; }
.skeleton-text-line.h-title { height: 36px; }

/* Article Error State */
.article-error-state {
    text-align: center;
    padding: 4rem 1.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle);
    margin-block: 2rem;
}

.article-error-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #fee2e2;
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.article-error-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.article-error-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-inline: auto;
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.article-error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-error-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f7931a 0%, #d97706 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-error-home:hover {
    box-shadow: 0 4px 14px rgba(247, 147, 26, 0.35);
    color: #ffffff;
}

.btn-error-retry {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-error-retry:hover {
    background-color: var(--bg-input);
    border-color: var(--border-hover);
}
