/* ================================================== */
/*              السلايدر العصري والخرافي                */
/* ================================================== */

/* المتغيرات العامة */
:root {
    --luxury-primary: #d4af37;
    --luxury-secondary: #8b5a2b;
    --luxury-dark: #2c1810;
    --luxury-light: #f8f6f3;
    --luxury-white: #ffffff;
    --luxury-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --luxury-gradient: linear-gradient(135deg, rgba(212, 175, 55, 0.9) 0%, rgba(139, 90, 43, 0.7) 100%);
    --luxury-transition: all 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --luxury-border-radius: 20px;
    --luxury-blur: blur(15px);
}

/* ================================================== */
/*                    السلايدر الرئيسي                */
/* ================================================== */

/* الفيديو الصامت للسلايد الأول */
.intro-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none; /* السماح بالتفاعل مع العناصر خلفه */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.intro-video-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.intro-video-iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transition: transform 0.3s ease;
}

.modern-luxury-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
    background: var(--luxury-dark);
    display: flex;
    flex-direction: column;
}

.luxury-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    z-index: 1;
    pointer-events: auto;
}

.luxury-slider-wrapper:active {
    cursor: grabbing;
}

.luxury-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    visibility: visible;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

.luxury-slide.active {
    transform: translateX(0);
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.luxury-slide:first-child {
    transform: translateX(0);
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ================================================== */
/*                      الخلفية                       */
/* ================================================== */

.slide-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ================================================== */
/*                  الجسيمات العائمة                  */
/* ================================================== */

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, var(--luxury-primary), rgba(212, 175, 55, 0.8));
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    opacity: 0.6;
    animation: particle-float 6s ease-in-out 1;
}



.particle::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px; 
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.3));
    border-radius: 50%;
    animation: particle-glow 4s ease-in-out 1;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

@keyframes particle-glow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.particle-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.particle-2 {
    top: 55%;
    right: 12%;
    animation-delay: 1s;
}

.particle-3 {
    bottom: 25%;
    left: 18%;
    animation-delay: 2s;
}

.particle-4 {
    top: 35%;
    right: 25%;
    animation-delay: 3s;
}

.particle-5 {
    top: 80%;
    left: 40%;
    animation-delay: 4s;
}

.particle-6 {
    top: 10%;
    right: 50%;
    animation-delay: 5s;
}

/* ================================================== */
/*               محتوى السلايد (الشاشات الكبيرة)        */
/* ================================================== */

.slide-content-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    padding: 40px 0;
}

/* الفيديو كسلايد منفصل */
.luxury-slide:has(.intro-video-container) {
    background: #000;
    transition: all 0.5s ease;
}


.slide-text-content {
    position: relative;
    z-index: 12;
    padding: 0px 6rem;
    margin-top: -32px;
    margin-right: -89px;
}  

.luxury-content-wrapper {
    max-width: 600px;
    color: var(--luxury-white);
    /* animation: content-fade-in 1.5s ease-out; */
    /* background: rgba(0, 0, 0, 0.7); */
    padding: 1.5rem;
    border-radius: 20px;
    /* backdrop-filter: blur(10px); */
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); */
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    display: flex
;
    flex-direction: column;
    max-height: 70vh;
    overflow-y: auto;
}

@keyframes content-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* عنوان السلايد */
.luxury-slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: black;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: title-shine 3s ease-in-out 1;
    order: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes title-shine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* وصف السلايد */
.luxury-slide-description {
    font-size: 25px;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #212529;
    max-width: 500px;
    /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    order: 2;
}

/* علامات المنتج */
.product-tags-luxury {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
    order: 3;
}

.luxury-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--luxury-white);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    backdrop-filter: var(--luxury-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.luxury-tag:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* أزرار الإجراءات */
.slide-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 1.5rem;
    order: 1;
}

.btn-luxury-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #007bff;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
    cursor: pointer;
    position: relative;
    z-index: 11;
    pointer-events: auto;
}

.btn-luxury-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    color: white;
}

.btn-luxury-video {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 11;
    pointer-events: auto;
}

.btn-luxury-video:hover {
    background: #545b62;
    border-color: #545b62;
    color: white;
}

/* ================================================== */
/*                   عرض المنتج - تم إزالته            */
/* ================================================== */

