/* =========================================================
   ZNILATHOSS SPORTS
   RESPONSIVE.CSS
   التصميم المتجاوب لجميع الشاشات
   ========================================================= */


/* =========================================================
   1. القواعد العامة
   ========================================================= */

html {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* =========================================================
   2. الحاويات الرئيسية
   ========================================================= */

.app,
.app-container,
.page,
.main-container,
.content-container,
.main-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}


/* =========================================================
   3. الصور
   ========================================================= */

img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}


/* =========================================================
   4. HEADER
   ========================================================= */

.app-header {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.header-inner {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}


/* =========================================================
   5. NAVIGATION
   ========================================================= */

.main-navigation {
    width: 100%;
    min-width: 0;
    max-width: 100%;

    /*
       مساحة مستقلة لزر القائمة
       حتى لا تختلط البطاقات معه
    */
    padding-top: 72px;
}

.main-navigation .navigation-inner,
.navigation-inner {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}


/* =========================================================
   6. CONTENT
   ========================================================= */

main {
    width: 100%;
    min-width: 0;
    max-width: 100%;

    /*
       مساحة إضافية أسفل منطقة الرأس
    */
    padding-top: 25px;
}

section {
    min-width: 0;
    max-width: 100%;
}


/* =========================================================
   7. المسافة العلوية الرئيسية
   حسب حجم الشاشة
   ========================================================= */


/* ---------------------------------------------------------
   شاشة كبيرة
   1200px فأكثر
   --------------------------------------------------------- */

@media (min-width: 1200px) {

    .main-navigation {
        padding-top: 72px;
    }

    main {
        padding-top: 95px;
    }

}


/* ---------------------------------------------------------
   Laptop
   769px - 1199px
   --------------------------------------------------------- */

@media (min-width: 769px) and (max-width: 1199px) {

    .main-navigation {
        padding-top: 68px;
    }

    main {
        padding-top: 80px;
    }

}


/* ---------------------------------------------------------
   Tablet
   601px - 768px
   --------------------------------------------------------- */

@media (min-width: 601px) and (max-width: 768px) {

    .main-navigation {
        padding-top: 64px;
    }

    main {
        padding-top: 70px;
    }

}


/* ---------------------------------------------------------
   Mobile
   481px - 600px
   --------------------------------------------------------- */

@media (min-width: 481px) and (max-width: 600px) {

    .main-navigation {
        padding-top: 62px;
    }

    main {
        padding-top: 65px;
    }

}


/* ---------------------------------------------------------
   Mobile
   381px - 480px
   --------------------------------------------------------- */

@media (min-width: 381px) and (max-width: 480px) {

    .main-navigation {
        padding-top: 60px;
    }

    main {
        padding-top: 60px;
    }

}


/* ---------------------------------------------------------
   Mobile صغير
   320px - 380px
   --------------------------------------------------------- */

@media (min-width: 320px) and (max-width: 380px) {

    .main-navigation {
        padding-top: 56px;
    }

    main {
        padding-top: 56px;
    }

}


/* ---------------------------------------------------------
   أقل من 320px
   --------------------------------------------------------- */

@media (max-width: 319px) {

    .main-navigation {
        padding-top: 52px;
    }

    main {
        padding-top: 52px;
    }

}


/* =========================================================
   8. بطاقات المباريات
   ========================================================= */

.match-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    overflow: hidden;
}

.match-card * {
    min-width: 0;
}

.match-card img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}


/* =========================================================
   9. LIVE
   ========================================================= */

.live-container,
.live-section,
.live-matches {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}


/* =========================================================
   10. TODAY
   ========================================================= */

.today-container,
.today-section,
.today-matches {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}


/* =========================================================
   11. TOMORROW
   ========================================================= */

.tomorrow-container,
.tomorrow-section,
.tomorrow-matches {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}


/* =========================================================
   12. STANDINGS
   ========================================================= */

.standings-container,
.standings-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}


/* =========================================================
   13. الجداول
   ========================================================= */

table {
    max-width: 100%;
}

.table-container,
.standings-table-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    overflow-x: auto;
}


/* =========================================================
   14. PREDICTIONS
   ========================================================= */

