/* =========================================================
   جمعية دماؤنا صدقة
   Salla + Ataa Theme
   Global Visual System
   Version 2
   ========================================================= */


/* =========================================================
   01. الهوية البصرية
   ========================================================= */

:root {

    /* ألوان سلة */
    --color-primary: #22445B;
    --color-primary-dark: #173443;
    --color-primary-light: #789FAA;
    --color-primary-reverse: #FFFFFF;

    /* ألوان جمعية دماؤنا صدقة */
    --ds-primary: #22445B;
    --ds-primary-dark: #173443;
    --ds-primary-deep: #0E2D3A;

    --ds-secondary: #73A0A9;
    --ds-secondary-light: #DDEBEC;

    --ds-accent: #D9963A;
    --ds-red: #B02F16;

    --ds-bg: #F7FAF9;
    --ds-bg-soft: #F1F7F6;

    --ds-white: #FFFFFF;

    --ds-text: #203743;
    --ds-muted: #6F8088;

    --ds-border: #E2ECEA;
    --ds-border-dark: rgba(34, 68, 91, 0.12);

    --ds-radius-sm: 10px;
    --ds-radius: 16px;
    --ds-radius-lg: 22px;
    --ds-radius-xl: 28px;

    --s-radius: 1rem;

    --ds-shadow-sm:
        0 4px 16px rgba(25, 61, 75, 0.06);

    --ds-shadow:
        0 12px 32px rgba(25, 61, 75, 0.09);

    --ds-shadow-hover:
        0 18px 42px rgba(25, 61, 75, 0.13);

    --ds-transition:
        0.28s cubic-bezier(.2,.7,.3,1);
}


/* =========================================================
   02. أساس الموقع
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ds-text);

    background-color: var(--ds-bg);

    background-image:
        radial-gradient(
            circle at 6% 18%,
            rgba(115, 160, 169, 0.09) 0,
            rgba(115, 160, 169, 0.09) 90px,
            transparent 91px
        ),

        radial-gradient(
            circle at 94% 34%,
            rgba(217, 150, 58, 0.065) 0,
            rgba(217, 150, 58, 0.065) 115px,
            transparent 116px
        ),

        radial-gradient(
            circle at 8% 72%,
            rgba(34, 68, 91, 0.045) 0,
            rgba(34, 68, 91, 0.045) 150px,
            transparent 151px
        ),

        radial-gradient(
            circle at 92% 88%,
            rgba(176, 47, 22, 0.035) 0,
            rgba(176, 47, 22, 0.035) 95px,
            transparent 96px
        ),

        linear-gradient(
            180deg,
            #F9FCFB 0%,
            #FFFFFF 38%,
            #F6FAF9 100%
        );

    background-repeat: no-repeat;
}


/* =========================================================
   03. النصوص والعناوين
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.015em;
}

h1,
h2 {
    font-weight: 800;
}

h3,
h4 {
    font-weight: 700;
}

p {
    line-height: 1.9;
}

a {
    transition:
        color var(--ds-transition),
        background-color var(--ds-transition),
        border-color var(--ds-transition),
        opacity var(--ds-transition),
        transform var(--ds-transition);
}


/* =========================================================
   04. الشريط العلوي للهيدر
   البريد + الهاتف
   ========================================================= */

.top-navbar,
.store-header .top-navbar,
header .top-navbar {
    background:
        linear-gradient(
            135deg,
            #173443 0%,
            #102F3D 55%,
            #0C2935 100%
        ) !important;

    color: rgba(255, 255, 255, 0.90) !important;

    border: 0 !important;

    border-bottom:
        1px solid rgba(255,255,255,0.08) !important;
}


/* ارتفاع وترتيب الشريط العلوي */

.top-navbar .container,
.store-header .top-navbar .container {
    min-height: 38px;

    display: flex;
    align-items: center;
}


/* جميع النصوص والروابط داخل الشريط */

.top-navbar a,
.top-navbar span,
.top-navbar p,
.top-navbar .text-gray-500,
.top-navbar .text-gray-600,
.top-navbar .text-gray-700,
.store-header .top-navbar a,
.store-header .top-navbar span {
    color:
        rgba(255,255,255,0.88) !important;

    font-weight: 500;
}


/* الروابط عند المرور */

.top-navbar a:hover,
.store-header .top-navbar a:hover {
    color: #FFFFFF !important;
}


/* الأيقونات */

.top-navbar i,
.top-navbar svg,
.store-header .top-navbar i,
.store-header .top-navbar svg {
    color:
        rgba(255,255,255,0.88) !important;
}


