/* ── پایه: فونت‌ها، ریست، اجزای مشترک ───────────────────────── */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-fa);
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text);
    background: var(--bg);
    transition: background-color .25s ease, color .25s ease;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 { line-height: 1.5; margin: 0; }

.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* ── دکمه‌ها: همیشه pill ── */
.btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-fa);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn-primary {
    background: var(--ion-500);
    color: var(--signal-white);
}
.btn-primary:hover { background: var(--ion-600); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover { border-color: var(--text); }

/* CTA شیشه‌ای روی هیرو */
.btn-glass {
    background: rgba(250, 250, 250, 0.08);
    color: var(--signal-white);
    border-color: rgba(250, 250, 250, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-glass:hover {
    background: rgba(250, 250, 250, 0.18);
    border-color: var(--signal-white);
}

.btn-lg { padding: 0.95rem 2.8rem; font-size: 1.05rem; }
.btn-sm { padding: 0.45rem 1.4rem; font-size: 0.875rem; }

/* لوگوی لاتین */
/* لوگوی متنی: PADASHIAN با حروف بزرگ (فونت Inter — تا وقتی لوگوی رسمی طراحی شود) */
.logo {
    font-family: var(--font-latin);
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    direction: ltr;
}

.badge {
    display: inline-block;
    padding: 0.1rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
}
.badge-muted { background: var(--bg-soft); color: var(--text-muted); border: 1px solid var(--border); }

.is-soon { cursor: default; opacity: 0.55; }
.is-soon small { font-size: 0.7em; color: var(--ion-500); }

/* ── دکمه سوییچ تم تیره/روشن ── */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: border-color .2s ease;
}
.theme-toggle:hover { border-color: var(--text); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; }

/* آیکونِ تمی که با کلیک به آن می‌روید نمایش داده می‌شود */
.icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }
