/**
 * Theme and Language Settings
 * This file provides settings for theme and language changes without transitions
 */

/* Remove all transitions for theme changes */
* {
  transition: none !important;
}

/* Ensure no transitions for language direction changes */
html[dir="rtl"] {
  transition: none !important;
}

html[dir="ltr"] {
  transition: none !important;
}

/* Remove transitions for font family changes */
body {
  transition: none !important;
}

/* Remove transitions for layout changes */
.main-content {
  transition: none !important;
}

/* Remove transitions for sidebar positioning */
.sidebar {
  transition: none !important;
}

/* Remove transitions for theme switcher icons */
.theme-switcher i {
  transition: none !important;
}

/* Remove transitions for language switcher flags */
.lang-switcher img {
  transition: none !important;
}

/* Remove transitions for text content changes */
[data-ar],
[data-en],
[data-content-key] {
  transition: none !important;
}

/* Ensure no transitions for page title changes */
title {
  transition: none !important;
}

/* Ensure no transitions for meta description changes */
meta[name="description"] {
  transition: none !important;
}

/* Remove loading effect completely */
.theme-language-manager-loading {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.theme-language-manager-loading * {
  transition: none !important;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }

  .main-content {
    transition: none !important;
  }

  .sidebar {
    transition: none !important;
  }

  .theme-switcher i {
    transition: none !important;
  }

  .lang-switcher img {
    transition: none !important;
  }

  [data-ar],
  [data-en],
  [data-content-key] {
    transition: none !important;
  }
}

/* Optimize for high refresh rate displays */
@media (min-resolution: 120dpi) {
  * {
    transition-duration: 0.15s;
  }
}

/* Optimize for low-end devices */
@media (max-width: 768px) {
  * {
    transition-duration: 0.1s;
  }

  .main-content {
    transition: none;
  }
}

/* Optimize for very low-end devices */
@media (max-width: 480px) {
  * {
    transition: none !important;
  }
}