/* الفواصل */

.top-navbar .border-gray-200,
.top-navbar .border-gray-300 {
    border-color:
        rgba(255,255,255,0.12) !important;
}


/* =========================================================
   05. منطقة الهيدر الرئيسية
   ========================================================= */

.store-header,
.main-header {
    position: relative;
    z-index: 50;
}


/* الخلفية المحيطة بالهيدر */

.main-header,
.main-nav-container {
    background:
        #F4F7F7 !important;
}


/* البطاقة البيضاء الرئيسية */

.main-header .inner,
.main-header .container > .inner {
    background:
        rgba(255,255,255,0.98) !important;

    border:
        1px solid rgba(34,68,91,0.075);

    border-radius:
        18px;

    box-shadow:
        0 8px 28px rgba(25,61,75,0.075);

    transition:
        box-shadow var(--ds-transition),
        border-color var(--ds-transition);
}


/* تحسين المسافة حول الهيدر */

.main-header {
    padding-top: 8px;
    padding-bottom: 12px;
}


/* =========================================================
   06. شعار الهيدر
   ========================================================= */

.navbar-brand img,
.main-header .navbar-brand img {
    transition:
        transform var(--ds-transition);
}

.navbar-brand:hover img,
.main-header .navbar-brand:hover img {
    transform: scale(1.025);
}


/* =========================================================
   07. القائمة الرئيسية للهيدر
   ========================================================= */

.main-menu {
    position: relative;
}


/* العنصر الرئيسي بالقائمة */

.main-menu > li > a,
.main-menu > ul > li > a,
.main-menu ul > li > a {
    position: relative;

    color:
        #294451 !important;

    font-weight:
        600 !important;

    border-radius:
        10px;

    transition:
        color var(--ds-transition),
        background-color var(--ds-transition),
        transform var(--ds-transition);
}


/* Hover */

.main-menu > li > a:hover,
.main-menu > ul > li > a:hover {
    color:
        var(--ds-primary) !important;

    background:
        rgba(115,160,169,0.09) !important;
}


/* الخط الجمالي أسفل الرابط */

.main-menu > li > a::after,
.main-menu > ul > li > a::after {
    content: "";

    position: absolute;

    right: 18%;
    left: 18%;

    bottom: 2px;

    height: 2px;

    border-radius: 20px;

    background:
        var(--ds-accent);

    transform:
        scaleX(0);

    transform-origin:
        center;

    transition:
        transform var(--ds-transition);
}


.main-menu > li > a:hover::after,
.main-menu > ul > li > a:hover::after {
    transform:
        scaleX(1);
}


/* العنصر النشط */

.main-menu > li.active > a,
.main-menu > ul > li.active > a,
.main-menu > li.current-menu-item > a,
.main-menu > ul > li.current-menu-item > a {
    color:
        var(--ds-primary) !important;

    font-weight:
        700 !important;
}


/* إظهار خط العنصر النشط */

.main-menu > li.active > a::after,
.main-menu > ul > li.active > a::after,
.main-menu > li.current-menu-item > a::after,
.main-menu > ul > li.current-menu-item > a::after {
    transform:
        scaleX(1);
}


/* =========================================================
   08. القوائم المنسدلة
   ========================================================= */

.main-menu .sub-menu,
.main-menu ul ul {
    background:
        rgba(255,255,255,0.99) !important;

    border:
        1px solid var(--ds-border) !important;

    border-radius:
        14px !important;

    box-shadow:
        0 16px 36px rgba(25,61,75,0.12) !important;

    overflow: hidden;
}


.main-menu .sub-menu a,
.main-menu ul ul a {
    color:
        var(--ds-text) !important;

    background:
        transparent !important;
}


.main-menu .sub-menu a:hover,
.main-menu ul ul a:hover {
    color:
        var(--ds-primary) !important;

    background:
        var(--ds-bg-soft) !important;
}


/* =========================================================
   09. أيقونات الهيدر
   بحث / حساب / سلة
   ========================================================= */

.header-btn,
.main-header .header-btn {
    border-radius:
        999px;

    transition:
        background-color var(--ds-transition),
        transform var(--ds-transition);
}


.header-btn:hover,
.main-header .header-btn:hover {
    background:
        rgba(115,160,169,0.10);

    transform:
        translateY(-1px);
}


/* أيقونات الحساب والسلة */

.main-header svg,
.main-header i {
    transition:
        color var(--ds-transition),
        transform var(--ds-transition);
}


