/* ============================================
   Base.css - استایل‌های پایه و فونت‌ها
   ============================================ */

@font-face {
    font-family: 'Vazirmatn';
    src: url('Fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('Fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF;
}

html {
    font-size: 12px;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    padding: 0;
    background: var(--bg-light, #f5f5f5);
    line-height: 1.6;
    color: var(--text-dark, #222);
}

/* ===== فونت لاتین ===== */
.latin-text,
[lang="en"],
input:not([lang="fa"]),
textarea:not([lang="fa"]) {
    font-family: 'Inter', 'Vazirmatn', Tahoma, Arial, sans-serif;
}

/* ===== اسکرول بار سفارشی ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f0f0;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-blue, #4A90E2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a7bc8;
}

/* ===== انتخاب متن ===== */
::selection {
    background: var(--primary-blue, #4A90E2);
    color: var(--text-light, #ffffff);
}

/* ===== لینک‌ها ===== */
a {
    color: var(--primary-blue, #4A90E2);
    text-decoration: none;
    transition: color var(--transition-fast, 0.2s ease);
}
a:hover {
    color: #3a7bc8;
}

/* ===== تصاویر ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}