/* =============================================================================
 * UX360 Product Showcase — style.css
 * CSS prefix: ux360-
 * ============================================================================= */

/* ── Wrapper ─────────────────────────────────────────────────────────────── */

.ux360-wrapper {
    --ux360-bg: #F8F4EF;
    --ux360-text: #2D2926;
    --ux360-accent: #8B7355;
    --ux360-viewer-bg: #F8F4EF;
    --ux360-radius: 24px;
    --ux360-thumb-size: 80px;
    --ux360-brightness: 100;
    --ux360-contrast: 100;
    --ux360-shadow: 70;

    display: flex;
    align-items: stretch;
    background: var(--ux360-bg);
    color: var(--ux360-text);
    -webkit-user-select: none;
    user-select: none;
    outline: none;
}

/* ── Left Panel (Content) ───────────────────────────────────────────────── */

.ux360-left {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 48px 60px 60px;
}

.ux360-content {
    max-width: 400px;
}

.ux360-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ux360-accent);
    margin-bottom: 20px;
    font-family: inherit;
}

.ux360-heading {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 20px 0;
    color: var(--ux360-text);
    font-family: inherit;
}

.ux360-description {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 40px 0;
    color: var(--ux360-text);
    opacity: 0.7;
    font-family: inherit;
}

/* ── Tool Icons ──────────────────────────────────────────────────────────── */

.ux360-tools {
    display: flex;
    gap: 36px;
}

.ux360-tool {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.ux360-tool svg {
    color: var(--ux360-text);
    margin-bottom: 4px;
}

.ux360-tool-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ux360-text);
}

.ux360-tool-subtitle {
    font-size: 12px;
    color: var(--ux360-text);
    opacity: 0.6;
}

/* ── Right Panel (Viewer) ────────────────────────────────────────────────── */

.ux360-right {
    flex: 0 0 65%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 500px;
}

.ux360-viewer {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.ux360-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ux360-radius);
    overflow: hidden;
    cursor: grab;
}

.ux360-image-wrap:active {
    cursor: grabbing;
}

/* ── Main Image ──────────────────────────────────────────────────────────── */

.ux360-main-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    filter: brightness(calc(var(--ux360-brightness) / 100)) contrast(calc(var(--ux360-contrast) / 100));
    transition: filter 0.3s ease, transform 0.1s ease;
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.ux360-main-image.ux360-zooming {
    cursor: grab;
}

.ux360-main-image.ux360-zoomed {
    cursor: move;
}

/* ── Image Shadow ────────────────────────────────────────────────────────── */

.ux360-image-wrap::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 10%;
    right: 10%;
    height: 40px;    
    filter: blur(10px);
    pointer-events: none;
    z-index: -1;
}

/* ── Counter ─────────────────────────────────────────────────────────────── */

.ux360-counter {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--ux360-text);
    opacity: 0.5;
    font-family: inherit;
    z-index: 5;
}

.ux360-counter-current {
    font-weight: 600;
}

/* ── Thumbnails ──────────────────────────────────────────────────────────── */

.ux360-thumbs {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.ux360-pos-left .ux360-thumbs {
    right: auto;
    left: 20px;
}

.ux360-pos-bottom .ux360-thumbs {
    position: relative;
    right: auto;
    left: auto;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    padding: 16px 0 0 0;
}

.ux360-thumb-track {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ux360-thumb-track::-webkit-scrollbar {
    display: none;
}

.ux360-pos-bottom .ux360-thumb-track {
    flex-direction: row;
    max-height: none;
    max-width: 80%;
    overflow-x: auto;
    overflow-y: hidden;
}

.ux360-thumb {
    width: var(--ux360-thumb-size);
    height: var(--ux360-thumb-size);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    background: rgba(255,255,255,0.8);
    transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    opacity: 0.5;
}

.ux360-thumb:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.ux360-thumb-active {
    border-color: var(--ux360-accent);
    opacity: 1;
}

.ux360-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

/* ── Thumbnail Arrows ────────────────────────────────────────────────────── */

.ux360-thumb-arrow {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--ux360-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.ux360-thumb-arrow:hover {
    background: #fff;
    transform: scale(1.1);
}

.ux360-pos-bottom .ux360-thumb-arrow {
    display: none;
}

/* ── Placeholder ─────────────────────────────────────────────────────────── */

.ux360-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 400px;
    background: rgba(0,0,0,0.04);
    border: 2px dashed rgba(0,0,0,0.1);
    border-radius: var(--ux360-radius);
    color: rgba(0,0,0,0.3);
    font-size: 14px;
    font-family: inherit;
}

/* ── Builder Notice ──────────────────────────────────────────────────────── */

.ux360-builder-notice {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.06);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    color: rgba(0,0,0,0.4);
    white-space: nowrap;
}

/* ── Builder Mode ────────────────────────────────────────────────────────── */

.ux360-builder {
    cursor: default;
    pointer-events: none;
}

.ux360-builder .ux360-image-wrap {
    cursor: default;
}

.ux360-builder .ux360-main-image {
    pointer-events: none;
}

.ux360-builder .ux360-thumb {
    cursor: default;
    opacity: 0.6;
}

.ux360-builder .ux360-thumb-arrow {
    pointer-events: none;
    opacity: 0.5;
}

/* ── Mobile: Stack layout ────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .ux360-left {
        flex: 0 0 40%;
        padding: 40px 32px;
    }

    .ux360-right {
        flex: 0 0 60%;
    }
}

@media (max-width: 768px) {
    .ux360-wrapper {
        flex-direction: column;
    }

    .ux360-left {
        flex: none;
        width: 100%;
        padding: 32px 24px;
        order: 2;
    }

    .ux360-content {
        max-width: 100%;
        text-align: center;
    }

    .ux360-tools {
        justify-content: center;
    }

    .ux360-tool {
        align-items: center;
    }

    .ux360-right {
        flex: none;
        width: 100%;
        min-height: 350px;
        order: 1;
    }

    .ux360-main-image {
        max-height: 350px;
    }

    .ux360-thumbs {
        right: 10px;
    }

    .ux360-counter {
        right: 20px;
    }

    .ux360-heading {
        font-size: 28px;
    }

    .ux360-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ux360-left {
        padding: 24px 16px;
    }

    .ux360-right {
        min-height: 300px;
    }

    .ux360-main-image {
        max-height: 280px;
    }

    .ux360-tools {
        gap: 24px;
    }

    .ux360-thumb {
        --ux360-thumb-size: 50px;
    }
}

/* ── Entrance Animation ──────────────────────────────────────────────────── */

.ux360-wrapper[data-animate] .ux360-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.ux360-wrapper[data-animate] .ux360-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.ux360-wrapper[data-animate].ux360-visible .ux360-left,
.ux360-wrapper[data-animate].ux360-visible .ux360-right {
    opacity: 1;
    transform: translateX(0);
}
