/**
 * Rubik Font - Single Source of Truth
 * This file is the centralized font configuration for the entire site
 * All Hebrew and English text should use Rubik font family
 */

/* Import Rubik font from Google Fonts with all weights */
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Global font family configuration */
:root {
    --font-family-base: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-family-hebrew: 'Rubik', sans-serif;
    --font-family-primary: 'Rubik', sans-serif;

    /* Font weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
}

/* Apply Rubik to all elements */
* {
    font-family: var(--font-family-base) !important;
}

body {
    font-family: var(--font-family-base) !important;
    font-weight: var(--font-weight-normal);
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-family-base) !important;
    font-weight: var(--font-weight-bold);
}

/* Buttons */
button, .btn, input[type="button"], input[type="submit"] {
    font-family: var(--font-family-base) !important;
    font-weight: var(--font-weight-medium);
}

/* Forms */
input, textarea, select, option {
    font-family: var(--font-family-base) !important;
}

/* Tables */
table, th, td {
    font-family: var(--font-family-base) !important;
}

/* Links */
a {
    font-family: var(--font-family-base) !important;
}

/* Paragraphs and text */
p, span, div, li, label {
    font-family: var(--font-family-base) !important;
}

/* Specific weight classes */
.font-weight-light,
.fw-light {
    font-weight: var(--font-weight-light) !important;
}

.font-weight-normal,
.fw-normal {
    font-weight: var(--font-weight-normal) !important;
}

.font-weight-medium,
.fw-medium {
    font-weight: var(--font-weight-medium) !important;
}

.font-weight-semibold,
.fw-semibold {
    font-weight: var(--font-weight-semibold) !important;
}

.font-weight-bold,
.fw-bold {
    font-weight: var(--font-weight-bold) !important;
}

.font-weight-extrabold,
.fw-extrabold {
    font-weight: var(--font-weight-extrabold) !important;
}

.font-weight-black,
.fw-black {
    font-weight: var(--font-weight-black) !important;
}

/* Override any other font families that might be set */
.modal, .modal-content, .modal-header, .modal-body, .modal-footer,
.card, .card-body, .card-header, .card-footer,
.nav, .navbar, .menu, .sidebar,
.alert, .notification,
.dropdown, .dropdown-menu,
.form-control, .form-label, .form-text {
    font-family: var(--font-family-base) !important;
}

/* Ensure Hebrew text uses Rubik */
[lang="he"], [dir="rtl"],
body[dir="rtl"], html[lang="he"] {
    font-family: var(--font-family-hebrew) !important;
}
