/* عام */
body {
    margin: 0;
    font-family: tahoma, sans-serif;
    direction: rtl;
    background-color: #121212;
    color: white;
}

* {
    box-sizing: border-box;
}

/* الهيدر */
header {
    display: flex;
    flex-wrap: wrap;
    /* يسمح بالتفاف المحتوى */
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #222;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #444;
}

/* الشعار */
.logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 36px;
    color: #e50914;
    white-space: nowrap;
}

/* شريط الروابط */
.header {
    display: flex;
    flex-wrap: wrap;
    /* التفاف الروابط لو ما في مكان */
    gap: 15px;
    /* مسافة بين الروابط */
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

#seo-links {
    position: fixed;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


.header a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    border-radius: 8px;
    white-space: nowrap;
    /* يمنع كسر النص */
    transition: background-color 0.3s, color 0.3s;
}

.header a:hover {
    background-color: rgba(0, 255, 204, 0.3);
    color: #000;
    cursor: pointer;
}

.poster {
    width: 100%;
    max-width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    margin: auto;
}

.photo {
    display: flex;
    flex-direction: row-reverse;
    width: 300%;
    height: 100%;
    animation: slide 12s infinite linear;
}

.photo a {
    flex: 0 0 100%;
    height: 100%;
}

.photo img {
    width: 25%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    right: 150px;
}

@keyframes slide {

    0%,
    20% {
        transform: translateX(0%);
    }

    25%,
    45% {
        transform: translateX(-100%);
    }

    50%,
    70% {
        transform: translateX(-200%);
    }

    75%,
    100% {
        transform: translateX(0%);
    }
}






/* متجاوب للشاشات الصغيرة: توقف الحركة وتعطي عرض 100% لكل صورة */
@media (max-width: 768px) {
    .photo {
        .photo {
            animation: slide-left 9s infinite;
            /* ← نفس الأنيميشن تبع الكمبيوتر */
            display: flex;
            flex-direction: row-reverse;
            /* عشان تكون أفقية مش عمودية */

        }

        width: 100%;
        flex-direction: row-reverse;
        display: flex;
    }

    .photo a {
        flex: 0 0 100%;
        margin-bottom: 15px;
    }

    .photo img {
        width: 80%;
        height: auto;
        position: relative;
        right: 30px;
    }

    .poster {
        height: auto;
        margin-bottom: 20px;
    }
}


/* شريط البحث */
.search-bar {
    display: flex;
    justify-content: center;
    margin: 20px auto;
    position: relative;
    max-width: 600px;
}

.search-bar input {
    width: 100%;
    max-width: 400px;
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    outline: none;
    background-color: #f8f3f3;
    color: rgb(12, 12, 12);
    font-size: 16px;
    box-shadow: 0 0 5px rgba(0, 255, 204, 0.3);
    transition: 0.3s;
    font-weight: bold;
}

.search-bar input:focus {
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.6);
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    max-width: 400px;
    list-style: none;
    background-color: #2b2b2b;
    color: white;
    padding: 0;
    border-radius: 8px;
    margin-top: 5px;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.suggestions-list li {
    padding: 10px;
    cursor: pointer;
}

.suggestions-list li:hover {
    background-color: #00ffcc;
    color: black;
}

/* قسم الأحدث المراجعات */
.reviews-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.reviews-section h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 36px;
    letter-spacing: 2px;
    color: #00ffcc;
    text-align: center;
    margin-bottom: 20px;
}

.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.review-card {
    background-color: #222;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 255, 204, 0.3);
}

.review-card h3 {
    margin: 10px 0;
    color: #00ffcc;
}

.review-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.review-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background-color: #00ffcc;
    color: #121212;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.review-card a:hover {
    background-color: #00ddb3;
}

/* الصفحات */
.pagination {
    display: flex;
    justify-content: center;
    margin: 25px 0;
    gap: 10px;
}

.pagination button {
    padding: 8px 12px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination button:hover,
.pagination button.active {
    background-color: #00ffcc;
    color: #121212;
}

/* التصنيفات */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    justify-content: center;
}

.category {
    background-color: #1a1a1d;
    padding: 15px 25px;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.category:hover {
    background-color: #00ffcc;
    color: black;
}

/* الفوتر */
footer {
    text-align: center;
    padding: 20px;
    background-color: #222;
    color: #888;
    font-size: 14px;
}