/* ================================================== */
/*               عناصر التحكم العصرية                  */
/* ================================================== */

.luxury-slider-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 10px 20px 20px 20px;
    background: linear-gradient(to top, rgb(44 24 16 / 29%), transparent);
}

/* الأسهم - مخفية */
.luxury-control-btn {
    display: none !important;
}

.luxury-prev {
    display: none !important;
}

.luxury-next {
    display: none !important;
}

/* النقاط التفاعلية */
.luxury-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    pointer-events: auto;
}

.luxury-pagination-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot-indicator {
    width: 30px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    transition: all 0.3s ease;
    border: none;
}

.luxury-pagination-dot.active .dot-indicator {
    background: #97755b;
    transform: scale(1.1);
    box-shadow: 0 2px 8px #97755b57;
}

.luxury-pagination-dot:hover .dot-indicator {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* شريط التقدم */
.slide-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 15;
}

.progress-fill {
    height: 100%;
    background: #8b5a2b;
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0;
    box-shadow: 0 0 8px #8b5a2b6e;
}

/* مؤشر التمرير */
.scroll-indicator {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    animation: bounce-scroll 2s 1;
    cursor: pointer;
}

.scroll-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.scroll-arrow {
    font-size: 1.2rem;
}

@keyframes bounce-scroll {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 0.7;
    }
    40% {
        transform: translateX(-50%) translateY(-15px) scale(1.1);
        opacity: 1;
    }
    60% {
        transform: translateX(-50%) translateY(-8px) scale(1.05);
        opacity: 0.9;
    }
}

/* ================================================== */
/*                تصميم الهواتف المحمولة - تم إزالته    */
/* ================================================== */

/* ================================================== */
/*            نافذة الفيديو المنبثقة العصرية           */
/* ================================================== */

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: all 0.3s ease;
    border: none;
}

.modal-title {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    z-index: 15;
}

.video-modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #dc3545;
    color: white;
    border: 2px solid #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: all 0.3s ease;
    font-weight: bold;
}

