/* ==========================================================================
   Blued — Circle Carousel
   ========================================================================== */

/* Animatable color custom properties (so the gradient transitions smoothly) */
@property --bcc-c1 {
    syntax: '<color>';
    initial-value: #C254EB;
    inherits: true;
}
@property --bcc-c2 {
    syntax: '<color>';
    initial-value: #6100C4;
    inherits: true;
}
@property --bcc-glow {
    syntax: '<color>';
    initial-value: rgba(150, 46, 214, 0.7);
    inherits: true;
}

.blued-cc {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: transparent;
    direction: ltr;

    /* Defaults (overridable by Elementor controls or per-item via JS) */
    --bcc-c1: #C254EB;
    --bcc-c2: #6100C4;
    --bcc-angle: 135deg;
    --bcc-glow: rgba(150, 46, 214, 0.7);
    --bcc-glow-blur: 100px;
    --bcc-color-duration: 0.6s;

    /* Smooth color transition on the inheriting elements */
    transition:
        --bcc-c1 var(--bcc-color-duration) ease,
        --bcc-c2 var(--bcc-color-duration) ease,
        --bcc-glow var(--bcc-color-duration) ease;
}

/* Track holds items + the central panel */
.blued-cc-track {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The semicircle panel (background + content) */
.blued-cc-panel {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(var(--bcc-angle), var(--bcc-c1), var(--bcc-c2));
    box-shadow: 0 -15px var(--bcc-glow-blur) 0 var(--bcc-glow);
}

.blued-cc-panel-content {
    width: 100%;
    position: relative;
    z-index: 2;
    will-change: opacity;
}

/* Decorative image/SVG behind the panel content */
.blued-cc-panel-decor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: none;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
}

.blued-cc-panel-title,
.blued-cc-panel-desc {
    margin: 0;
    width: 100%;
    word-wrap: break-word;
    direction: rtl;
}

.blued-cc-panel-desc {
    line-height: 1.5;
}

/* Each item: icon + label, anchored at bottom-center, positioned in arc by JS */
.blued-cc-item {
    position: absolute;
    bottom: 0;
    left: 50%;
    text-align: center;
    opacity: 0;
    transform-origin: bottom center;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    will-change: transform, opacity;
}

/* Active item — no pointer cursor since clicking does nothing */
.blued-cc-item.is-active {
    cursor: default;
}

.blued-cc-item.is-active {
    opacity: 1;
}

.blued-cc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.blued-cc-icon img,
.blued-cc-icon svg,
.blued-cc-icon lottie-player {
    display: block;
    max-width: 100%;
}

.blued-cc-label {
    direction: rtl;
    line-height: 1.2;
    white-space: nowrap;
}

/* Arrows */
.blued-cc-arrow {
    position: absolute;
    z-index: 5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
    background: transparent;
    border: 0;
    user-select: none;
}

.blued-cc-arrow:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.blued-cc-arrow svg,
.blued-cc-arrow i {
    display: inline-block;
    line-height: 1;
}

/* Editor preview helpers */
.elementor-editor-active .blued-cc {
    min-height: 200px;
}
