/* RTL (Right-to-Left) Styles for Arabic */

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

/* Navigation */
html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

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

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

/* Forms */
html[dir="rtl"] .search-form {
  flex-direction: row-reverse;
}

html[dir="rtl"] .search-input {
  border-radius: 0 8px 8px 0;
  text-align: right;
}

html[dir="rtl"] .search-btn {
  border-radius: 8px 0 0 8px;
}

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

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

/* Buttons */
html[dir="rtl"] .btn-secondary {
  flex-direction: row-reverse;
}

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

/* Page header with language switch */
html[dir="rtl"] .page-header-with-lang {
  flex-direction: row-reverse;
}

/* Post language switch */
html[dir="rtl"] .post-lang-switch {
  text-align: left;
  margin-bottom: 1rem;
}

/* Language switch button */
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 181, 213, 0.1);
  border: 1px solid #00B5D5;
  border-radius: 6px;
  color: #00B5D5;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.lang-switch-btn:hover {
  background: rgba(0, 181, 213, 0.2);
  color: #00D4FF;
}

/* Page header layout */
.page-header-with-lang {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

/* Typography adjustments for Arabic */
html[dir="rtl"] body {
  font-family: 'Segoe UI', Tahoma, 'Noto Sans Arabic', 'Arial', sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
  font-family: 'Segoe UI', Tahoma, 'Noto Sans Arabic', 'Arial', sans-serif;
}

/* Blog content */
html[dir="rtl"] .post-content {
  text-align: right;
}

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

html[dir="rtl"] .post-content blockquote {
  border-right: 4px solid #00B5D5;
  border-left: none;
  padding-right: 1rem;
  padding-left: 0;
}

/* Footer */
html[dir="rtl"] .footer {
  text-align: center;
}

/* Mobile menu */
@media (max-width: 768px) {
  html[dir="rtl"] .nav-links {
    text-align: right;
  }
}
