/* Google font "Poppins" */

@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap");

* {
    padding: 0%;
    margin: 0%;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Tajawal", sans-serif;
    background:hsl(230, 100%, 96%);
}

.movie_bx_1 {
    /* position: relative; */
    width: 100%;
    height: 260px;
    /* border: 1px solid #fff; */
    display: flex;
    align-items: center;
    overflow: auto;
    scroll-behavior: smooth;
}

.movie_bx_1::-webkit-scrollbar {
    display: none;
}


/* movie extra box  */

.movie_bx_1 .movie_bxx {
    display: flex;
    align-items: center;
    width: auto;
    height: 100%;
    /* border: 1px solid #fff; */
}


/* movies box java class start  */

.movie_bx_1 .movie_box_active {
    display: none;
}


/* movies box java class end  */

.movie_bx_1 .card {
    min-width: 140px;
    height: 250px;
    /* border: 1px solid #fff; */
    margin: 0px 7px;
}

.movie_bx_1 .card:nth-last-child(1) {
    margin: 0px 5px 0px 0px;
}

.movie_bx_1 .card a {
    text-decoration: none;
    color: hsl(230, 70%, 16%);
}

.movie_bx_1 .card a img {
    width: 100%;
    height: 80%;
    border-radius: 8px;
}

.movie_bx_1 .card a .content {
    width: 100%;
    height: 15%;
    /* border: 1px solid #fff; */
    margin-top: 5px;
}

.movie_bx_1 .card a .content h5 {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    font-weight: 500;
    font-size: 12px;
    text-align: center;
}

.movie_bx_1 .card a .content h6 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.movie_bx_1 .card a .content h6 span {
    color:hsl(230, 16%, 45%);
    font-weight: lighter;
    text-align: center;
    display: block; /* أو inline-block إذا كان العنصر داخل محتوى آخر */
    width: 100%; /* تأكد من أن العنصر يأخذ المساحة الكاملة */
}



.movie_bx_2 {
    width: 90%;
    height: auto;
    margin: auto;
    overflow: unset;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px 0px;
}

.movie_bx_2 .card {
    width: 140px;
    margin: 10px auto;
}



/* تصميم النافذة المنبثقة */
/*   كتاب الكافي */
.modal3 {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px); /* تأثير التمويه */
}

.modal3-content {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    margin: 10% auto;
    padding: 25px 20px;
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    text-align: center;
    animation: fadeIn 0.4s ease-out;
}

.close {
    color: #555;
    float: right;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff6b6b;
}

.book-parts {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.book-parts li {
    margin: 12px 0;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 10px;
    transition: transform 0.2s ease;
}

.book-parts li:hover {
    background: #e0f7fa;
    transform: translateY(-2px);
}

.book-parts a {
    color: #007bb5;
    font-weight: bold;
    text-decoration: none; /* إزالة الخط */
    display: block;
    transition: color 0.3s ease;
}

.book-parts a:hover {
    color: #005c8f;
    text-decoration: none; /* إزالة الخط حتى عند التمرير */
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}






@media (max-width: 600px) {
    header {
        height: 400px;
      
        
    }
 

header nav .logo img {
    width: 75px;

}
    
    header nav .end_bx ul li {
        margin: 0px 5px;
        display: flex;
        margin-right: 5px;
        
          
    }

    header .content {
        width: 90%;
        margin: 50px auto 0px auto;
    }

    header .content h1 {
        font-size: 30px;
    }

    header .content p {
        width: 100%;
        font-size: 10px;
    }

  

    .tranding_bx li {
        margin-bottom: 10px;
    min-width: fit-content;
    margin-right: 12%;
    }
    

    .cato_bx button {
        font-size: 11px;
        padding: 4px 20px;
    }

    .movie_bx_1 .card {
        min-width: 100px;
        height: 200px;
    }

    .movie_bx_2 .card {
        width: 100px;
    }

}



@media (min-width: 601px) and (max-width: 992px) {
    
    .cato_bx button {
        font-size: 12px;
        padding: 4px 25px;
    }

    .movie_bx_1 .card {
        min-width: 120px;
        height: 230px;
    }

    .movie_bx_2 .card {
        width: 120px;
    }

}


 /* خلفية التعتيم الزجاجية */
.loading-overlay {
    position: fixed;
    inset: 0; 
    background: rgba(15, 23, 42, 0.5); /* تعتيم داكن لإبراز الألوان */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    /* افتراضياً يجب أن يكون مخفياً ويتم إظهاره عبر جافاسكريبت */
    display: none; 
}

/* حاوية شريط التحميل */
.progress-bar {
    width: 80%;
    max-width: 380px;
    height: 8px; /* شريط نحيف وأنيق */
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    position: relative;
    direction: ltr; /* شريط التحميل يفضل أن يبقى من اليسار لليمين دائماً */
}

/* السائل الملون (استخدام ID progress الخاص بك) */
#progress {
    width: 0%; /* ستبدأ من 0 وتزيد بالجافاسكريبت */
    height: 100%;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.6);
    border-radius: 20px;
    position: relative;
    transition: width 0.3s ease-out; /* حركة سلسة عند تحديث النسبة */
}

/* لمعة تمر فوق شريط التحميل */
#progress::after {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shineSwipe 1.5s infinite linear;
}

/* تنسيق النص العربي */
.loading-text {
    color: #ffffff;
    margin-top: 24px;
    font-family: 'Tajawal', 'Cairo', system-ui, sans-serif; /* خطوط عربية جميلة */
    font-size: 15px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    animation: smoothPulse 2s ease-in-out infinite;
    direction: rtl; /* اتجاه النص من اليمين لليسار */
}

/* الحركات */
@keyframes shineSwipe {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes smoothPulse {
    0%, 100% { opacity: 0.7; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}



 /* تنسيق شريط البحث */
 .search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.search-container input {
    width: 75%;
     max-width: 600px; /* تحديد أقصى عرض ليبقى متوازن */
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
    transition: all 0.3s ease;
   background: rgba(255, 255, 255, 0.12); /* خلفية زجاجية أنظف */
    padding-left: 40px; /* مساحة للأيقونة */
    text-align: center;
    

    /* الخط */
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
}

.search-container input:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

.search-container input::placeholder {
    color: #aaa;
}



.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    margin: 10% auto;
    padding: 25px 20px;
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    text-align: center;
    animation: fadeIn 0.4s ease-out;
}





.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px auto;
    padding: 10px;
    width: 100%;
    position: sticky;
    /* top: 0;  
    backdrop-filter: blur(6px);  */
    z-index: 1000;
}

.filters button {
    padding: 12px 24px;
    border: none;
    background: linear-gradient(135deg, #007BFF, #00C6FF); /* تدرج لوني */
    color: #fff;
    border-radius: 30px; /* شكل كبسولة */
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.filters button:hover {
    background: linear-gradient(135deg, #0056b3, #0099cc);
    transform: translateY(-2px); /* حركة خفيفة للأعلى */
    box-shadow: 0 6px 14px rgba(0, 123, 255, 0.4);
}

.filters button:active {
    transform: scale(0.95); /* تصغير بسيط عند الضغط */
}

@media (max-width: 600px) {
    .filters {
        gap: 8px;
        padding: 8px;
    }
    .filters button {
        font-size: 13px;
        padding: 10px 18px;
    }
}





        

