/* style.css - ملف التنسيق الأساسي (النهائي بهوية نتفلكس) */

/* 1. الإعدادات العامة والمتغيرات - تم تحديثها لهوية نتفلكس */
:root {
    --primary-color: #E50914;      /* أحمر نتفلكس الأساسي */
    --primary-hover: #C40812;      /* أحمر نتفلكس أغمق عند التفاعل */
    --dark-bg: #141414;            /* أسود نتفلكس للخلفيات الرئيسية */
    --card-bg: #181818;            /* أسود أفتح قليلاً لبطاقات المحتوى */
    --light-bg: #222222;           /* رمادي داكن جداً لبعض الأقسام */
    --text-color: #FFFFFF;         /* أبيض ناصع للنصوص الرئيسية */
    --text-muted: #AAAAAA;         /* رمادي فاتح للنصوص الثانوية */
    --border-color: #333333;       /* رمادي متوسط للحدود */
    --whatsapp-green: #25D366;     /* أخضر الواتساب الأصلي */
    --whatsapp-hover: #1DA851;     /* درجة أغمق للواتساب عند التفاعل */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.7;
    direction: rtl; 
    overflow-x: hidden; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0; 
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 20px; 
    color: var(--text-color);
}

h2.section-title {
    text-align: center;
    font-size: 2.5rem; /* <<< تم التصغير */
    font-weight: 900;
    margin-bottom: 60px; 
    position: relative;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.3); 
}
h2.section-title::after {
    content: '';
    display: block;
    width: 100px; 
    height: 5px; 
    background-color: var(--primary-color); 
    margin: 20px auto 0;
    border-radius: 3px;
    animation: sectionTitleUnderlineGrow 1.5s ease-out forwards;
}
@keyframes sectionTitleUnderlineGrow {
    from { width: 0; }
    to { width: 100px; }
}


p { color: var(--text-muted); }
a { text-decoration: none; color: var(--primary-color); transition: color 0.3s ease; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; display: block; }

/* 2. الأزرار والمكونات المساعدة */
.btn {
    display: inline-flex; 
    align-items: center;
    gap: 8px; 
    padding: 14px 35px; 
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem; 
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); 
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color); 
    border: 2px solid var(--primary-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--text-color); 
    transform: translateY(-5px) scale(1.02); 
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4); 
}

.btn-nav {
    padding: 10px 25px; 
    font-size: 1rem;
}


/* 3. الهيدر (شريط التنقل) - (تم إصلاحه) */
header {
    background-color: var(--dark-bg); /* أسود صلب */
    padding: 18px 0; 
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color); 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); 
}
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: block;
    height: 45px; 
    transition: transform 0.3s ease;
}
.logo:hover { transform: scale(1.05); }
.logo img {
    height: 100%;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.8)) drop-shadow(0 0 20px rgba(229, 9, 20, 0.4)); 
}

/* 1. الحاوية الجديدة (للكمبيوتر) */
.nav-menu {
    display: flex; /* إظهارها على الكمبيوتر */
    align-items: center;
    gap: 30px; /* مسافة بين القائمة والزر */
}

/* 2. زر الهامبرغر (تم حذفه) */
.hamburger-menu {
    display: none; 
}

/* 3. تنسيق القائمة (للكمبيوتر) */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 35px; /* استخدام gap بدلاً من margin */
}
.nav-menu ul li a {
    color: var(--text-color);
    font-weight: 700;
    position: relative;
    padding: 5px 0;
    font-size: 1.05rem; 
    transition: all 0.3s ease;
}
.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -8px; 
    right: 0;
    width: 0;
    height: 3px; 
    background-color: var(--primary-color); 
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-menu ul li a:hover::after { width: 100%; }
.nav-menu ul li a:hover { color: var(--primary-color); }


