/* فونت Vazirmatn - offline/local */
@import url('vazirmatn-local.css');

:root {
  --font-fa: "Vazirmatn", "IRANSans", "Yekan", "Segoe UI", Tahoma, Arial, sans-serif;
}

html, body, .persian-text {
  font-family: var(--font-fa);
}

  

/* فونت اصلی - Vazirmatn */
body {
    font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', 'Arial', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* عناوین - وزن بیشتر و فونت متمایز */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* عناوین اصلی - وزن 800 */
h1, h2 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* عناوین فرعی - وزن 700 */
h3, h4 {
    font-weight: 700;
}

/* دکمه‌ها و فرم‌ها */
button, input, textarea, select, .btn {
    font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    font-weight: 500;
}

/* دکمه‌های اصلی - وزن بیشتر */
.btn-primary, .btn-success, .btn-warning, .btn-danger {
    font-weight: 600;
}

/* منو و ناوبری */
.nav-menu a, .breadcrumb a {
    font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    font-weight: 500;
}

/* کارت‌ها و باکس‌ها */
.trip-card, .stat-card, .form-container {
    font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
}

/* متن‌های کوچک */
small, .form-help, .text-muted {
    font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* بهبود خوانایی برای متن فارسی */
body {
    direction: rtl;
    text-align: right;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* بهبود سازگاری با فایرفاکس */
@supports (-moz-appearance: none) {
    body {
        /* font-smooth در فایرفاکس پشتیبانی نمی‌شود */
    }
}

/* بهبود سازگاری با Safari */
@supports (-webkit-appearance: none) {
    body {
        -webkit-font-smoothing: antialiased;
    }
}

/* تنظیمات خاص برای اعداد */
.numbers, .stat-number, .price {
    font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    font-weight: 600;
}

/* بهبود فاصله حروف برای عناوین */
h1, h2, h3 {
    letter-spacing: -0.01em;
}

/* تنظیمات برای موبایل */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* جلوگیری از zoom در iOS */
        line-height: 1.6;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* تنظیمات خاص برای ویندوز */
@supports (font-variation-settings: normal) {
    body {
        font-family: 'Vazirmatn', 'Segoe UI Variable', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    }
}

/* تنظیمات خاص برای macOS */
@supports (-webkit-font-smoothing: antialiased) {
    body {
        font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    }
}

/* بهبود نمایش متن فارسی */
.persian-text {
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    text-justify: inter-word;
    word-spacing: 0.1em;
}

/* بهبود خوانایی برای متن‌های طولانی */
p, .description, .content {
    text-align: justify;
    text-align: center;
    text-justify: inter-word;
    word-spacing: 0.05em;
    line-height: 1.8;
}

/* بهبود نمایش عناوین فارسی */
h1, h2, h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* بهبود نمایش دکمه‌های فارسی */
.btn {
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
}

/* بهبود نمایش منوهای فارسی */
.nav-menu a {
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* بهبود نمایش breadcrumb فارسی */
.breadcrumb a {
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* بهبود نمایش فرم‌های فارسی */
.form-label {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.form-input {
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* بهبود نمایش کارت‌های فارسی */
.trip-title, .card-title {
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: center;
}

/* بهبود نمایش آمار و اعداد */
.stat-number {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* بهبود نمایش متن‌های کوچک فارسی */
small, .form-help, .text-muted {
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.6;
}