/* =========================================================
   10. تسجيل الدخول
   ========================================================= */

.main-header a[href*="login"],
.main-header a[href*="profile"] {
    transition:
        color var(--ds-transition);
}

.main-header a[href*="login"]:hover,
.main-header a[href*="profile"]:hover {
    color:
        var(--ds-primary) !important;
}


/* =========================================================
   11. نظام الأزرار
   ========================================================= */

.btn,
.btn-primary,
.s-button-btn,
.s-button-element,
[class*="btn-primary"] {
    border-radius:
        13px;

    transition:
        transform var(--ds-transition),
        box-shadow var(--ds-transition),
        background-color var(--ds-transition),
        border-color var(--ds-transition);
}


.btn-primary,
.s-button-primary,
[class*="btn-primary"] {
    background-color:
        var(--ds-primary);

    border-color:
        var(--ds-primary);

    color:
        #FFFFFF;

    box-shadow:
        0 7px 18px rgba(34, 68, 91, 0.18);
}


.btn-primary:hover,
.s-button-primary:hover,
[class*="btn-primary"]:hover {
    background-color:
        var(--ds-primary-dark);

    border-color:
        var(--ds-primary-dark);

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 24px rgba(34, 68, 91, 0.24);
}


.btn-primary:active,
.s-button-primary:active,
[class*="btn-primary"]:active {
    transform:
        translateY(0);
}


/* =========================================================
   12. الأزرار الثانوية
   ========================================================= */

.btn-outline,
.btn-outline-primary,
[class*="outline-primary"] {
    border-radius:
        13px;

    border-color:
        var(--ds-primary);

    color:
        var(--ds-primary);

    background:
        rgba(255,255,255,0.88);

    transition:
        all var(--ds-transition);
}


.btn-outline:hover,
.btn-outline-primary:hover,
[class*="outline-primary"]:hover {
    background:
        var(--ds-primary);

    border-color:
        var(--ds-primary);

    color:
        #FFFFFF;

    transform:
        translateY(-2px);
}


/* =========================================================
   13. بطاقات المشاريع / المنتجات
   ========================================================= */

.product-entry,
.product-card,
.product-item,
salla-product-card {
    border-radius:
        var(--ds-radius-lg);

    transition:
        transform var(--ds-transition),
        box-shadow var(--ds-transition),
        border-color var(--ds-transition);

    box-shadow:
        var(--ds-shadow-sm);
}


.product-entry,
.product-card,
.product-item {
    background:
        rgba(255,255,255,0.96);

    border:
        1px solid var(--ds-border);

    overflow:
        hidden;
}


.product-entry:hover,
.product-card:hover,
.product-item:hover,
salla-product-card:hover {
    transform:
        translateY(-4px);

    box-shadow:
        var(--ds-shadow-hover);
}


.product-entry img,
.product-card img,
.product-item img {
    max-width:
        100%;

    height:
        auto;

    transition:
        transform 0.45s ease;
}


.product-entry:hover img,
.product-card:hover img,
.product-item:hover img {
    transform:
        scale(1.025);
}


/* =========================================================
   14. السعر / قيمة التبرع
   ========================================================= */

.product-price {
    color:
        var(--ds-primary);

    font-weight:
        800;
}


/* =========================================================
   15. البطاقات
   ========================================================= */

.card,
.info-card,
.feature-card,
[class*="info-card"],
[class*="feature-card"] {
    border-radius:
        var(--ds-radius-lg);
}


/* =========================================================
   16. الشارات
   ========================================================= */

.badge,
[class*="badge"] {
    border-radius:
        999px;
}


/* =========================================================
   17. مركز التوعية / المقالات
   ========================================================= */

.blog-card,
.article-card,
[class*="blog-card"],
[class*="article-card"] {
    background:
        #FFFFFF;

    border:
        1px solid var(--ds-border);

    border-radius:
        var(--ds-radius-lg);

    overflow:
        hidden;

    box-shadow:
        var(--ds-shadow-sm);

    transition:
        transform var(--ds-transition),
        box-shadow var(--ds-transition);
}


.blog-card:hover,
.article-card:hover,
[class*="blog-card"]:hover,
[class*="article-card"]:hover {
    transform:
        translateY(-4px);

    box-shadow:
        var(--ds-shadow-hover);
}


/* =========================================================
   18. محتوى الصفحات والمقالات
   ========================================================= */

.article-content,
.blog-content,
.page-content,
.content-entry {
    line-height:
        2;
}