/* 4. قسم الهيرو (Hero) */
#hero {
    height: 85vh; /* <<< تم التعديل هنا (أقصر) */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; 
}
#hero .slider { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: var(--dark-bg); 
}
#hero .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 1;
}
#hero .slide.active { opacity: 1; }
#hero .slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* <<< تم التعديل هنا */
    object-position: center; /* <<< هذا يضمن توسيطها */
    display: block;
    filter: brightness(0.9);
}
#hero .slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(20, 20, 20, 0.95), rgba(20, 20, 20, 0.6) 50%, rgba(20, 20, 20, 0.3)); 
    z-index: 2; 
}
.hero-content {
    position: relative;
    z-index: 3; 
    text-align: center;
    color: #fff;
    max-width: 900px; 
    padding: 0 30px;
}
.hero-content h1 {
    font-size: 4.5rem; /* <<< تم التصغير */
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.6); 
}
.hero-content p {
    font-size: 1.6rem; 
    color: var(--text-color); 
    margin-bottom: 40px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* 5. قسم المنصات (تم حذفه واستبداله في الأسفل) */


/* 6. قسم المؤقت (التصميم المدمج) */
#offer-timer {
    background-color: var(--card-bg); 
    padding: 20px 0; 
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.timer-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.timer-bar-title h2 {
    font-size: 1.5rem; 
    font-weight: 700;
    color: var(--text-color); 
    text-shadow: none; 
    margin: 0;
}
.timer-bar-title p {
    font-size: 1rem; 
    color: var(--text-muted);
    margin: 0;
}
.timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; 
}
.timer-box {
    background: var(--dark-bg); 
    border: 1px solid var(--border-color); 
    padding: 8px 15px; 
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}
.timer-box span {
    display: block;
    font-size: 1.8rem; 
    font-weight: 900;
    color: var(--primary-color); 
    line-height: 1.1;
}
.timer-box small {
    font-size: 0.8rem; 
    color: var(--text-muted);
}
.timer-separator {
    font-size: 1.8rem; 
    font-weight: 700;
    color: var(--primary-color); 
    transform: translateY(-5px); 
}
.timer-bar-cta .btn {
    padding: 12px 30px; 
    font-size: 1rem;
    flex-shrink: 0; 
}

/* 7. قسم الميزات */
.features-grid {
    display: flex; 
    justify-content: space-between; 
    gap: 20px; 
}
.feature-card {
    background-color: var(--card-bg); 
    padding: 30px 20px; 
    border-radius: 15px; 
    text-align: center;
    border: 1px solid var(--border-color); 
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); 
    position: relative;
    overflow: hidden; 
    
    flex-basis: 220px; 
    flex-grow: 1; 
    flex-shrink: 1; 
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(229, 9, 20, 0.1) 0%, transparent 70%); 
    opacity: 0;
    transition: opacity 0.4s ease;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.3); 
    border-color: var(--primary-hover);
}
.feature-card i {
    font-size: 4rem; 
    color: var(--primary-color); 
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(229, 9, 20, 0.5)); 
}
.feature-card h3 { 
    font-size: 1.6rem; 
    color: var(--text-color); 
    margin-bottom: 15px; 
}
.feature-card p { 
    font-size: 1rem; 
}

/* 8. قسم الأكثر رواجاً (Trending - هذا كان اسم مؤقت لقسم الأفلام) */
#trending {
    background-color: var(--light-bg); 
    padding-bottom: 100px;
}


/* 9. قسم الباقات (Pricing) */
#pricing {
    background-color: var(--dark-bg); 
}
.pricing-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: -40px;
    margin-bottom: 50px;
}
.pricing-grid-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.pricing-card-icon {
    background-color: var(--card-bg); 
    border-radius: 15px;
    padding: 35px 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden; 
}
.pricing-card-icon:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.3); 
}
.pricing-card-icon.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary-color); 
}
.featured-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background-color: var(--primary-color); 
    color: var(--text-color); 
    font-weight: 700;
    padding: 5px 30px;
    font-size: 0.9rem;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.pricing-card-icon .icon-wrapper {
    font-size: 4.5rem;
    margin-bottom: 20px;
}
.pricing-card-icon.standard .icon-wrapper { color: #87CEEB; } 
.pricing-card-icon.premium .icon-wrapper { color: #C0C0C0; } 
.pricing-card-icon.gold .icon-wrapper { color: #FFD700; } 
.pricing-card-icon h3 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-color); 
    margin-bottom: 5px;
}
.pricing-card-icon .duration {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.pricing-card-icon .price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color); 
    line-height: 1;
}
.pricing-card-icon .price small {
    font-size: 1.1rem;
    font-weight: 700;
}
.pricing-card-icon .old-price {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
    display: block;
    margin-bottom: 25px;
}
.pricing-card-icon .features {
    list-style: none;
    margin-bottom: 30px;
    text-align: right;
    font-size: 1rem;
    color: var(--text-muted);
    min-height: 100px; 
}
.pricing-card-icon .features li { margin-bottom: 10px; }
.pricing-card-icon .features li strong { color: var(--text-color); }
.highlight-red { color: var(--primary-color); font-weight: 700; } 
.highlight-green { color: var(--text-color); font-weight: 700; } 
.pricing-card-icon .btn-primary { width: 100%; }

