/**
 * Wrap Studio 3D Pro — Services Showcase Styles
 * [ws3d_services_showcase] shortcode
 */

/* === SECTION === */
.ws3d-services-showcase {
    position: relative;
    overflow: hidden;
    background: #000;
}

.ws3d-sc-wrapper {
    position: relative;
}

.ws3d-sc-sticky {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

.ws3d-sc-canvas {
    display: block;
}

/* === LOADER === */
.ws3d-sc-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.ws3d-sc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(196, 163, 90, 0.2);
    border-top-color: #c4a35a;
    border-radius: 50%;
    animation: ws3d-sc-spin 0.8s linear infinite;
}

@keyframes ws3d-sc-spin {
    to { transform: rotate(360deg); }
}

/* === SERVICE CARDS === */
.ws3d-sc-content {
    position: relative;
    min-height: 300px;
}

.ws3d-sc-card {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(40px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 420px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(196, 163, 90, 0.15);
    padding: 2rem;
    pointer-events: auto;
}

.ws3d-sc-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* === PROGRESS DOTS === */
.ws3d-sc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(196, 163, 90, 0.25);
    cursor: pointer;
    transition: all 0.4s ease;
}

.ws3d-sc-dot.active {
    background: #c4a35a;
    box-shadow: 0 0 12px rgba(196, 163, 90, 0.5);
    transform: scale(1.3);
}

/* === LABEL === */
.ws3d-sc-label {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* === WRAP SWATCHES === */
.ws3d-sc-wrap-swatches span {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.ws3d-sc-wrap-swatches span:hover {
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 1023px) {
    .ws3d-sc-wrapper {
        height: 500vh !important;
    }

    .ws3d-sc-sticky .absolute.inset-0.z-10 {
        display: flex;
        align-items: flex-start !important;
    }

    .ws3d-sc-sticky .absolute.inset-0.z-10 > .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        align-items: flex-start !important;
    }

    .ws3d-sc-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }

    .ws3d-sc-card {
        max-width: 100% !important;
        width: 100% !important;
        padding: 1rem 1.25rem;
        padding-top: 70px;
        background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95) 50%, rgba(10, 10, 10, 0) 100%);
        border: none;
        border-radius: 0;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateY(-10px) !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s ease;
    }

    .ws3d-sc-card.active {
        transform: translateY(0) !important;
        opacity: 1;
        visibility: visible;
    }

    .ws3d-sc-card h2 {
        font-size: 1.35rem !important;
        margin-bottom: 0.25rem !important;
    }

    .ws3d-sc-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 0.25rem !important;
    }

    .ws3d-sc-card p {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.4 !important;
    }

    .ws3d-sc-card .flex.items-center.gap-3.mb-4 {
        margin-bottom: 0.35rem !important;
    }

    .ws3d-sc-card .w-12.h-12 {
        width: 2rem !important;
        height: 2rem !important;
    }

    .ws3d-sc-card .w-12.h-12 svg {
        width: 1rem !important;
        height: 1rem !important;
    }

    .ws3d-sc-card .flex.flex-wrap.gap-2 {
        gap: 0.25rem !important;
    }

    .ws3d-sc-card .flex.flex-wrap.gap-2 span {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.4rem !important;
    }

    .ws3d-sc-card .ws3d-sc-wrap-swatches span {
        width: 1.1rem !important;
        height: 1.1rem !important;
    }

    .ws3d-sc-progress {
        bottom: 16px !important;
    }

    .ws3d-sc-label {
        display: none;
    }
}

@media (max-width: 640px) {
    .ws3d-sc-wrapper {
        height: 400vh !important;
    }
}
