/**
 * Swiper Carousel - Frontend Styles
 * Version: 1.0.0
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --swiper-carousel-theme-color: #007aff;
    --swiper-carousel-navigation-size: 44px;
    --swiper-carousel-navigation-color: #353337;
    --swiper-carousel-pagination-color: #353337;
    --swiper-carousel-pagination-bullet-size: 12px;
    --swiper-carousel-pagination-bullet-inactive-color: rgba(0, 0, 0, 0.22);
    --swiper-carousel-slide-bg: #f5f5f5;
    --swiper-carousel-slide-radius: 8px;
}

/* ============================================
   CAROUSEL WRAPPER
   ============================================ */
.swiper-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 316px;
    max-width: 1350px;
    margin: auto;
}

@media (min-width: 768px) {
    .swiper-carousel-wrapper {
        height: 348px;
    }
}

@media (min-width: 1024px) {
    .swiper-carousel-wrapper {
        height: 380px;
    }
}

/* ============================================
   SWIPER MAIN CONTAINER
   ============================================ */
.swiper-carousel-main {
    width: calc(100% + 66px);
    margin-left: -33px;
    height: 100%;
    padding: 10px 45px 40px 45px;
    overflow: visible;
    box-sizing: border-box;
}

.swiper-carousel-main .swiper-wrapper {
    height: 100% !important;
}

.swiper-carousel-main .swiper-pagination {
    bottom: 0px;
    top: auto;
}

/* ============================================
   SLIDES
   ============================================ */
.swiper-carousel-main .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: var(--swiper-carousel-slide-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--swiper-carousel-slide-radius);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.swiper-carousel-main .swiper-slide:hover {
    transform: scale(1.02);
    /* box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); */
}

.swiper-carousel-main .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--swiper-carousel-slide-radius);
}

/* ============================================
   NAVIGATION BUTTONS
   ============================================ */
.swiper-carousel-main .swiper-button-next,
.swiper-carousel-main .swiper-button-prev {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    top: calc(50% - 15px);
    margin-top: -30px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.swiper-carousel-main .swiper-button-prev {
    left: 55px;
}

.swiper-carousel-main .swiper-button-next {
    right: 55px;
}

.swiper-carousel-main .swiper-button-next:hover,
.swiper-carousel-main .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.swiper-carousel-main .swiper-button-next::after,
.swiper-carousel-main .swiper-button-prev::after {
    display: none;
}

.swiper-carousel-main .swiper-button-next svg,
.swiper-carousel-main .swiper-button-prev svg {
    width: 28px;
    height: 28px;
    color: var(--swiper-carousel-navigation-color);
    fill: none;
}

/* ============================================
   PAGINATION
   ============================================ */
.swiper-carousel-main .swiper-pagination-bullet {
    width: var(--swiper-carousel-pagination-bullet-size);
    height: var(--swiper-carousel-pagination-bullet-size);
    background: var(--swiper-carousel-pagination-bullet-inactive-color);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-carousel-main .swiper-pagination-bullet:hover {
    background: rgba(0, 0, 0, 0.4);
}

.swiper-carousel-main .swiper-pagination-bullet-active {
    background: var(--swiper-carousel-pagination-color);
    transform: scale(1.2);
}

.swiper-carousel-main .swiper-pagination-bullet-active:hover {
    background: var(--swiper-carousel-pagination-color);
}

/* ============================================
   FULLSCREEN OVERLAY
   ============================================ */
.swiper-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swiper-fullscreen-overlay.active {
    display: flex;
    opacity: 1;
}

/* ============================================
   FULLSCREEN CONTENT
   ============================================ */
.swiper-fullscreen-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 1;
}

.swiper-fullscreen-overlay.active .swiper-fullscreen-content {
    transform: scale(1);
}

.swiper-fullscreen-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ============================================
   FULLSCREEN CLOSE BUTTON
   ============================================ */
.swiper-close-fullscreen {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.swiper-close-fullscreen:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.swiper-close-fullscreen svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

/* ============================================
   FULLSCREEN NAVIGATION
   ============================================ */
.swiper-fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.swiper-fullscreen-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.swiper-fullscreen-nav svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.swiper-fullscreen-prev {
    left: 30px;
}

.swiper-fullscreen-next {
    right: 30px;
}

/* ============================================
   SLIDE COUNTER
   ============================================ */
.swiper-slide-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 20px;
    z-index: 10;
}

/* ============================================
   NOTICE MESSAGE
   ============================================ */
.swiper-carousel-notice {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
    color: #666;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 767px) {
    .swiper-carousel-main .swiper-button-next,
    .swiper-carousel-main .swiper-button-prev {
        width: 44px;
        height: 44px;
        margin-top: -22px;
    }
    
    .swiper-carousel-main .swiper-button-prev {
        left: 48px;
    }
    
    .swiper-carousel-main .swiper-button-next {
        right: 48px;
    }
    
    .swiper-carousel-main .swiper-button-next svg,
    .swiper-carousel-main .swiper-button-prev svg {
        width: 20px;
        height: 20px;
    }
    
    .swiper-fullscreen-nav {
        width: 44px;
        height: 44px;
    }
    
    .swiper-fullscreen-prev {
        left: 15px;
    }
    
    .swiper-fullscreen-next {
        right: 15px;
    }
    
    .swiper-close-fullscreen {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}