/* 10. قسم آراء العملاء (Testimonials) */
#testimonials { 
    background-color: var(--dark-bg); 
}
.testimonial-carousel {
    max-width: 900px; 
    margin: 0 auto;
    position: relative;
    background-color: var(--card-bg); 
    border-radius: 15px;
    padding: 60px; 
    overflow: hidden;
    min-height: 280px; 
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.carousel-inner { 
    position: relative; 
    width: 100%; 
    height: 100%; 
}
.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s; 
    padding: 20px;
}
.testimonial-slide.active { 
    opacity: 1; 
    visibility: visible; 
    position: relative; 
}
.testimonial-slide p {
    font-size: 1.4rem; 
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.8;
}
.testimonial-slide h4 {
    font-size: 1.2rem;
    color: var(--primary-color); 
    font-weight: 700;
    text-shadow: 0 0 5px rgba(229, 9, 20, 0.3); 
}
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(229, 9, 20, 0.2); 
    border: none;
    color: var(--text-color);
    font-size: 1.7rem; 
    cursor: pointer;
    width: 55px; 
    height: 55px;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.carousel-control:hover {
    background: var(--primary-color); 
    transform: translateY(-50%) scale(1.1); 
    color: var(--text-color); 
}
.carousel-control.prev { right: 25px; }
.carousel-control.next { left: 25px; }

/* 11. الفوتر */
footer {
    text-align: center;
    padding: 40px 20px; 
    background-color: var(--card-bg); 
    margin-top: 0; 
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}
footer p { 
    color: var(--text-muted); 
    font-size: 1rem; 
}

/* 12. زر الواتساب العائم */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px; 
    background-color: var(--whatsapp-green);
    color: #fff;
    width: 65px; 
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem; 
    z-index: 999;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); 
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.15); 
    background-color: var(--whatsapp-hover);
    color: #fff;
}

/* ================================================ */
/* == الأكواد الجديدة المضافة في نهاية الملف == */
/* ================================================ */

/* ---------------------------------- */
/* 9. تنسيقات كاروسيل الأفلام (Swiper) */
/* (تمت إضافته بدلاً من Grid) */
/* ---------------------------------- */

.movie-carousel {
    width: 100%;
    padding: 0 40px; 
    position: relative;
    overflow: hidden; 
}
.movie-card {
    background: var(--card-bg); 
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform .3s, box-shadow .3s;
    flex-shrink: 0;
    height: auto; 
    width: 160px; /* <<< تحديد عرض "متوسط لصغير" */
}
.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.3); 
}
.movie-poster {
    width: 100%;
    height: 240px; 
    object-fit: cover;
    display: block;
}
.movie-info { padding: 10px; }
.movie-title { 
    font-weight: 700; 
    color: var(--text-color); 
    font-size: 1rem; 
    margin-bottom: 5px; 
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
}
.movie-meta { 
    color: var(--text-muted); 
    font-size: .85rem; 
    margin-bottom: 5px; 
}
.movie-overview { display: none; } 

/* تنسيق أسهم التنقل (Prev/Next) - تم التعديل */
.movie-carousel .swiper-button-next,
.movie-carousel .swiper-button-prev {
    color: var(--primary-color); 
    background-color: rgba(20, 20, 20, 0.7); 
    width: 44px;
    height: 44px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -22px; 
    top: 50%;
}
.movie-carousel .swiper-button-next:hover,
.movie-carousel .swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
}
.movie-carousel .swiper-button-next::after,
.movie-carousel .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: 900;
}
/* تحديد مكان الأسهم - تم التعديل لـ RTL */
.movie-carousel .swiper-button-prev { right: 10px; left: auto; } /* السهم السابق الآن على اليمين */
.movie-carousel .swiper-button-next { left: 10px; right: auto; } /* السهم التالي الآن على اليسار */


/* ---------------------------------- */
/* 5. قسم المنصات (شبكة قابلة للتوسيع) */
/* ---------------------------------- */

.logo-grid-wrapper {
    max-height: 100px; 
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo-grid-wrapper.is-expanded {
    max-height: 500px; 
}
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: center;
    padding: 0 20px;
}
.logo-grid img {
    height: 60px; 
    width: auto;
    max-width: 140px; 
    filter: opacity(0.8);
    transition: filter 0.3s ease, transform 0.3s ease;
}
.logo-grid img:hover {
    filter: opacity(1);
    transform: scale(1.1);
}
.show-more-btn-container {
    text-align: center;
    margin-top: 30px;
}
#show-all-logos-btn i {
    transition: transform 0.3s ease;
}
.logo-grid-wrapper.is-expanded + .show-more-btn-container #show-all-logos-btn i {
    transform: rotate(180deg);
}

