/* Quranic Fonts with Tajweed Support
 * Collection of authenticated Arabic/Quranic fonts from various sources
 * Updated with King Fahd Quran Complex and other authoritative sources
 */

/* ===== KING FAHD QURAN COMPLEX FONTS ===== */

/* KFGQPC Uthman Taha Naskh - Regular */
@font-face {
    font-family: 'KFGQPC Uthman Taha Naskh';
    src: url('./KFGQPC-UthmanTahaNaskh-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* KFGQPC Uthman Taha Naskh - Bold */
@font-face {
    font-family: 'KFGQPC Uthman Taha Naskh';
    src: url('./KFGQPC-UthmanTahaNaskh-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* KFGQPC Uthmanic Script HAFS */
@font-face {
    font-family: 'KFGQPC Uthmanic Script HAFS';
    src: url('./KFGQPC-UthmanicScriptHafs.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* QCF Mushaf Ligatures */
@font-face {
    font-family: 'QCF Mushaf Ligatures';
    src: url('./QCF_BSML.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* QCF Page Fonts - Sample pages */
@font-face {
    font-family: 'QCF Page 001';
    src: url('./QCF_P001.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'QCF Page 002';
    src: url('./QCF_P002.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== EXISTING COLOR TAJWEED FONTS ===== */

/* QCF Tajweed Rules - Your existing color tajweed font */
@font-face {
    font-family: 'QCF Tajweed Rules';
    src: url('./QCF4_TajweedRules-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* QCF Bismillah Color */
@font-face {
    font-family: 'QCF Bismillah Color';
    src: url('./QCF_Bismillah_COLOR-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Uthmanic Neo Color Fonts */
@font-face {
    font-family: 'Uthmanic Neo Color';
    src: url('./Uthmanic_NeoCOLOR-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Uthmanic Neo BC Color';
    src: url('./Uthmanic_NeoBCOLOR-VF.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== ADDITIONAL QURANIC FONTS ===== */

/* Scheherazade New - SIL International */
@font-face {
    font-family: 'Scheherazade New';
    src: url('./ScheherazadeNew-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* me_quran - Tanzil/Meor Ridzuan */
@font-face {
    font-family: 'me_quran';
    src: url('./me_quran.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Al-Quran Indo-Pak */
@font-face {
    font-family: 'Al-Quran Indo-Pak';
    src: url('./AlQuranIndoPakv5byQuranWBW.com-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Nastaleeq Color Fonts */
@font-face {
    font-family: 'Nastaleeq Color';
    src: url('./Nastaleeq_COLOR-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nastaleeq Bold Color';
    src: url('./NastaleeqB_COLOR-Regular.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ===== UTILITY FONTS ===== */

/* Surah Names */
@font-face {
    font-family: 'surah-name-v4';
    src: url('./chapter/surah-name-v4.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Juz Names */
@font-face {
    font-family: 'Juz Names';
    src: url('./juz_names-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* QCF Surah Home */
@font-face {
    font-family: 'QCF Surah Home';
    src: url('./QCF_SurahHome-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== FONT STACKS FOR DIFFERENT USE CASES ===== */

/* Recommended font stack for Quranic text with authentic Uthmanic script */
.quran-text-authentic {
    font-family: 'KFGQPC Uthmanic Script HAFS', 'KFGQPC Uthman Taha Naskh', 'me_quran', 'Scheherazade New', serif;
}

/* Font stack for color-coded tajweed */
.quran-text-tajweed {
    font-family: 'QCF Tajweed Rules', 'Uthmanic Neo Color', 'Nastaleeq Color', 'KFGQPC Uthman Taha Naskh', serif;
}

/* Font stack for Indo-Pak style (South Asian) */
.quran-text-indopak {
    font-family: 'Al-Quran Indo-Pak', 'Nastaleeq Color', 'me_quran', serif;
}

/* Font stack for general Arabic text */
.arabic-text {
    font-family: 'Scheherazade New', 'KFGQPC Uthman Taha Naskh', 'me_quran', serif;
}

/* Bismillah specific styling */
.bismillah {
    font-family: 'QCF Bismillah Color', 'KFGQPC Uthman Taha Naskh', serif;
}

/* Surah headers */
.surah-header {
    font-family: 'surah-name-v4', 'QCF Surah Home', 'KFGQPC Uthman Taha Naskh', serif;
}

/* ===== TAJWEED COLOR CLASSES ===== */

/* Color coding for Tajweed rules based on common systems */
.tajweed-ghunna {
    color: #ff0000; /* Red - Ghunna (nasal sound) */
}

.tajweed-heavy {
    color: #008000; /* Green - Heavy letters (Tafkhim) */
}

.tajweed-qalqalah {
    color: #0000ff; /* Blue - Qalqalah (echoing sound) */
}

.tajweed-madd {
    color: #800080; /* Purple - Madd (elongation) */
}

.tajweed-ikhfa {
    color: #ffa500; /* Orange - Ikhfa (hiding) */
}

.tajweed-idgham {
    color: #008080; /* Teal - Idgham (merging) */
}

.tajweed-iqlab {
    color: #ff69b4; /* Pink - Iqlab (conversion) */
}

.tajweed-waqf {
    color: #8b4513; /* Brown - Waqf (stopping signs) */
}
