/*
 * kefak: unified brand look for the website (red -> pink accent, Tajawal font).
 * Loaded after css/root.css or css/root-night.css (html/common/site_header.inc.php),
 * so it only changes accent colors and keeps each theme's own backgrounds and texts.
 */

:root {
    --button_primary_background: linear-gradient(to right, #F44336, #EC407A);
    --button_primary_hover_background: linear-gradient(to right, #E53935, #D81B60);
    --button_primary_color: #F44336 !important;
    --button_primary_hover_color: #D32F2F;
    --button_flat_text_color: #F44336;
    --button_card_action_color: #F44336 !important;
    --button_card_action_hover_color: #E53935;
    --item_footer_active_link_color: #F44336;
    --switch_button_on_background_color: #F44336;
    --side_menu_icon_tint: #F44336;
    --side_menu_icon_tint_hover: #F44336;
    --text_link_hover: #F44336;
    --ls_menu_item_color: #F44336;
    --ls_menu_selected_item_border_left_color: #F44336;
    --ls_menu_selected_item_border_bottom_color: #F44336;
    --kf-font: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
}

body, input, button, select, textarea, .button, .btn,
h1, h2, h3, h4, h5, h6, .page-title-content-inner, .dropdown-menu, .tooltip, .popover {
    font-family: var(--kf-font) !important;
}

/* calmer, rounder surfaces */

.standard-page, .card, .cardview-container, .main-content .content-list-page, .dropdown-menu, .modal-content {
    border-radius: 14px;
}

.button, .btn { font-weight: 500; }

input[type="text"], input[type="password"], input[type="email"], input[type="number"], textarea, select {
    border-radius: 10px;
}

/* ---------- right-to-left (Arabic) ----------
 * The pages load css/*.rtl.css (mirrored copies made by ~/kefak_tools/rtlflip.py).
 * The phone side menu library (js/sidenav.min.js) only slides from the left, so it stays on the left.
 */

html[dir="rtl"] .sn-sidenav { left: 0 !important; right: auto !important; }

/* ---------- landing / login buttons in kefak colors ---------- */

.btn-social.btn-google, .btn-social.btn-google:hover, .btn-social.btn-google:focus {
    background: #FFFFFF !important;
    color: #1F2937 !important;
    border: 1.5px solid rgba(0, 0, 0, .12) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

.btn-social.btn-phone, .btn-social.btn-phone:hover, .btn-social.btn-phone:focus {
    background: linear-gradient(to right, #F44336, #EC407A) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

.btn-social.btn-google .icon-container, .btn-social.btn-phone .icon-container { background: transparent !important; }

/* ---------- cookie notice ---------- */

.header-message {
    background: #1F2937 !important;
    color: #F3F4F6 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18) !important;
}

.header-message .message, .header-message .message * { color: #F3F4F6 !important; }
.header-message a { color: #FF8A80 !important; font-weight: 500; }

/* the Google "G" in its own colors on the white button */
.btn-social.btn-google .icon-google {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 48 48%27%3E%3Cpath fill=%27%23FFC107%27 d=%27M43.6 20.1H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.6-.4-3.9z%27/%3E%3Cpath fill=%27%23FF3D00%27 d=%27M6.3 14.7l6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z%27/%3E%3Cpath fill=%27%234CAF50%27 d=%27M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.1 26.7 36 24 36c-5.2 0-9.6-3.3-11.3-7.9l-6.5 5C9.5 39.6 16.2 44 24 44z%27/%3E%3Cpath fill=%27%231976D2%27 d=%27M43.6 20.1H42V20H24v8h11.3c-.8 2.2-2.2 4.2-4.1 5.6l6.2 5.2C37 39.2 44 34 44 24c0-1.3-.1-2.6-.4-3.9z%27/%3E%3C/svg%3E") !important;
    background-size: 22px 22px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    filter: none !important;
}

/* reCAPTCHA badge: in Arabic it covered the start of the text on the right - keep it small on the left */
html[dir="rtl"] .grecaptcha-badge {
    left: 4px !important;
    right: auto !important;
    width: 70px !important;
    overflow: hidden !important;
    transition: width .3s ease !important;
}

html[dir="rtl"] .grecaptcha-badge:hover { width: 256px !important; }

/* the badge content is left-to-right: keep its logo (left part) in the visible strip */
html[dir="rtl"] .grecaptcha-badge { direction: ltr !important; }

/* links in kefak red instead of blue (readable on the light and the night theme) */
:root { --text_link: #F2545B; }
a.text-link, .rje-body a:not(.btn):not(.btn-social), .sn-sidenav a:hover { color: #F2545B; }

/* ---------- landing hero: features + Google Play ---------- */

.kf-features { list-style: none; padding: 0; margin: 26px 0 0; }

.kf-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    color: #FFFFFF;
    font-size: 17px;
    line-height: 1.5;
}

.kf-feature-icon {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.kf-play { display: inline-block; margin-top: 26px; }
.kf-play img { border-radius: 10px; }

/* ---------- members pages: sidebar menu, cards, counters ---------- */

.item-list .item-li .custom-item-link {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 12px;
    transition: background-color .15s ease;
}

.item-list .item-li .custom-item-link:hover { background-color: rgba(244, 67, 54, .08); }

.item-list .item-li.item-selected .custom-item-link {
    background-color: rgba(244, 67, 54, .12);
    color: #F2545B !important;
}

.item-list .item-li.item-selected .custom-item-link .item-title { color: #F2545B !important; font-weight: 700; }

.item-list .item-icon { color: #F2545B !important; }

.item-counter, .counter {
    background: #F44336 !important;
    color: #FFFFFF !important;
    border-radius: 999px !important;
    padding: 1px 8px !important;
    font-weight: 700;
}

.card-item a.card-body, .card-item div.card-body { border-radius: 14px; }

.standard-page, .main-content > .card, .content-list-page { border-radius: 18px !important; }

.button.primary, .rje-btn.primary, .btn-primary { border-radius: 999px !important; }

.top-header { box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }

/* counters only when they have a number */
.item-counter:empty, .counter:empty { display: none !important; }
.item-counter { background: transparent !important; padding: 0 !important; }
.item-list .item-li .custom-item-link .item-title { color: var(--text_primary); }
