/* =========================================
   Fonts
========================================= */

/*
   فایل فونت‌ها را داخل quran/fonts قرار بده.

   اگر فونت خاصی نداری، فعلاً مرورگر از fallback
   استفاده می‌کند و بعداً فقط فایل‌های فونت را اضافه می‌کنی.
*/

@font-face {
    font-family: "Vazir";
    src: url("../fonts/woff2/Vazir.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazir";
    src: url("../fonts/woff2/Vazir-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: "IRANSansX";
    src: url("../fonts/woff2/IRANSansX-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: "Amiri";
    src: url("../fonts/ttf/AmiriQuran-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "NotoNaskhArabic";
    src: url("../fonts/ttf/NotoNaskhArabic-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "NotoNaskhArabic";
    src: url("../fonts/ttf/NotoNaskhArabic-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Yekan";
    src: url("../fonts/yekan.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* =========================================
   General
========================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: "IRANSansX", sans-serif;
    min-height: 100vh;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.quran-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
}

.quran-main {
    padding-top: 180px;
    padding-bottom: 90px;
}

.quran-navigation {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;

    background: var(--bs-body-bg);
    border-top: 1px solid var(--bs-border-color);

    padding: 0.75rem 1rem;
}


/* =========================================
   Quran content
========================================= */

.ayah-card {
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.ayah-card .card-body {
    padding: 1.5rem;
}


/* شماره آیه */

.ayah-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 2.25rem;
    height: 2.25rem;

    border: 1px solid var(--bs-border-color);
    border-radius: 50%;

    font-size: 0.9rem;
    margin-left: 0.5rem;
}


/* متن عربی */

.arabic-text {
    font-family: "Amiri", "NotoNaskhArabic", Tahoma, serif;

    font-size: 32px;
    line-height: 2.2;

    text-align: center;
    direction: rtl;

    margin: 1rem 0;

    transition:
        font-size 0.15s ease,
        font-family 0.15s ease;
}


/* ترجمه */

.persian-text {
    font-family: "IRANSansX", "Vazir", "Yekan", Tahoma, sans-serif;

    font-size: 18px;
    line-height: 2;

    text-align: right;
    direction: rtl;

    padding-top: 1rem;
    margin-top: 1rem;

    border-top: 1px solid var(--bs-border-color);

    transition:
        font-size 0.15s ease,
        font-family 0.15s ease;
}


/* سجده */

.sajdah-badge {
    font-size: 0.75rem;
}


/* وقتی آیه از لینک مستقیم انتخاب شده */

.ayah-card.highlight {
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.25);
}


/* =========================================
   Responsive
========================================= */

@media (max-width: 576px) {

    .quran-main {
        padding-top: 185px;
        padding-bottom: 90px;
    }

    .ayah-card .card-body {
        padding: 1rem;
    }

    .arabic-text {
        line-height: 2;
    }

    .persian-text {
        line-height: 1.9;
    }
}
