/* RTL (Right-to-Left) Support for Arabic */

/* Base RTL styles */
body.rtl {
  direction: rtl;
  text-align: right;
}

body.ltr {
  direction: ltr;
  text-align: left;
}

/* Language Switcher Button Styles */
.language-switcher {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Language Switcher - Simple */
.language-switcher {
  position: absolute;
  top: 100px;
  right: 40px;
  display: flex;
  gap: 10px;
  z-index: 100;
}

.lang-btn {
  padding: 8px 16px;
  border: 2px solid #c0c0c0;
  background: rgba(0, 0, 0, 0.7);
  color: #c0c0c0;
  cursor: pointer;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.3s ease;
  border-radius: 5px;
  text-transform: uppercase;
}

/* White glow on hover */
.lang-btn:hover {
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Active button with glow */
.lang-btn.active {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* Mobile */
@media (max-width: 768px) {
  .language-switcher {
    top: 80px;
    right: 20px;
  }
  
  .lang-btn {
    padding: 6px 12px;
    font-size: 1rem;
  }

  /* FIX SLIDER ARROWS FOR ARABIC - MOBILE ONLY */
  body.rtl .slider-arrow.prev {
    right: 10px;
    left: auto;
  }

  body.rtl .slider-arrow.next {
    left: 10px;
    right: auto;
  }
}

/* Flip margins and paddings for RTL */
body.rtl .container,
body.rtl section {
  padding-left: auto;
  padding-right: auto;
}

/* Navigation alignment */
body.rtl nav {
  flex-direction: row-reverse;
}

body.rtl nav a {
  text-align: right;
}

/* Lists alignment */
body.rtl ul,
body.rtl ol {
  padding-right: 20px;
  padding-left: 0;
}

/* Comparison section (powder vs irongrip) */
body.rtl .comparison-grid {
  direction: rtl;
}

body.rtl .comparison-item {
  text-align: right;
}

/* Product cards */
body.rtl .product-card {
  text-align: right;
}

/* Buttons */
body.rtl button,
body.rtl .btn {
  text-align: center; /* Keep buttons centered in both languages */
}

/* Icons that need flipping */
body.rtl .arrow-right {
  transform: scaleX(-1);
}

body.rtl .icon-left {
  float: right;
}

body.rtl .icon-right {
  float: left;
}

/* Footer alignment */
body.rtl footer {
  text-align: right;
}

body.rtl .footer-links {
  flex-direction: row-reverse;
}

/* Price alignment - keep numbers left-to-right even in Arabic */
.price {
  direction: ltr;
  display: inline-block;
}

body.rtl .price {
  direction: ltr; /* Numbers stay LTR */
}

/* Form inputs */
body.rtl input,
body.rtl textarea {
  text-align: right;
}

/* Steps/Tutorial section */
body.rtl .steps {
  direction: rtl;
}

body.rtl .step-number {
  margin-left: 15px;
  margin-right: 0;
}

/* Social media icons - don't flip */
.social-icons {
  direction: ltr; /* Keep social icons in standard order */
}

/* Ensure smooth transitions between languages */
* {
  transition: text-align 0.3s ease;
}