.predictions-container,
.predictions-section,
.prediction-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}


/* =========================================================
   15. Prediction AI
   ========================================================= */

#predictionResult {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    box-sizing: border-box;
}

.prediction-ai-content,
.prediction-ai-result {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    overflow-wrap: break-word;
}


/*
   مهم:
   لا نضع هنا flex-direction.
   ملفات Prediction AI الخاصة مسؤولة عن ترتيبها.
*/


/* =========================================================
   16. حماية النصوص الطويلة
   ========================================================= */

.match-card,
.sidebar,
.prediction-ai-content,
.prediction-ai-result {
    overflow-wrap: break-word;
}


/* =========================================================
   17. الأزرار والروابط
   ========================================================= */

button,
a {
    max-width: 100%;
}


/* =========================================================
   18. النوافذ والقوائم المنسدلة
   ========================================================= */

.modal,
.modal-content,
.dropdown,
.dropdown-menu {
    max-width: 100%;
}


/* =========================================================
   19. منع تجاوز الصفحة
   ========================================================= */

.app-header,
.main-navigation,
main,
footer {
    max-width: 100%;
}


/* =========================================================
   20. تحسين بطاقات المباريات على الهاتف
   ========================================================= */

@media (max-width: 600px) {

    .match-card {
        width: calc(100% - 16px);

        margin-left: auto;
        margin-right: auto;
    }

    .match-card img {
        max-width: 48px;
        max-height: 48px;
    }

    button,
    .btn {
        min-height: 40px;
    }

}


/* =========================================================
   21. الهاتف الصغير جدًا
   ========================================================= */

@media (max-width: 380px) {

    .match-card {
        width: calc(100% - 10px);
    }

    .match-card img {
        max-width: 40px;
        max-height: 40px;
    }

}


/* =========================================================
   22. الأجهزة اللوحية
   ========================================================= */

@media (min-width: 601px) and (max-width: 1024px) {

    .match-card {
        width: calc(100% - 20px);

        margin-left: auto;
        margin-right: auto;
    }

}


/* =========================================================
   23. الشاشات الكبيرة
   ========================================================= */

@media (min-width: 1025px) {

    .match-card {
        max-width: 1200px;

        margin-left: auto;
        margin-right: auto;
    }

}


/* =========================================================
   24. MENU BUTTON
   زر القائمة
   =========================================================

   الموقع:
   - اليسار
   - بعيد عن الحافة
   - ثابت
   - صغير
   - لا يختلط مع البطاقات

   ========================================================= */

