/* ============================================================
   Screenshot carousel (product showcase)
   A single-track sliding slideshow modeled on "Top
   Stories" carousel: one slide visible at a time, round nav
   buttons revealed on hover, and clickable pagination dots.
   Behavior is driven by /scripts/screenshot-carousel.js.
   ============================================================ */
.screenshot-carousel {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    border: 1px solid #d9e0e3;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    outline: none;
}

.screenshot-carousel-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.screenshot-carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.screenshot-carousel-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
}

.screenshot-carousel-stage {
    width: 100%;
    min-height: 300px;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f7f9fa 0%, #e9eff3 100%);
}

.screenshot-carousel-stage img {
    max-width: 92%;
    max-height: 86%;
    width: auto;
    height: auto;
    border: 1px solid #d9e0e3;
    border-radius: 4px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
    background: #fff;
}

.screenshot-carousel-caption {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 12pt;
    font-weight: 600;
    color: #4D5B6A;
    padding: 12px 54px;
    border-top: 1px solid #eef0f2;
    background: #fff;
}

/* Round previous / next navigation buttons */
.screenshot-carousel-nav {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    color: #2b3a4a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.2s ease;
}

.screenshot-carousel:hover .screenshot-carousel-nav,
.screenshot-carousel:focus-within .screenshot-carousel-nav {
    opacity: 1;
}

.screenshot-carousel-nav:hover {
    background: #fff;
}

.screenshot-carousel-nav:focus-visible {
    opacity: 1;
    outline: 2px solid #5b9bd5;
    outline-offset: 2px;
}

.screenshot-carousel-nav svg {
    width: 20px;
    height: 20px;
    display: block;
}

.screenshot-carousel-nav-prev { left: 14px; }
.screenshot-carousel-nav-next { right: 14px; }

/* Touch devices have no hover, so keep the controls visible */
@media (hover: none) {
    .screenshot-carousel-nav { opacity: 1; }
}

/* Pagination dots */
.screenshot-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 14px 0;
    background: #fff;
}

.screenshot-carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #c3ccd3;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.screenshot-carousel-dot:hover { background: #9aa7b1; }

.screenshot-carousel-dot.is-active {
    background: #4D5B6A;
    transform: scale(1.25);
}

@media (max-width: 600px) {
    .screenshot-carousel-stage { min-height: 200px; }
    .screenshot-carousel-caption { font-size: 11pt; padding: 10px 16px; }
    .screenshot-carousel-nav { width: 38px; height: 38px; }
    .screenshot-carousel-nav-prev { left: 8px; }
    .screenshot-carousel-nav-next { right: 8px; }
}
