/* assets/css/display.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: #000;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #0a0a0a;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(1);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

/* تأثيرات الانتقال المختلفة */
.slider-effect-fade .slide {
    transition: opacity 0.8s ease-in-out;
}

.slider-effect-slide .slide {
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
    transform: translateX(100%);
}

.slider-effect-slide .slide.active {
    transform: translateX(0);
}

.slider-effect-slide .slide.exit {
    transform: translateX(-100%);
}

.slider-effect-zoom .slide {
    transition: transform 1.2s ease-in-out, opacity 0.8s ease-in-out;
    transform: scale(1.1);
}

.slider-effect-zoom .slide.active {
    transform: scale(1);
}

.slider-effect-blur .slide {
    transition: filter 0.8s ease-in-out, opacity 0.8s ease-in-out;
    filter: blur(10px);
}

.slider-effect-blur .slide.active {
    filter: blur(0);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* أزرار التحكم */
.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.9);
}

.pause-btn {
    background: rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.pause-btn:hover {
    background: rgba(76, 175, 80, 0.5);
}

.pause-btn.paused {
    background: rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.3);
}

.pause-btn.paused:hover {
    background: rgba(255, 193, 7, 0.5);
}

/* المؤشرات (النقاط) */
.slider-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.dot.active {
    background: #4CAF50;
    width: 30px;
    border-radius: 5px;
}

/* عداد الصور */
.slide-counter {
    position: absolute;
    top: 30px;
    right: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.slide-counter span {
    color: #fff;
}

#currentSlide {
    font-size: 20px;
    color: #4CAF50;
}

/* إخفاء المؤشر عند عرض السلايدر (للتلفزيون) */
@media (max-width: 768px) {
    .slider-controls {
        bottom: 20px;
        padding: 8px 12px;
        gap: 8px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .slide-counter {
        top: 15px;
        right: 15px;
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* وضع ملء الشاشة للتلفزيون */
@media (min-width: 1920px) {
    .slide img {
        object-fit: contain;
    }
}

/* اختفاء أزرار التحكم بعد 5 ثوانٍ من عدم الحركة */
.slider-controls.hide {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slider-controls.show {
    opacity: 1;
    transition: opacity 0.3s ease;
}