.close-modal:hover {
    background: #c82333;
    border-color: #c82333;
    color: white;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ================================================== */
/*              التجاوب مع الشاشات المختلفة             */
/* ================================================== */

/* الشاشات المتوسطة */
@media (max-width: 1200px) {
    .luxury-slide-title {
        font-size: 3rem;
    }
    
    
    .slide-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* الشاشات الكبيرة (1200px وما فوق) */
@media (min-width: 1200px) {
    .modern-luxury-slider {
        height: 70vh;
        min-height: 500px;
    }
    
}

/* الشاشات الكبيرة (992px وما فوق) */
@media (min-width: 992px) {
    .modern-luxury-slider {
        height: 63vh;
        min-height: 450px;
    }
    
}

@media (max-width: 992px) {
    .modern-luxury-slider {
        min-height: 700px;
    }
    
    .luxury-slide-title {
        font-size: 2.5rem;
    }
    
    .luxury-slide-description {
        font-size: 1.1rem;
    }
    
    
    .luxury-control-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .luxury-pagination {
        gap: 15px;
    }
    
    .dot-number {
        width: 40px;
        height: 40px;
    }
    
    .slide-content-container {
        padding: 60px 0;
    }
}

/* التابلت والهواتف الكبيرة */
@media (max-width: 768px) {
    .modern-luxury-slider {
        height: 85vh !important;
        min-height: 500px;
    }
    
    .slide-content-container {
        display: flex !important;
        align-items: flex-start;
        padding: 20px 0;
    }
    
    .slide-text-content {
        padding: 0px 2rem;
        margin-top: 0;
        margin-right: 0;
    }
    
    .luxury-content-wrapper {
        max-height: 60vh;
        padding: 1rem;
    }
    
    
    .luxury-slider-controls {
        padding: 8px;
    }
    
    .luxury-control-btn {
        width: 35px;
        height: 35px;
        top: 20%;
    }
    
    .luxury-prev {
        right: 8px;
    }
    
    .luxury-next {
        left: 8px;
    }
    
    .luxury-pagination {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .dot-number {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }
    
    .dot-label {
        font-size: 0.5rem;
        max-width: 40px;
    }
    
    .floating-particles {
        display: none;
    }
    
    /* تحسين الحركات للهواتف */
    .luxury-slide {
        transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
        transform-style: preserve-3d;
    }
    
    
    .scroll-indicator {
        bottom: 8px;
    }
    
    .modal-content {
        width: 95%;
        margin: 0 20px;
    }
}

/* الهواتف الصغيرة */
@media (max-width: 576px) {
    .modern-luxury-slider {
        height: 85vh !important;
        min-height: 400px;
    }
    
    .slide-content-container {
        padding: 15px 0;
    }
    
    .slide-text-content {
        padding: 0px 1rem;
    }
    
    .luxury-content-wrapper {
        max-height: 55vh;
        padding: 0.8rem;
    }
    
    .luxury-slide-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .luxury-slide-description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .slide-actions {
        gap: 10px;
        margin-bottom: 1rem;
    }
    
    .btn-luxury-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-luxury-video {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    
    .luxury-pagination {
        gap: 4px;
        bottom: 5px;
    }
    
    .dot-number {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }
    
    .dot-label {
        display: none;
    }
    
    .scroll-indicator {
        bottom: 6px;
        font-size: 0.6rem;
    }
    
    .close-modal {
        top: 8px;
        right: 8px;
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
}

/* شاشات صغيرة جداً */
@media (max-width: 480px) {
    .modern-luxury-slider {
        height: 100vh !important;
        min-height: 200px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .intro-video-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        background: #000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
        transition: opacity 0.5s ease;
    }
    
    /* الفيديو كسلايد منفصل في الهواتف */
    .luxury-slide:has(.intro-video-container) {
        background: #000;
        transition: all 0.5s ease;
    }
    
    
    .intro-video-iframe {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border: none;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        transition: transform 0.3s ease;
    }
    
    .luxury-slide {
        height: 100%;
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: translateX(100%);
        transition: transform 2s ease;
        z-index: 1;
    }
    
    .luxury-slide.active {
        transform: translateX(0);
        z-index: 2;
    }
    
    .luxury-slide:first-child {
        transform: translateX(0);
        z-index: 2;
    }
    
    
    .floating-particles {
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .slide-content-container {
        display: flex !important
;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        height: 55vh;
        position: absolute;
        top: 45vh;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255);
    }
    
    .slide-text-content {
        padding: 0px 1rem;
        margin-top: 0;
        margin-right: 0;
        order: 1;
        width: 100%;
        max-width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    .luxury-content-wrapper {
        max-height: none;
        padding: 0.5rem;
        width: 100%;
        background: transparent;
        border-radius: 0;
        margin-top: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    
    .luxury-slide-title {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .luxury-slide-description {
        font-size: 0.7rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .slide-actions {
        gap: 6px;
        margin-bottom: 0.5rem;
        display: flow-root;
        flex-wrap: wrap;
    }
    
    .btn-luxury-primary {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    .btn-luxury-video {
        padding: 4px 8px;
        font-size: 0.6rem;
    }
    
    
    .luxury-pagination {
        gap: 3px;
        bottom: 3px;
        z-index: 15;
        border: 1px solid #00000061;
        pointer-events: auto;
        border-radius: 6px;
    }
    
    .luxury-pagination-dot {
        pointer-events: auto;
        cursor: pointer;
        z-index: 30;
        position: relative;
    }
    
    .luxury-pagination-dot.active .dot-indicator {
        background: #97755b;
        transform: scale(1.1);
        /* box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4); */
    }
    
    .dot-indicator {
        width: 25px;
        height: 4px;
    }
}

/* شاشات كبيرة جداً */
@media (min-width: 1400px) {
    .modern-luxury-slider {
        height: 70vh;
        min-height: 500px;
    }
    
    .luxury-slide-title {
        font-size: 4rem;
    }
    
    
    .luxury-slide-description {
        font-size: 1.3rem;
    }
}

/* إضافات لضمان ظهور الفيديو بشكل صحيح */
.modern-luxury-slider video,
.luxury-slide video,
.intro-video-container video,
.intro-video-iframe {
    display: block !important;  
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}



/* تحسين الأداء */
.luxury-slide {
    will-change: transform;
}

/* تحسين قابلية الوصول */
.luxury-control-btn:focus,
.btn-luxury-primary:focus,
.btn-luxury-video:focus {
    outline: 2px solid var(--luxury-primary);
    outline-offset: 2px;
}

/* تحسين التحميل */
.luxury-slide {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
