/**
 * RTL (Right-to-Left) Overrides for Stolik Menu
 * Supports Hebrew, Arabic, Persian, and Urdu languages
 * Applied when is_rtl() returns true
 */

/* ==========================================================================
   DEFAULT TEMPLATE RTL OVERRIDES
   ========================================================================== */

/* Category title underline - align to right instead of left */
.stolik-rtl.template-default .category-title:after {
    margin-left: auto;
    margin-right: 0;
}

/* Featured star - move from right to left */
.stolik-rtl.template-default .menu-item.featured-item:before {
    right: auto;
    left: 14px;
}

/* Price alignment - switch from right to left */
.stolik-rtl.template-default .normal-item .item-price,
.stolik-rtl.template-default .featured-item .item-price {
    text-align: left;
}

/* Mobile price alignment */
@media (max-width: 768px) {
    .stolik-rtl.template-default .normal-item .item-price,
    .stolik-rtl.template-default .featured-item .item-price {
        text-align: center;
    }
}

/* ==========================================================================
   DARK TEMPLATE RTL OVERRIDES
   ========================================================================== */

/* Featured star - move from right to left */
.stolik-rtl.dark-template .menu-item.featured:before {
    right: auto;
    left: -6px;
}

/* Price alignment */
.stolik-rtl.dark-template .normal-item .item-price,
.stolik-rtl.dark-template .featured-item .item-price {
    text-align: left;
}

/* Language UI - move from right to left */
.stolik-rtl.dark-template .stolik-language-ui {
    right: auto !important;
    left: 12px !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .stolik-rtl.dark-template .normal-item .item-price,
    .stolik-rtl.dark-template .featured-item .item-price {
        text-align: center;
    }
}

/* ==========================================================================
   ELEGANT TEMPLATE RTL OVERRIDES
   ========================================================================== */

/* Category title decorative line */
.stolik-rtl.template-elegant .category-title:after {
    right: auto;
    left: 50%;
}

/* Featured star */
.stolik-rtl.template-elegant .menu-item.featured:before {
    right: auto;
    left: -8px;
}

/* Price alignment */
.stolik-rtl.template-elegant .normal-item .item-price,
.stolik-rtl.template-elegant .featured-item .item-price {
    text-align: left;
}

/* Language dropdown */
.stolik-rtl.template-elegant .stolik-lang-menu {
    right: auto;
    left: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .stolik-rtl.template-elegant .normal-item .item-price,
    .stolik-rtl.template-elegant .featured-item .item-price {
        text-align: center;
    }
}

/* ==========================================================================
   MODERN TEMPLATE RTL OVERRIDES
   ========================================================================== */

/* Featured star */
.stolik-rtl.template-modern .menu-item.featured:before {
    right: auto;
    left: -8px;
}

/* Price alignment */
.stolik-rtl.template-modern .normal-item .item-price,
.stolik-rtl.template-modern .featured-item .item-price {
    text-align: left;
}

/* Language dropdown */
.stolik-rtl.template-modern .stolik-lang-menu {
    right: auto;
    left: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .stolik-rtl.template-modern .normal-item .item-price,
    .stolik-rtl.template-modern .featured-item .item-price {
        text-align: center;
    }
}

/* ==========================================================================
   MINIMAL TEMPLATE RTL OVERRIDES
   ========================================================================== */

/* Featured star */
.stolik-rtl.template-minimal .menu-item.featured-item:before {
    right: auto;
    left: -8px;
}

/* Price alignment */
.stolik-rtl.template-minimal .normal-item .item-price,
.stolik-rtl.template-minimal .featured-item .item-price {
    text-align: left;
}

/* Language dropdown */
.stolik-rtl.template-minimal .stolik-lang-menu {
    right: auto;
    left: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .stolik-rtl.template-minimal .normal-item .item-price,
    .stolik-rtl.template-minimal .featured-item .item-price {
        text-align: center;
    }
}

/* ==========================================================================
   SHARED RTL OVERRIDES (All Templates)
   ========================================================================== */

/* Language selector positioning */
.stolik-rtl .stolik-language-ui {
    right: auto;
    left: 10px;
}

/* Language dropdown menu */
.stolik-rtl .stolik-lang-menu {
    right: auto;
    left: 0;
}

/* Inline badges and flash messages */
.stolik-rtl .stolik-inline-flash {
    margin-left: 0;
    margin-right: 6px;
}

/* Featured star icon (generic fallback) */
.stolik-rtl .featured-star {
    right: auto;
    left: -8px;
}

/* ==========================================================================
   ADMIN RTL OVERRIDES (For future implementation)
   ========================================================================== */

/* These are placeholders for when admin RTL is implemented */
/*
.stolik-rtl .stolik-lang-status {
    margin-left: 0;
    margin-right: auto;
}

.stolik-rtl .stolik-inline-exit-btn {
    margin-left: 0;
    margin-right: 12px;
}

.stolik-rtl .stolik-translation-controls .stolik-inline-actions {
    margin-left: 0;
    margin-right: auto;
}
*/
