/* ============================================
   intl-blog.css — نسخهٔ نهایی با پشتیبانی کامل از LTR و RTL
   ============================================ */

/* --- ۰. تنظیمات فونت و جهت (رفع باگ ! و ؟) --- */
html, body {
  font-family: 'Poppins', sans-serif;
}
[dir="rtl"] html,
[dir="rtl"] body {
  font-family: 'B Nazanin', 'Poppins', sans-serif;
  text-align: right;
}

/* --- تنظیمات پایه --- */
#main-content {
  min-height: 60vh;
}

/* --- متغیرهای دارک مود --- */
body.dark-mode {
  --bg-surface: #1e293b;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
}

/* ============================================
   ۱. هیرو (Hero Section)
   ============================================ */
.intl-hero {
  position: relative;
  background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
  color: #fff;
  padding: 5rem 2rem 4rem;
  text-align: center;
  margin-bottom: 2rem;
  overflow: hidden;
  border-bottom: 3px solid #D4AF37;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.intl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/blog/media/default-og-image.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}
.intl-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}
.intl-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}
.intl-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem;
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
  color: #fff;
}
.intl-hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.9);
}
.intl-hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.intl-hero-ctas .btn {
  transition: transform 0.2s, box-shadow 0.2s;
}
.intl-hero-ctas .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* ============================================
   ۲. بخش "چرا ما؟" (Why Us)
   ============================================ */
.intl-why-us {
  padding: 3rem 1rem;
  text-align: center;
}
.intl-why-us h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #D4AF37;
  font-weight: 700;
}
.intl-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.intl-why-item {
  background: var(--bg-surface, #fff);
  color: var(--text-primary, #1e293b);
  padding: 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid rgba(212,175,55,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.intl-why-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ============================================
   ۳. زبان‌گردان (Language Switcher)
   ============================================ */
.lang-switcher-intl {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.lang-switcher-intl a {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s;
}
.lang-switcher-intl a.active,
.lang-switcher-intl a:hover {
  background: #D4AF37;
  color: #0b1120;
  border-color: #D4AF37;
  transform: translateY(-1px);
}

/* ============================================
   ۴. فوتر (Footer)
   ============================================ */
.intl-footer {
  background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
  color: #fff;
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
  border-top: 4px solid #D4AF37;
  font-family: 'Poppins', 'B Nazanin', sans-serif;
}
.intl-footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}
.intl-footer-col h4 {
  color: #D4AF37;
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.intl-footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #D4AF37;
  border-radius: 2px;
}
[dir="rtl"] .intl-footer-col h4::after {
  left: auto;
  right: 0;
}
.intl-footer-col p,
.intl-footer-col li {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}
.intl-footer-col ul {
  list-style: none;
  padding: 0;
}
.intl-footer-col a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.intl-footer-col a:hover {
  color: #D4AF37;
}
.intl-footer-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 10px 20px;
  background: #25D366;
  color: #fff;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}
.intl-footer-cta:hover {
  background: #128C7E;
  transform: translateY(-2px);
}
.intl-footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}
.intl-footer-bottom a {
  color: #D4AF37;
}

/* ============================================
   ۵. واکنش‌گرایی (Responsive)
   ============================================ */
@media (max-width: 768px) {
  .intl-hero h1 { font-size: 2rem; }
  .intl-hero { padding: 3rem 1rem 2rem; }
  .intl-footer-container { grid-template-columns: 1fr; }
  .intl-why-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ۶. تنظیمات کامل جهت (LTR و RTL)
   ============================================ */
/* حالت پیش‌فرض LTR (انگلیسی، ترکی) */
[dir="ltr"] .intl-hero-content,
[dir="ltr"] .intl-footer-container,
[dir="ltr"] .intl-why-us {
  direction: ltr;
  text-align: left;
}
[dir="ltr"] .intl-hero-ctas {
  direction: ltr;
  justify-content: flex-start;
}
[dir="ltr"] .intl-why-item {
  text-align: left;
}

/* حالت RTL (عربی) */
[dir="rtl"] .intl-hero-content,
[dir="rtl"] .intl-footer-container,
[dir="rtl"] .intl-why-us {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .intl-hero-ctas {
  direction: rtl;
  justify-content: flex-start;
}
[dir="rtl"] .intl-why-item {
  text-align: right;
}