/**
 * Swiper Slider Widget Styles
 * Complete styling for the Featured Work Slider
 */

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* ============================================
   SECTION WRAPPER
   ============================================ */
.featured-work-section {
    width: 100%;
    background-color: #FFFFFF;
    padding: 50px 0 40px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    min-height: auto;
    max-height: 680px;
    overflow: visible;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.featured-work-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.featured-work-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.featured-work-title {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #0A0A0A;
    margin: 0;
    white-space: nowrap;
}

.decorative-line {
    flex: 1;
    height: 1px;
    background-color: #E9E9E9;
    max-width: 200px;
}

.decorative-line-left {
    margin-right: auto;
}

.decorative-line-right {
    margin-left: auto;
}

/* ============================================
   SLIDER CONTAINER
   ============================================ */
.featured-work-slider-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 480px;
}

.featured-work-slider-container .featured-work-swiper {
    flex: 1;
    max-width: 100%;
}

/* ============================================
   SWIPER CONTAINER
   ============================================ */
.featured-work-swiper {
    width: 100%;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-work-swiper .swiper-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-work-swiper .swiper-slide {
    width: 550px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 500ms ease-out, opacity 500ms ease-out;
    cursor: pointer;
    will-change: transform, opacity;
    transform-origin: center center;
}

.featured-work-swiper .swiper-slide img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    transition: transform 500ms ease-out, opacity 500ms ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Center slide (active) - full size */
.featured-work-swiper .swiper-slide-active img {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.swiper-slide-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   NAVIGATION ARROWS
   ============================================ */
.featured-work-nav-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0A0A0A;
    transition: opacity 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.featured-work-nav-button.featured-work-prev {
    left: -60px;
}

.featured-work-nav-button.featured-work-next {
    right: -60px;
}

.featured-work-nav-button:hover {
    opacity: 0.7;
}

.featured-work-nav-button:active {
    opacity: 0.5;
}

.featured-work-nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.featured-work-nav-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ============================================
   PAGINATION DOTS
   ============================================ */
.featured-work-pagination {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    justify-content: center;
}

.featured-work-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #D9D9D9;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    padding: 0;
    margin: 0;
    display: block;
}

.featured-work-pagination .swiper-pagination-bullet:hover {
    background-color: #A9A9A9;
    transform: scale(1.2);
}

.featured-work-pagination .swiper-pagination-bullet-active {
    background-color: #0A0A0A;
    transform: scale(1.3);
}

/* ============================================
   LIGHTBOX MODAL
   ============================================ */
.featured-work-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-work-lightbox.active {
    display: flex;
}

/* Lightbox Controls Bar */
.lightbox-controls {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 10000;
}

.lightbox-control {
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.lightbox-control:hover {
    opacity: 0.8;
}

.lightbox-control svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}

.lightbox-close svg {
    width: 32px;
    height: 32px;
}

.lightbox-controls-left {
    display: flex;
    gap: 16px;
}

.lightbox-controls-right {
    display: flex;
    gap: 16px;
}

/* Lightbox Main Image Area */
.lightbox-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex: 1;
    width: 100%;
    padding: 80px 24px 120px;
    position: relative;
}

.lightbox-image-container {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.lightbox-image.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.lightbox-nav {
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.lightbox-nav:hover {
    opacity: 0.8;
}

.lightbox-nav svg {
    width: 48px;
    height: 48px;
    fill: currentColor;
}

/* Lightbox Thumbnails */
.lightbox-thumbnails {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    padding: 0 24px;
    z-index: 10000;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.lightbox-thumbnails::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, transparent 10%, transparent 90%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

.lightbox-thumbnails-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 12px 0;
    position: relative;
    z-index: 2;
}

.lightbox-thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    padding: 0;
    transition: border-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.lightbox-thumbnail:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.lightbox-thumbnail.active {
    border-color: #FFFFFF;
    border-width: 3px;
}

.lightbox-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .featured-work-section {
        padding: 50px 0 40px;
        max-height: 600px;
    }

    .featured-work-header-container {
        padding: 0 20px;
    }

    .featured-work-header {
        margin-bottom: 24px;
    }

    .featured-work-title {
        font-size: 18px;
        line-height: 26px;
    }

    .featured-work-slider-container {
        padding: 0 20px;
    }

    .featured-work-slider-container .featured-work-swiper {
        margin: 0 40px;
    }

    .featured-work-swiper .swiper-slide {
        width: 450px;
    }

    .featured-work-swiper .swiper-slide img {
        height: 360px;
    }

    .featured-work-nav-button.featured-work-prev {
        left: -50px;
    }

    .featured-work-nav-button.featured-work-next {
        right: -50px;
    }

    .lightbox-thumbnail {
        width: 64px;
        height: 64px;
    }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
    .featured-work-section {
        padding: 40px 0 30px;
        max-height: 500px;
    }

    .featured-work-header-container {
        padding: 0 16px;
    }

    .featured-work-header {
        gap: 16px;
        margin-bottom: 32px;
    }

    .featured-work-title {
        font-size: 16px;
        line-height: 24px;
    }

    .decorative-line {
        max-width: 100px;
    }

    .featured-work-slider-container {
        padding: 0 16px;
        gap: 8px;
    }

    .featured-work-nav-button {
        padding: 8px;
    }

    .featured-work-nav-button svg {
        width: 20px;
        height: 20px;
    }

    .featured-work-slider-container .featured-work-swiper {
        margin: 0 20px;
    }

    .featured-work-swiper .swiper-slide {
        width: 100%;
        max-width: 320px;
    }

    .featured-work-swiper .swiper-slide img {
        height: 260px;
    }

    .featured-work-nav-button.featured-work-prev {
        left: -40px;
    }

    .featured-work-nav-button.featured-work-next {
        right: -40px;
    }

    .featured-work-pagination {
        bottom: -32px;
    }

    .lightbox-controls {
        top: 16px;
        padding: 0 16px;
    }

    .lightbox-main {
        padding: 60px 16px 100px;
        gap: 12px;
    }

    .lightbox-nav svg {
        width: 36px;
        height: 36px;
    }

    .lightbox-thumbnails {
        bottom: 16px;
        padding: 0 16px;
    }

    .lightbox-thumbnail {
        width: 64px;
        height: 64px;
    }

    .lightbox-thumbnails-container {
        gap: 8px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.featured-work-nav-button:focus,
.lightbox-control:focus,
.lightbox-nav:focus,
.lightbox-thumbnail:focus {
    outline: 2px solid #0A0A0A;
    outline-offset: 2px;
}

.featured-work-lightbox .lightbox-control:focus,
.featured-work-lightbox .lightbox-nav:focus,
.featured-work-lightbox .lightbox-thumbnail:focus {
    outline-color: #FFFFFF;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.featured-work-lightbox.active {
    animation: fadeIn 0.3s ease;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.swiper-slide[aria-hidden="true"] {
    pointer-events: none;
}

/* Hide lightbox when not active */
.featured-work-lightbox:not(.active) {
    display: none !important;
}

/* Elementor Editor Placeholder */
.elementor-widget-swiper_slider .elementor-alert {
    margin: 20px;
    padding: 15px 20px;
    border-left: 4px solid #2271b1;
    background: #f0f6fc;
    border-radius: 4px;
}

.elementor-widget-swiper_slider .elementor-alert-title {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1d2327;
}

.elementor-widget-swiper_slider .elementor-alert-description {
    display: block;
    color: #50575e;
    font-size: 13px;
}