/* ================================================ */
/* 13. التجاوب (Responsive Design) - (كتلة موحدة ونهائية) */
/* ================================================ */

/* --- 1. تنسيقات التابلت (Tablet) --- */
@media (max-width: 992px) {
    
    /* --- ▼▼▼ هذا هو الإصلاح ▼▼▼ --- */
    /* 1. إخفاء القائمة النصية */
    .nav-menu ul {
        display: none;
    }
    
    /* 2. (زر "اشترك الآن" يبقى ظاهراً) */
    .hamburger-menu {
        display: none; /* التأكد من إخفاء أي بقايا لزر الهامبرغر */
    }

    /* --- تنسيقات التابلت الأخرى --- */
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content p { font-size: 1.3rem; }
    .logo { height: 40px; }
    h2.section-title { font-size: 2.25rem; margin-bottom: 40px; }
    .timer-box { padding: 10px 15px; }
    .timer-box span { font-size: 2.2rem; }
    .timer-separator { font-size: 2.2rem; }
    .pricing-card-icon.featured {
        transform: scale(1); 
    }
    .pricing-grid-icons {
        grid-template-columns: 1fr;
        max-width: 450px; 
    }
}

/* --- 2. تنسيقات الهاتف (Phone) --- */
@media (max-width: 768px) {
    /* --- الإعدادات العامة للموبايل --- */
    section { padding: 60px 0; }
    h2.section-title { font-size: 1.75rem; margin-bottom: 30px; }
    h2.section-title::after { width: 70px; height: 4px; margin-top: 15px; }
    .btn { padding: 12px 25px; font-size: 1rem; }

    /* --- الهيرو (للموبايل) --- */
    #hero { height: 550px; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }

    /* --- 9. كاروسيل الأفلام (للموبايل) --- */
    .movie-carousel { padding: 0; }
    .movie-carousel .swiper-button-next,
    .movie-carousel .swiper-button-prev { display: none; }

    /* --- 7. قسم الميزات (للموبايل) --- */
    .features-grid { 
        display: flex; 
        overflow-x: auto; 
        gap: 15px; 
        padding-bottom: 20px; 
        scrollbar-width: none; 
    }
    .features-grid::-webkit-scrollbar { display: none; }
    .feature-card { 
        padding: 30px 25px; 
        flex-shrink: 0; 
        width: 240px; 
    }

    /* --- 5. قسم المنصات (للموبايل) --- */
    #partners { padding-top: 40px; padding-bottom: 60px; }
    .logo-grid-wrapper { max-height: 160px; }
    .logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 20px;
    }
    .logo-grid img { height: 45px; }
    
    /* --- 6. قسم المؤقت (للموبايل) --- */
    #offer-timer { padding: 25px 0; }
    .timer-bar-container {
        flex-direction: column; 
        gap: 15px; 
    }
    .timer-bar-title { text-align: center; }
    .timer-bar-title h2 { font-size: 1.3rem; }
    .timer-bar-title p { font-size: 0.9rem; }
    .timer-box { padding: 8px 12px; }
    .timer-box span { font-size: 1.5rem; }
    .timer-separator { font-size: 1.5rem; }
    .timer-bar-cta .btn {
        width: 100%; 
        justify-content: center; 
    }

    /* --- 9. قسم الباقات (للموبايل) --- */
    .pricing-grid-icons { max-width: 100%; } 

    /* --- 10. آراء العملاء (للموبايل) --- */
    #trending { padding-top: 60px; }
    .testimonial-carousel { padding: 30px; min-height: 220px; }
    .testimonial-slide p { font-size: 1.2rem; }
    .testimonial-slide h4 { font-size: 1.05rem; }
    .carousel-control { width: 45px; height: 45px; font-size: 1.5rem; }
    .carousel-control.prev { right: 10px; }
    .carousel-control.next { left: 10px; }

    /* --- 12. واتساب (للموبايل) --- */
    .whatsapp-float { width: 55px; height: 55px; font-size: 2.3rem; bottom: 20px; left: 20px; }
}

/* --- (تم حذف كود القائمة المنبثقة بالكامل) --- */