.article-content h2,
.blog-content h2,
.page-content h2,
.content-entry h2 {
    margin-top:
        2rem;

    margin-bottom:
        0.9rem;

    font-weight:
        800;
}


.article-content h3,
.blog-content h3,
.page-content h3,
.content-entry h3 {
    margin-top:
        1.6rem;

    margin-bottom:
        0.7rem;

    font-weight:
        700;
}


.article-content ul,
.blog-content ul,
.page-content ul,
.content-entry ul {
    line-height:
        2;
}


/* =========================================================
   19. التنبيهات
   ========================================================= */

.alert,
.notice,
[class*="alert-"],
[class*="notice-"] {
    border-radius:
        var(--ds-radius);
}


/* =========================================================
   20. الفوتر الرئيسي
   ========================================================= */

footer,
.store-footer,
.main-footer,
.store-footer__inner {
    position:
        relative;

    overflow:
        hidden;

    color:
        rgba(255,255,255,0.88);

    background:

        radial-gradient(
            circle at 8% 18%,
            rgba(115,160,169,0.24) 0,
            rgba(115,160,169,0.24) 110px,
            transparent 111px
        ),

        radial-gradient(
            circle at 92% 82%,
            rgba(217,150,58,0.14) 0,
            rgba(217,150,58,0.14) 135px,
            transparent 136px
        ),

        linear-gradient(
            135deg,
            #173443 0%,
            #102B38 52%,
            #0B222C 100%
        ) !important;
}


/* =========================================================
   21. زخارف الفوتر
   ========================================================= */

footer::before,
.store-footer::before,
.main-footer::before {
    content:
        "";

    position:
        absolute;

    width:
        360px;

    height:
        360px;

    top:
        -190px;

    left:
        -120px;

    border:
        1px solid rgba(255,255,255,0.07);

    border-radius:
        50%;

    pointer-events:
        none;
}


footer::after,
.store-footer::after,
.main-footer::after {
    content:
        "";

    position:
        absolute;

    width:
        260px;

    height:
        260px;

    bottom:
        -150px;

    right:
        -70px;

    border:
        1px solid rgba(217,150,58,0.18);

    border-radius:
        50%;

    pointer-events:
        none;
}


footer > *,
.store-footer > *,
.main-footer > * {
    position:
        relative;

    z-index:
        1;
}


/* =========================================================
   22. عناوين الفوتر
   ========================================================= */

footer .footer-title,
.store-footer .footer-title,
.main-footer .footer-title,
.store-footer h3,
.store-footer h4 {
    color:
        #FFFFFF !important;

    font-weight:
        800;
}


footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
.store-footer h1,
.store-footer h2,
.store-footer h3,
.store-footer h4,
.store-footer h5,
.store-footer h6 {
    color:
        #FFFFFF !important;
}


/* =========================================================
   23. نصوص الفوتر
   ========================================================= */

footer p,
.store-footer p,
.main-footer p,
.store-footer span {
    color:
        rgba(255,255,255,0.78);
}


/* =========================================================
   24. روابط الفوتر
   ========================================================= */

footer a,
.store-footer a,
.main-footer a {
    color:
        rgba(255,255,255,0.84);

    text-decoration:
        none;
}


footer a:hover,
.store-footer a:hover,
.main-footer a:hover {
    color:
        #FFFFFF !important;

    transform:
        translateX(-2px);
}


/* =========================================================
   25. أيقونات الفوتر
   ========================================================= */

footer svg,
.store-footer svg,
.main-footer svg {
    transition:
        transform var(--ds-transition),
        opacity var(--ds-transition);
}


footer a:hover svg,
.store-footer a:hover svg,
.main-footer a:hover svg {
    transform:
        translateY(-2px);
}


/* =========================================================
   26. الشريط السفلي للفوتر - الحقوق
   التعديل الجديد
   ========================================================= */

.store-footer__bottom,
.store-footer .store-footer__bottom,
.footer-sub,
footer .footer-sub,
.main-footer .footer-sub {
    position:
        relative;

    z-index:
        5;

    background:
        linear-gradient(
            135deg,
            #0A222D 0%,
            #081C25 100%
        ) !important;

    color:
        rgba(255,255,255,0.82) !important;

    border-top:
        1px solid rgba(255,255,255,0.10) !important;

    box-shadow:
        0 -1px 0 rgba(0,0,0,0.08) !important;
}


/* حاوية الحقوق */

.store-footer__bottom .container,
.footer-sub .container {
    min-height:
        58px;

    display:
        flex;

    align-items:
        center;
}


