/* WatchOne — round smartwatch showcase. Device chrome is pure CSS. */

.watchone-showcase {
    --watchone-size: 320px;
    --watchone-bezel: 14px;
    --watchone-bezel-color: #1b1e24;
    --watchone-strap: #23262d;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin: 24px auto;
    max-width: 100%;
}

.watchone-showcase__device {
    position: relative;
    width: var(--watchone-size);
    height: var(--watchone-size);
    flex: 0 0 auto;
}

.watchone-showcase__device::before,
.watchone-showcase__device::after {
    content: "";
    position: absolute;
    left: 50%;
    width: calc(var(--watchone-size) * 0.58);
    height: calc(var(--watchone-size) * 0.16);
    background: var(--watchone-strap);
    border-radius: 12px;
    transform: translateX(-50%);
    z-index: 0;
}

.watchone-showcase__device::before { top: calc(var(--watchone-size) * -0.06); }
.watchone-showcase__device::after { bottom: calc(var(--watchone-size) * -0.06); }

.watchone-showcase__screen {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 50%;
    background: var(--watchone-bezel-color);
    padding: var(--watchone-bezel);
    touch-action: pan-y;
    cursor: grab;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35),
        inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.watchone-showcase__track {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #000;
}

.watchone-showcase__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

/*
 * Swipe follows the finger exactly as PhoneOne's track does: frontend.js
 * publishes the live drag distance as --watchone-drag, so the round screen
 * tracks the gesture and then eases back to 0 when it is released.
 */
.watchone-showcase__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate3d(var(--watchone-drag, 0px), 0, 0) scale(1);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Under the finger there is no easing to do - the screen must track exactly. */
.watchone-showcase.is-dragging .watchone-showcase__slide.is-active {
    transition: opacity 0.35s ease;
}

.watchone-showcase.is-dragging {
    cursor: grabbing;
    -webkit-user-select: none;
    user-select: none;
}

.watchone-showcase__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.watchone-showcase__crown {
    position: absolute;
    right: calc(var(--watchone-size) * -0.025);
    top: 30%;
    width: calc(var(--watchone-size) * 0.05);
    height: calc(var(--watchone-size) * 0.12);
    background: linear-gradient(90deg, #3a3f47, #14171c);
    border-radius: 4px;
    z-index: 0;
}

.watchone-showcase__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.watchone-showcase__counter {
    font-size: 13px;
    letter-spacing: 0.06em;
    color: #6b7684;
    font-variant-numeric: tabular-nums;
}

.watchone-showcase__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.watchone-showcase__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #fff;
    color: #1b1e24;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.watchone-showcase__button svg { width: 18px; height: 18px; }
.watchone-showcase__button:hover { background: #f1f3f5; }
.watchone-showcase__button:active { transform: scale(0.94); }

.watchone-showcase__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.watchone-showcase__dot {
    width: var(--watchone-dot-size, 10px);
    height: var(--watchone-dot-size, 10px);
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: var(--watchone-dot-color, #8e9ba8);
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.watchone-showcase__dot.is-active {
    background: var(--watchone-dot-active, #0f7c74);
    opacity: 1;
    transform: scale(1.25);
}

.watchone-showcase__hint {
    margin: 0;
    font-size: 12px;
    color: #8e9ba8;
}

.watchone-showcase.is-single-slide .watchone-showcase__meta { display: none; }

@media (max-width: 480px) {
    .watchone-showcase { --watchone-size: min(72vw, 300px); }
}

@media (prefers-reduced-motion: reduce) {
    .watchone-showcase__slide,
    .watchone-showcase__slide.is-active { transition: none; }

    .watchone-showcase__slide.is-active { transform: translate3d(var(--watchone-drag, 0px), 0, 0); }
}
