/* הגדרות פונטים מותאמים אישית */

/* Frank Ruehl CLM - פונט עברי מסורתי ויפה */
@font-face {
    font-family: 'FrankRuehlCLM';
    src: url('FrankRuehlCLM-Medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FrankRuehlCLM';
    src: url('FrankRuehlCLM-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FrankRuehlCLM';
    src: url('FrankRuehlCLM-MediumOblique.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'FrankRuehlCLM';
    src: url('FrankRuehlCLM-BoldOblique.otf') format('opentype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

/* SBL Hebrew - פונט אקדמי איכותי */
@font-face {
    font-family: 'SBL Hebrew';
    src: url('sbl-hebrew.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* תל אביב - פונט אקלקטי עברי מס' 1 */
@font-face {
    font-family: 'Tel Aviv';
    src: url('TelAviv-EclecticHebrewNo1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ידישקייט - פונט יהודי מסורתי */
@font-face {
    font-family: 'YiddishkeitAlefAlefAlef-Bold';
    src: url('YiddishkeitAlefAlefAlef-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* משתני CSS לשימוש קל בפונטים */
:root {
    /* פונטים עבריים */
    --frank-ruehl-font: 'FrankRuehlCLM', serif;
    --sbl-hebrew-font: 'SBL Hebrew', serif;
    --tel-aviv-font: 'Tel Aviv', serif;
    --yiddishkeit-font: 'YiddishkeitAlefAlefAlef-Bold', serif;

    /* משתני ברירת מחדל - SBL כפונט ברירת מחדל */
    --hebrew-font: 'SBL Hebrew', 'FrankRuehlCLM', 'Tel Aviv', 'David CLM', 'Times New Roman', serif;
    --english-font: 'Arial', 'Helvetica', sans-serif;
    --title-font: 'SBL Hebrew', 'FrankRuehlCLM', serif;
    --body-font: 'SBL Hebrew', 'FrankRuehlCLM', serif;
    --button-font: 'SBL Hebrew', 'FrankRuehlCLM', serif;
    --clock-font: 'SBL Hebrew', 'FrankRuehlCLM', serif;

    /* פונטים מיוחדים */
    --decorative-font: 'YiddishkeitAlefAlefAlef-Bold', 'FrankRuehlCLM', serif;
    --academic-font: 'SBL Hebrew', 'FrankRuehlCLM', serif;
    --modern-font: 'Tel Aviv', 'FrankRuehlCLM', serif;
}

/* עיצוב כללי עם הפונט החדש */
body {
    font-family: var(--body-font);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font);
}

/* כפתורים */
button, .btn, .nav-btn, .control-btn, .mail-btn {
    font-family: var(--button-font) !important;
}

/* שעון */
#jerusalem-clock, .clock {
    font-family: var(--clock-font);
}

/* כיתובים בכפתורים */
.nav-btn, .mail-btn, .control-btn {
    font-family: var(--button-font);
}

/* כותרת האתר עם טריק להגדלה */
.site-title {
    font-family: var(--decorative-font);
    /* הגדרה של line-height כדי לא להשפיע על גובה */
    line-height: 1;
    /* מרווח נוסף כדי למנוע חפיפה */
    margin: 0.2vw 0;
}

/* כיתות CSS לשימוש ספציפי בפונטים */
.frank-ruehl {
    font-family: var(--frank-ruehl-font);
}

.sbl-hebrew {
    font-family: var(--sbl-hebrew-font);
}

.tel-aviv {
    font-family: var(--tel-aviv-font);
}

.yiddishkeit {
    font-family: var(--yiddishkeit-font);
}

.decorative-text {
    font-family: var(--decorative-font);
}

.academic-text {
    font-family: var(--academic-font);
}

.modern-text {
    font-family: var(--modern-font);
}
