/**
 * Single Post RTL Styles - Arabic & Hebrew
 * Shoponlina
 */

/* Base RTL Settings */
html[dir="rtl"] .shoponlina-single {
    direction: rtl;
    text-align: right;
}

/* Header Breadcrumb */
html[dir="rtl"] .post-header-breadcrumb {
    flex-direction: row-reverse;
}

html[dir="rtl"] .post-header-breadcrumb a i {
    margin-left: 0;
    margin-right: 0;
}

/* Category Badge */
html[dir="rtl"] .post-header-category {
    flex-direction: row-reverse;
}

html[dir="rtl"] .post-header-category i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* Meta */
html[dir="rtl"] .post-header-meta {
    flex-direction: row-reverse;
}

html[dir="rtl"] .post-header-meta span {
    flex-direction: row-reverse;
}

html[dir="rtl"] .post-header-meta i {
    margin-left: 0.4rem;
    margin-right: 0;
}

/* Content Wrapper - Flip sidebar position */
html[dir="rtl"] .content-wrapper {
    flex-direction: row-reverse;
}

/* Sidebar TOC */
html[dir="rtl"] .toc-link {
    padding-left: 0;
    padding-right: 1rem;
    border-left: none;
    border-right: 2px solid transparent;
}

html[dir="rtl"] .toc-link.active {
    border-right-color: var(--sp-orange);
}

html[dir="rtl"] .toc-link.toc-h3 {
    padding-left: 0;
    padding-right: 2rem;
}

/* Mobile TOC */
html[dir="rtl"] .toc-toggle {
    flex-direction: row-reverse;
}

html[dir="rtl"] .toc-toggle .toc-chevron {
    margin-left: 0;
    margin-right: auto;
}

/* Infobox */
html[dir="rtl"] .post-infobox {
    border-left: none;
    border-right: 4px solid var(--sp-orange);
    border-radius: 8px 0 0 8px;
}

html[dir="rtl"] .infobox-title {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

html[dir="rtl"] .infobox-title i {
    margin-left: 0.5rem;
    margin-right: 0;
}

html[dir="rtl"] .infobox-value i {
    margin-left: 0.35rem;
    margin-right: 0;
}

html[dir="rtl"] .infobox-highlights li {
    padding-left: 0;
    padding-right: 1.25rem;
}

html[dir="rtl"] .infobox-highlights li::before {
    left: auto;
    right: 0;
}

/* Enhanced Infobox RTL */
html[dir="rtl"] .infobox-text i {
    margin-right: 0;
    margin-left: 0.35rem;
}

html[dir="rtl"] .infobox-tags {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

html[dir="rtl"] .infobox-tag {
    flex-direction: row-reverse;
}

html[dir="rtl"] .infobox-tag i {
    margin-left: 0;
}

html[dir="rtl"] .infobox-badges {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

html[dir="rtl"] .infobox-badge {
    flex-direction: row-reverse;
}

html[dir="rtl"] .infobox-rating {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

html[dir="rtl"] .infobox-rating .rating-text {
    margin-left: 0;
    margin-right: 0.5rem;
}

html[dir="rtl"] .infobox-proscons {
    direction: rtl;
}

html[dir="rtl"] .infobox-pros li,
html[dir="rtl"] .infobox-cons li {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .infobox-verdict {
    border-left: none;
    border-right: 4px solid var(--sp-orange);
}

html[dir="rtl"] .infobox-affiliate {
    flex-direction: row-reverse;
}

html[dir="rtl"] .post-infobox--review {
    border-left-color: transparent;
    border-right-color: #f59e0b;
}

html[dir="rtl"] .post-infobox--comparison {
    border-left-color: transparent;
    border-right-color: #3b82f6;
}

html[dir="rtl"] .post-infobox--market {
    border-left-color: transparent;
    border-right-color: #10b981;
}

/* Article Body */
html[dir="rtl"] .article-body {
    text-align: right;
}

html[dir="rtl"] .article-body > p:first-of-type::first-letter {
    float: right;
    padding-right: 0;
    padding-left: 0.75rem;
}

html[dir="rtl"] .article-body blockquote {
    border-left: none;
    border-right: 4px solid var(--sp-orange);
}

html[dir="rtl"] .article-body ul,
html[dir="rtl"] .article-body ol {
    padding-left: 0;
    padding-right: 1.5rem;
}

html[dir="rtl"] .article-body .tip,
html[dir="rtl"] .article-body .warning,
html[dir="rtl"] .article-body .note {
    border-left: none;
    border-right: 4px solid;
}

html[dir="rtl"] .article-body .tip {
    border-right-color: #10b981;
}

html[dir="rtl"] .article-body .warning {
    border-right-color: #f59e0b;
}

html[dir="rtl"] .article-body .note {
    border-right-color: #3b82f6;
}

html[dir="rtl"] .article-body th,
html[dir="rtl"] .article-body td {
    text-align: right;
}

/* Share Section */
html[dir="rtl"] .share-buttons {
    flex-direction: row-reverse;
}

/* Author Bio */
html[dir="rtl"] .author-bio {
    flex-direction: row-reverse;
}

html[dir="rtl"] .author-info {
    text-align: right;
}

html[dir="rtl"] .author-links {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

html[dir="rtl"] .author-more {
    flex-direction: row-reverse;
}

html[dir="rtl"] .author-more i {
    transform: rotate(180deg);
    margin-right: 0.35rem;
    margin-left: 0;
}

/* Related Posts */
html[dir="rtl"] .related-card-category {
    left: auto;
    right: 0.75rem;
}

html[dir="rtl"] .related-card-content {
    text-align: right;
}

html[dir="rtl"] .related-card-meta {
    flex-direction: row-reverse;
}

html[dir="rtl"] .related-card-meta span {
    flex-direction: row-reverse;
}

html[dir="rtl"] .related-card-meta i {
    margin-left: 0.3rem;
    margin-right: 0;
}

/* Responsive RTL */
@media (max-width: 768px) {
    html[dir="rtl"] .author-bio {
        flex-direction: column;
        text-align: center;
    }

    html[dir="rtl"] .author-info {
        text-align: center;
    }

    html[dir="rtl"] .author-links {
        justify-content: center;
    }
}
