/**
 * Simple Gallery Carousel CSS
 * Clean design following theme colors: #002238 (dark blue) and #fda935 (orange)
 * Similar to clients component styling
 */

/* ==================================
   MAIN CONTAINER
================================== */

.simple-gallery-container {
    padding: 40px 0;
    background: #002238;
    direction: rtl;
}

.gallery-section-header {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-section-title {
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    position: relative;
    display: inline-block;
}

.gallery-section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #ffffff;
    border-radius: 2px;
}

.gallery-slider-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

.simple-gallery-slider {
    direction: ltr;
    width: 100%;
    height: 300px;
}

.simple-gallery-slider .swiper-wrapper {
    align-items: center;
    height: 300px;
}

.simple-gallery-slider .swiper-slide {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 350px;
    flex-shrink: 0;
}

/* ==================================
   GALLERY SLIDE STYLING
================================== */

.gallery-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 100%;
    width: 100%;
}

.gallery-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
    width: 310px;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 20px;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.gallery-image-link img {
    max-height: 220px;
    max-width: 270px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    border-radius: 6px;
}

/* ==================================
   HOVER EFFECTS
================================== */

.gallery-image-link:hover {
    transform: scale(1.05);
}

.gallery-image-link:hover img {
    transform: scale(1.1);
}

/* ==================================
   EMPTY STATE
================================== */

.simple-gallery-container .no-images {
    text-align: center;
    padding: 80px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 2px dashed rgba(253, 169, 53, 0.3);
    margin: 40px auto;
    max-width: 600px;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    direction: rtl;
}

/* ==================================
   RESPONSIVE DESIGN
================================== */

/* Tablet */
@media (max-width: 1024px) {
    .simple-gallery-container {
        padding: 30px 0;
    }
    
    .gallery-slider-wrapper {
        padding: 0 15px;
    }
    
    .simple-gallery-slider {
        height: 280px;
    }
    
    .simple-gallery-slider .swiper-wrapper {
        height: 280px;
    }
    
    .simple-gallery-slider .swiper-slide {
        height: 280px;
        width: 320px;
    }
    
    .gallery-image-link {
        height: 240px;
        width: 280px;
        padding: 15px;
    }
    
    .gallery-image-link img {
        max-height: 200px;
        max-width: 240px;
    }
    
    .gallery-section-title {
        font-size: 2.2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .simple-gallery-container {
        padding: 25px 0;
    }
    
    .gallery-slider-wrapper {
        padding: 0 10px;
    }
    
    .simple-gallery-slider {
        height: 250px;
    }
    
    .simple-gallery-slider .swiper-wrapper {
        height: 250px;
    }
    
    .simple-gallery-slider .swiper-slide {
        height: 250px;
        width: 280px;
    }
    
    .gallery-image-link {
        height: 210px;
        width: 240px;
        padding: 12px;
    }
    
    .gallery-image-link img {
        max-height: 170px;
        max-width: 200px;
    }
    
    .gallery-section-title {
        font-size: 1.8rem;
    }
    
    .gallery-image-title {
        font-size: 1.1rem;
    }
    
    .gallery-image-excerpt {
        font-size: 0.8rem;
    }
    
    .gallery-image-overlay {
        padding: 12px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .simple-gallery-container {
        padding: 20px 0;
    }
    
    .simple-gallery-slider {
        height: 220px;
    }
    
    .simple-gallery-slider .swiper-wrapper {
        height: 220px;
    }
    
    .simple-gallery-slider .swiper-slide {
        height: 220px;
        width: 240px;
    }
    
    .gallery-image-link {
        height: 180px;
        width: 200px;
        padding: 10px;
    }
    
    .gallery-image-container img {
        max-height: 140px;
        max-width: 160px;
    }
    
    .gallery-section-title {
        font-size: 1.5rem;
    }
    
    .gallery-image-title {
        font-size: 1rem;
    }
    
    .gallery-image-excerpt {
        font-size: 0.75rem;
    }
    
    .gallery-image-overlay {
        padding: 10px;
    }
    
    .no-images {
        padding: 60px 20px !important;
        font-size: 1.1rem !important;
    }
}

/* ==================================
   RTL SUPPORT
================================== */

[dir="rtl"] .gallery-image-title,
html[dir="rtl"] .gallery-image-title,
body.rtl .gallery-image-title {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .gallery-image-excerpt,
html[dir="rtl"] .gallery-image-excerpt,
body.rtl .gallery-image-excerpt {
    text-align: right;
    direction: rtl;
}

/* ==================================
   ACCESSIBILITY
================================== */

@media (prefers-reduced-motion: reduce) {
    .gallery-image-link,
    .gallery-image-container img,
    .gallery-image-overlay {
        transition: none !important;
    }
}

/* Focus styles for keyboard navigation */
.gallery-image-link:focus {
    outline: none;
}

.gallery-image-link:focus-visible {
    outline: 2px solid #fda935;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gallery-image-link {
        border: 2px solid #fda935;
    }
    
    .gallery-image-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
}