/* جميع النصوص داخل الشريط */

.store-footer__bottom p,
.store-footer__bottom span,
.store-footer__bottom a,
.store-footer__bottom .text-gray-500,
.store-footer__bottom .text-gray-600,
.footer-sub p,
.footer-sub span,
.footer-sub a {
    color:
        rgba(255,255,255,0.82) !important;
}


/* روابط الحقوق */

.store-footer__bottom a:hover,
.footer-sub a:hover {
    color:
        #FFFFFF !important;
}


/* أيقونات الشريط السفلي */

.store-footer__bottom svg,
.store-footer__bottom i,
.footer-sub svg,
.footer-sub i {
    color:
        rgba(255,255,255,0.82) !important;
}


/* الفواصل */

.store-footer__bottom .border-gray-200,
.store-footer__bottom .border-gray-300,
.footer-sub .border-gray-200 {
    border-color:
        rgba(255,255,255,0.10) !important;
}


/* =========================================================
   27. طبقة زخرفية خفيفة لشريط الحقوق
   ========================================================= */

.store-footer__bottom::before,
.footer-sub::before {
    content:
        "";

    position:
        absolute;

    width:
        170px;

    height:
        170px;

    left:
        8%;

    top:
        -120px;

    border:
        1px solid rgba(115,160,169,0.10);

    border-radius:
        50%;

    pointer-events:
        none;
}


/* =========================================================
   28. الشعار داخل الفوتر
   ========================================================= */

footer .logo img,
.store-footer .logo img,
.main-footer .logo img {
    max-width:
        190px;

    height:
        auto;
}


/* =========================================================
   29. الخلفيات البيضاء
   ========================================================= */

.bg-white {
    transition:
        box-shadow var(--ds-transition),
        border-color var(--ds-transition);
}


/* =========================================================
   30. التركيز Accessibility
   ========================================================= */

a:focus-visible,
.btn:focus-visible,
.s-button-element:focus-visible {
    outline:
        3px solid rgba(115,160,169,0.34);

    outline-offset:
        3px;
}


/* =========================================================
   31. اختيار النص
   ========================================================= */

::selection {
    background:
        rgba(115,160,169,0.30);

    color:
        var(--ds-primary-deep);
}


/* =========================================================
   32. Scrollbar
   ========================================================= */

::-webkit-scrollbar {
    width:
        9px;
}

::-webkit-scrollbar-track {
    background:
        #F1F5F4;
}

::-webkit-scrollbar-thumb {
    background:
        #9AB5BA;

    border-radius:
        20px;

    border:
        2px solid #F1F5F4;
}

::-webkit-scrollbar-thumb:hover {
    background:
        var(--ds-primary);
}


/* =========================================================
   33. الجوال والتابلت
   ========================================================= */

@media (max-width: 768px) {

    body {
        background-image:

            radial-gradient(
                circle at 0% 25%,
                rgba(115,160,169,0.07) 0,
                rgba(115,160,169,0.07) 80px,
                transparent 81px
            ),

            radial-gradient(
                circle at 100% 76%,
                rgba(217,150,58,0.055) 0,
                rgba(217,150,58,0.055) 90px,
                transparent 91px
            ),

            linear-gradient(
                180deg,
                #F9FCFB 0%,
                #FFFFFF 45%,
                #F7FAF9 100%
            );
    }


    /* الشريط العلوي */

    .top-navbar,
    .store-header .top-navbar {
        background:
            var(--ds-primary-deep) !important;
    }


    /* الهيدر */

    .main-header {
        padding-top:
            5px;

        padding-bottom:
            7px;
    }


    .main-header .inner {
        border-radius:
            14px;
    }


    /* البطاقات */

    .product-entry,
    .product-card,
    .product-item,
    .blog-card,
    .article-card {
        border-radius:
            16px;
    }


    /* الفوتر */

    footer::before,
    .store-footer::before,
    .main-footer::before {
        width:
            230px;

        height:
            230px;

        top:
            -120px;

        left:
            -110px;
    }


    footer::after,
    .store-footer::after,
    .main-footer::after {
        width:
            190px;

        height:
            190px;

        bottom:
            -110px;

        right:
            -90px;
    }


    /* حقوق الجوال */

    .store-footer__bottom .container,
    .footer-sub .container {
        min-height:
            54px;
    }

}


/* =========================================================
   34. تقليل الحركة حسب إعداد الجهاز
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior:
            auto !important;

        transition-duration:
            0.01ms !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;
    }

}