/* Custom CSS for WordPress Theme - واتش اب */

/* ===== Fix Scroll to Top Position ===== */
.scroll-top {
    left: 20px !important;
    right: auto !important;
    bottom: 100px !important;
    z-index: 9998 !important;
}

[dir="rtl"] .scroll-top {
    left: 20px !important;
    right: auto !important;
}

/* ===== Fix Overflow Issue ===== */
html {
    overflow-x: hidden !important;
    width: 100% !important;
}

body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    direction: rtl;
    text-align: right;
    min-height: 100vh;
}

/* Fix for WordPress Customizer Preview */
body.wp-customizer-unloading {
    overflow-x: hidden !important;
}

* {
    box-sizing: border-box;
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100%;
}

section {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100%;
}

.container {
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
}

/* ===== Cairo Font ===== */
body,
h1, h2, h3, h4, h5, h6,
p, a, span, div,
.btn, .nav-link,
.section-heading__title,
.section-heading__name,
.banner-content__title,
.choose-card__title,
.testimonial-item,
.movie-item {
    font-family: 'Cairo', sans-serif !important;
}

/* Button Icons */
.btn i {
    margin-left: 8px;
}

[dir="ltr"] .btn i {
    margin-left: 0;
    margin-right: 8px;
}

/* Basic hover effects only */
.choose-card:hover {
    transform: translateY(-5px);
}

.testimonial-item:hover {
    transform: translateY(-3px);
}

.btn:hover {
    transform: translateY(-2px);
}


/* ===== Movies & Series Section ===== */
.movies-section {
    position: relative;
    background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    overflow: hidden;
    width: 100%;
}

.movies-section .color-shape__thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

.movies-section .color-shape__thumb .fit-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movies-section .container,
.movies-section .section-heading,
.movies-slider-wrapper {
    position: relative;
    z-index: 1;
}

.movies-slider-wrapper {
    margin-top: 60px;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.movies-slider {
    width: 100%;
    overflow: hidden;
    max-width: 100%;
}

.movies-track {
    display: flex;
    gap: 30px;
    animation: scroll-rtl 30s linear infinite;
}

/* Animation for RTL (Arabic) */
[dir="rtl"] .movies-track {
    animation: scroll-rtl 30s linear infinite;
}

/* Animation for LTR (English) */
[dir="ltr"] .movies-track {
    animation: scroll-ltr 30s linear infinite;
}

@keyframes scroll-rtl {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

@keyframes scroll-ltr {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.movies-track:hover {
    animation-play-state: paused;
}

.movie-item {
    position: relative;
    min-width: 200px;
    height: 300px;
    border-radius: 15px;
    overflow: visible;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.movie-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.movie-number {
    position: absolute;
    bottom: -10px;
    left: -8px;
    font-size: 140px;
    font-weight: 900;
    color: #0a0e27;
    -webkit-text-stroke: 5px #e91e63;
    text-stroke: 5px #e91e63;
    z-index: 1;
    line-height: 0.75;
    font-family: 'Cairo', sans-serif;
    pointer-events: none;
    opacity: 1;
    text-shadow: 0 0 15px rgba(233, 30, 99, 0.3);
    user-select: none;
}

[dir="rtl"] .movie-number {
    left: auto;
    right: -8px;
}

.movie-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.movie-item-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    border-radius: 15px;
}

.movie-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(233, 30, 99, 0.5);
    z-index: 10;
}

.movie-item:hover .movie-item-inner img {
    transform: scale(1.1);
}

.movie-item:hover .movie-number {
    -webkit-text-stroke: 6px #e91e63;
    text-stroke: 6px #e91e63;
    text-shadow: 0 0 20px rgba(233, 30, 99, 0.6);
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.movie-item:hover .movie-overlay {
    opacity: 1;
}

.movie-overlay i {
    font-size: 60px;
    color: #e91e63;
    transform: scale(0);
    transition: all 0.3s ease;
}

.movie-item:hover .movie-overlay i {
    transform: scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    .movie-item {
        min-width: 150px;
        height: 225px;
    }
    
    .movies-track {
        animation-duration: 20s;
    }
}