.menu-toggle {
    position: fixed !important;

    top: 18px !important;
    left: 18px !important;
    right: auto !important;

    width: 44px !important;
    height: 44px !important;

    min-width: 44px !important;
    min-height: 44px !important;

    padding: 0 !important;
    margin: 0 !important;

    z-index: 100001 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    border: none !important;
    border-radius: 12px !important;

    background: #8be34f !important;
    color: #ffffff !important;

    font-size: 23px !important;
    line-height: 1 !important;

    cursor: pointer;

    box-sizing: border-box !important;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* ---------------------------------------------------------
   الضغط على الزر
   --------------------------------------------------------- */

.menu-toggle:active {
    transform: scale(0.94);
}


/* =========================================================
   25. MENU BUTTON — DESKTOP
   ========================================================= */

@media (min-width: 1200px) {

    .menu-toggle {
        top: 18px !important;
        left: 20px !important;

        width: 44px !important;
        height: 44px !important;

        min-width: 44px !important;
        min-height: 44px !important;

        font-size: 23px !important;
    }

}


/* =========================================================
   26. MENU BUTTON — LAPTOP
   ========================================================= */

@media (min-width: 769px) and (max-width: 1199px) {

    .menu-toggle {
        top: 18px !important;
        left: 18px !important;

        width: 43px !important;
        height: 43px !important;

        min-width: 43px !important;
        min-height: 43px !important;

        font-size: 22px !important;
    }

}


/* =========================================================
   27. MENU BUTTON — TABLET
   ========================================================= */

@media (min-width: 601px) and (max-width: 768px) {

    .menu-toggle {
        top: 16px !important;
        left: 16px !important;

        width: 42px !important;
        height: 42px !important;

        min-width: 42px !important;
        min-height: 42px !important;

        font-size: 22px !important;
    }

}


/* =========================================================
   28. MENU BUTTON — MOBILE
   ========================================================= */

@media (min-width: 481px) and (max-width: 600px) {

    .menu-toggle {
        top: 15px !important;
        left: 14px !important;

        width: 41px !important;
        height: 41px !important;

        min-width: 41px !important;
        min-height: 41px !important;

        font-size: 21px !important;
    }

}


/* =========================================================
   29. MENU BUTTON — MOBILE SMALL
   ========================================================= */

@media (min-width: 381px) and (max-width: 480px) {

    .menu-toggle {
        top: 14px !important;
        left: 12px !important;

        width: 40px !important;
        height: 40px !important;

        min-width: 40px !important;
        min-height: 40px !important;

        font-size: 21px !important;
    }

}


/* =========================================================
   30. MENU BUTTON — MOBILE VERY SMALL
   ========================================================= */

@media (min-width: 320px) and (max-width: 380px) {

    .menu-toggle {
        top: 13px !important;
        left: 10px !important;

        width: 39px !important;
        height: 39px !important;

        min-width: 39px !important;
        min-height: 39px !important;

        font-size: 20px !important;
    }

}


/* =========================================================
   31. MENU BUTTON — أقل من 320px
   ========================================================= */

@media (max-width: 319px) {

    .menu-toggle {
        top: 12px !important;
        left: 8px !important;

        width: 38px !important;
        height: 38px !important;

        min-width: 38px !important;
        min-height: 38px !important;

        font-size: 19px !important;
    }

}


/* =========================================================
   32. SIDEBAR
   القائمة الجانبية
   =========================================================

   الزر:
   اليسار

   القائمة:
   تفتح من اليمين

   ========================================================= */

.sidebar {
    position: fixed !important;

    top: 0 !important;
    right: 0 !important;
    left: auto !important;

    width: 300px;
    max-width: 85vw;

    height: 100vh;
    height: 100dvh;

    z-index: 100000 !important;

    background: #0b1f3a;

    direction: rtl;

    transform: translateX(100%);

    transition:
        transform 0.3s ease;

    overflow-y: auto;
    overflow-x: hidden;

    box-shadow:
        -8px 0 25px rgba(0, 0, 0, 0.25);

    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   33. القائمة مفتوحة
   ========================================================= */

.sidebar.open {
    transform: translateX(0);
}


/* =========================================================
   34. محتوى القائمة
   ========================================================= */

.sidebar-content {
    width: 100%;
    min-width: 0;

    padding: 90px 20px 30px;

    direction: rtl;
}


/* =========================================================
   35. روابط القائمة
   ========================================================= */

.sidebar a {
    display: block;

    width: 100%;
    max-width: 100%;

    margin-bottom: 12px;

    padding: 14px 18px;

    border-radius: 12px;

    background: #ffffff;
    color: #0b1f3a;

    text-decoration: none;

    text-align: right;

    font-size: 16px;
    line-height: 1.5;

    box-sizing: border-box;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


/* =========================================================
   36. Hover القائمة
   ========================================================= */

.sidebar a:hover {
    background: #8be34f;

    transform: translateX(-4px);
}


/* =========================================================
   37. OVERLAY
   خلفية القائمة
   ========================================================= */

.sidebar-overlay {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 9999;

    background: rgba(0, 0, 0, 0.45);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


/* =========================================================
   38. OVERLAY ACTIVE
   ========================================================= */

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   39. منع الخلفية من الحركة عند فتح القائمة
   ========================================================= */

body.menu-open {
    overflow: hidden;
}


/* =========================================================
   40. إمكانية الوصول
   ========================================================= */

.menu-toggle:focus-visible,
.sidebar a:focus-visible {
    outline: 3px solid #8be34f;
    outline-offset: 3px;
}


/* =========================================================
   41. تقليل الحركة
   ========================================================= */

@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;
    }

}


/* =========================================================
   42. نهاية RESPONSIVE.CSS
   ========================================================= */