/* ===================================
   EMAIL SERVICE CAROUSEL STYLES
   components/email-service-carousel.css
   =================================== */

/* Carousel Container */
.carbonio-screenshots-section .carbonio-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    height: auto;
    min-height: 500px;
}

/* Carousel Wrapper */
.carbonio-screenshots-section .carbonio-carousel-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* Carousel Track */
.carbonio-screenshots-section .carbonio-carousel-track {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Carousel Items */
.carbonio-screenshots-section .carbonio-carousel-item {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    display: block;
    float: none;
    margin: 0;
    opacity: 1;
}

.carbonio-screenshots-section .carbonio-carousel-item.active,
.carbonio-screenshots-section .carbonio-carousel-item-next,
.carbonio-screenshots-section .carbonio-carousel-item-prev,
.carbonio-screenshots-section .carbonio-carousel-item-start,
.carbonio-screenshots-section .carbonio-carousel-item-end {
    position: relative;
    display: block;
    transform: none;
    transition: none;
}

.carbonio-screenshots-section .carbonio-carousel-inner {
    position: relative;
    width: 100%;
    overflow: visible;
}

/* Screenshot Items */
.carbonio-screenshot-item {
    display: block;
    width: 100%;
    text-align: center;
    padding: 2rem;
}

.screenshot-image {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.screenshot-title {
    margin-top: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Carousel Controls */
.carbonio-screenshots-section .carbonio-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carbonio-screenshots-section .carbonio-carousel-control.prev {
    left: -60px;
}

.carbonio-screenshots-section .carbonio-carousel-control.next {
    right: -60px;
}

/* При наведении на карусель показываем кнопки ближе */
.carbonio-screenshots-section .carbonio-carousel:hover .carbonio-carousel-control.prev {
    left: 20px;
}

.carbonio-screenshots-section .carbonio-carousel:hover .carbonio-carousel-control.next {
    right: 20px;
}

.carbonio-screenshots-section .carbonio-carousel-control:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carbonio-screenshots-section .carbonio-carousel-control svg {
    width: 24px;
    height: 24px;
    stroke: var(--dark-color);
    stroke-width: 2;
}

/* Progress Bar and Counter */
.carbonio-screenshots-section .carbonio-carousel-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carbonio-screenshots-section .carbonio-carousel-counter {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.carbonio-screenshots-section .carbonio-carousel-counter .current {
    color: var(--dark-color);
    font-weight: 600;
}

.carbonio-screenshots-section .carbonio-carousel-counter .separator {
    opacity: 0.5;
}

.carbonio-screenshots-section .carbonio-progress-bar {
    background: rgba(184, 221, 243, 0.2);
    height: 4px;
    width: 200px;
    border-radius: 2px;
    overflow: hidden;
}

.carbonio-screenshots-section .carbonio-progress-fill {
    background: linear-gradient(90deg, var(--accent-color), var(--dark-color));
    height: 100%;
    transition: width 0.3s ease;
}

/* Indicators */
.carbonio-screenshots-section .carbonio-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carbonio-screenshots-section .carbonio-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    background: rgba(44, 90, 160, 0.2);
}

.carbonio-screenshots-section .carbonio-carousel-indicator.active {
    background: var(--dark-color);
    width: 24px;
    border-radius: 4px;
}

.carbonio-screenshots-section .carbonio-carousel-indicator:hover:not(.active) {
    background: rgba(44, 90, 160, 0.4);
}

/* Responsive */
@media (max-width: 1200px) {
    .carbonio-screenshots-section .carbonio-carousel-control.prev {
        left: 10px;
    }

    .carbonio-screenshots-section .carbonio-carousel-control.next {
        right: 10px;
    }

    .carbonio-screenshots-section .carbonio-carousel:hover .carbonio-carousel-control.prev {
        left: 10px;
    }

    .carbonio-screenshots-section .carbonio-carousel:hover .carbonio-carousel-control.next {
        right: 10px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .screenshot-image {
        max-width: 100%;
    }

    .screenshot-title {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }

    .carbonio-screenshot-item {
        padding: 0 1rem;
    }

    .carbonio-screenshots-section .carbonio-carousel-control {
        width: 40px;
        height: 40px;
    }

    .carbonio-screenshots-section .carbonio-carousel-control.prev {
        left: 10px;
    }

    .carbonio-screenshots-section .carbonio-carousel-control.next {
        right: 10px;
    }

    .carbonio-screenshots-section .carbonio-carousel-control svg {
        width: 20px;
        height: 20px;
    }

    .carbonio-screenshots-section .carbonio-progress-bar {
        width: 150px;
    }
}
.carbonio-screenshots-section .carbonio-carousel-progress {
    display: none;
}