/**
 * RTL Styles for InvoicesReader Theme
 * These styles will be applied when the site language is set to a RTL language
 */

/* General RTL adjustments */
body.rtl {
    direction: rtl;
    text-align: right;
}

/* Navigation adjustments */
body.rtl .flex-row {
    flex-direction: row-reverse;
}

body.rtl .space-x-8 > * + * {
    margin-left: 0;
    margin-right: 2rem;
}

body.rtl .ml-6 {
    margin-left: 0;
    margin-right: 1.5rem;
}

body.rtl .mr-2,
body.rtl .mr-3,
body.rtl .mr-4 {
    margin-right: 0;
}

body.rtl .mr-2 {
    margin-left: 0.5rem;
}

body.rtl .mr-3 {
    margin-left: 0.75rem;
}

body.rtl .mr-4 {
    margin-left: 1rem;
}

/* List item adjustments */
body.rtl .ml-6 {
    margin-right: 1.5rem;
    margin-left: 0;
}

/* Icon adjustments */
body.rtl .rtl\:ml-4 {
    margin-left: 1rem;
}

body.rtl .rtl\:mr-4 {
    margin-right: 1rem;
}

body.rtl .rtl\:space-x-reverse > * + * {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Grid adjustments */
body.rtl .grid {
    direction: rtl;
}

/* Form elements */
body.rtl input[type="text"],
body.rtl input[type="email"],
body.rtl input[type="url"],
body.rtl input[type="password"],
body.rtl input[type="search"],
body.rtl input[type="number"],
body.rtl input[type="tel"],
body.rtl input[type="range"],
body.rtl input[type="date"],
body.rtl input[type="month"],
body.rtl input[type="week"],
body.rtl input[type="time"],
body.rtl input[type="datetime"],
body.rtl input[type="datetime-local"],
body.rtl input[type="color"],
body.rtl textarea {
    text-align: right;
}

/* Footer adjustments */
body.rtl .footer-menu li {
    text-align: right;
}

/* Testimonial cards */
body.rtl .rtl\:flex-row-reverse {
    flex-direction: row-reverse;
}

/* Star ratings */
body.rtl .star-rating .star {
    margin-left: 2px;
    margin-right: 0;
}

/* Blog specific RTL adjustments */
body.rtl .blog-content .prose {
    direction: rtl;
    text-align: right;
}

body.rtl .blog-content .prose ul,
body.rtl .blog-content .prose ol {
    padding-right: 1.5rem;
    padding-left: 0;
}

body.rtl .blog-content .prose blockquote {
    border-left: none;
    border-right: 4px solid #e5e7eb;
    padding-left: 0;
    padding-right: 1rem;
}

/* Table of Contents RTL adjustments */
body.rtl #toc-container ul {
    padding-right: 0;
}

body.rtl #toc-container .mr-4 {
    margin-right: 0;
    margin-left: 1rem;
}

body.rtl #toc-container .mr-8 {
    margin-right: 0;
    margin-left: 2rem;
}

/* Blog sidebar RTL adjustments */
body.rtl .ml-3 {
    margin-left: 0;
    margin-right: 0.75rem;
}

body.rtl .ml-2 {
    margin-left: 0;
    margin-right: 0.5rem;
}

body.rtl .mr-1 {
    margin-right: 0;
    margin-left: 0.25rem;
}

/* Reading progress bar RTL */
body.rtl #reading-progress {
    right: 0;
    left: auto;
}
body.rtl .rtl\:ml-1 {
    margin-left: 0.25rem;
}

body.rtl .rtl\:mr-1 {
    margin-right: 0.25rem;
}

/* Mobile menu */
@media (max-width: 768px) {
    body.rtl .mobile-menu {
        left: auto;
        right: 0;
    }
}
