/* css/slideshow.css - أنماط السلايد شو */
.slideshow-section {
    position: relative;
    margin: 2rem 0;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(153, 41, 189, 0.7) 0%, rgba(97, 23, 124, 0.7) 100%);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    color: var(--white);
    z-index: 3;
    transform: translateY(20px);
    transition: transform 0.6s ease;
}

.slide.active .slide-content {
    transform: translateY(0);
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-actions {
    display: flex;
    gap: 1rem;
}

.slideshow-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 4;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.control-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.slide-indicators {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--white);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--white);
}

.no-slides {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: var(--light-gray);
    border-radius: 20px;
}

.no-slides-content {
    text-align: center;
    color: var(--text-light);
}

.no-slides-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--medium-gray);
}

.no-slides-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* تأثيرات للشاشات المتوسطة */
@media (max-width: 1024px) {
    .slideshow-container {
        height: 500px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-description {
        font-size: 1.1rem;
    }
}

/* تأثيرات للشاشات الصغيرة */
@media (max-width: 768px) {
    .slideshow-container {
        height: 400px;
        border-radius: 15px;
    }
    
    .slide-content {
        padding: 2rem;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .slideshow-controls {
        bottom: 1rem;
        right: 1rem;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* تأثيرات للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .slideshow-container {
        height: 350px;
    }
    
    .slide-content {
        padding: 1.5rem;
        text-align: center;
    }
    
    .slide-title {
        font-size: 1.3rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
    }
    
    .slide-actions {
        justify-content: center;
    }
}


/* حركة التلاشي */
.slide.fade {
    animation: fadeIn 1s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* حركة الانقلاب */
.slide.flip {
    animation: flipIn 0.8s;
}
@keyframes flipIn {
    from { transform: rotateY(90deg); opacity: 0; }
    to { transform: rotateY(0deg); opacity: 1; }
}

/* حركة التكبير */
.slide.zoom {
    animation: zoomIn 0.8s;
}
@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* حركة الانزلاق */
.slide.slide {
    animation: slideIn 0.8s;
}
@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}