/**
 * EB Circular Steps Widget Styles
 *
 * @package EB_Global_Widgets
 */

.eb-circular-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.eb-circular-steps__ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Track circle */
.eb-circular-steps__track {
    position: absolute;
    inset: 0;
    border: 2px dashed #E5E7EB;
    border-radius: 50%;
}

/* SVG Progress */
.eb-circular-steps__progress-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.eb-circular-steps__progress {
    stroke: #B09360;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Center */
.eb-circular-steps__center {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 180px;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.eb-circular-steps__center-icon {
    font-size: 24px;
    color: #B09360;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.eb-circular-steps__center-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.eb-circular-steps__center-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1E1B4B;
    margin: 0 0 4px;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.eb-circular-steps__center-desc {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #4B5563;
    line-height: 1.5;
    margin: 0;
    transition: all 0.3s ease;
}

/* Step Nodes */
.eb-circular-steps__step {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid var(--step-color, #B09360);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    top: 50%;
    left: 50%;
    transform: rotate(var(--angle)) translateX(var(--circle-radius)) rotate(calc(-1 * var(--angle)));
    margin: -28px;
    z-index: 3;
    transition: all 0.3s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.eb-circular-steps__step:hover {
    transform: rotate(var(--angle)) translateX(var(--circle-radius)) rotate(calc(-1 * var(--angle))) scale(1.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.eb-circular-steps__step.active {
    background: var(--step-color, #B09360);
    transform: rotate(var(--angle)) translateX(var(--circle-radius)) rotate(calc(-1 * var(--angle))) scale(1.2);
    box-shadow: 0 4px 20px rgba(176, 147, 96, 0.4);
}

.eb-circular-steps__step-icon {
    font-size: 16px;
    color: #1E1B4B;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.eb-circular-steps__step-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.eb-circular-steps__step.active .eb-circular-steps__step-icon {
    color: #FFFFFF;
}

.eb-circular-steps__step.active .eb-circular-steps__step-icon svg {
    fill: #FFFFFF;
}

.eb-circular-steps__step-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #1E1B4B;
    transition: color 0.3s ease;
    display: none;
}

.eb-circular-steps__step.active .eb-circular-steps__step-number {
    color: #FFFFFF;
}

/* Label below each step */
.eb-circular-steps__step-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #4B5563;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.eb-circular-steps__step.active .eb-circular-steps__step-label {
    opacity: 1;
    font-weight: 700;
    color: var(--step-color, #B09360);
}

/* Scroll Animation */
.eb-circular-steps[data-animate="true"] .eb-circular-steps__center {
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.eb-circular-steps[data-animate="true"].animated .eb-circular-steps__center {
    opacity: 1;
    transform: scale(1);
}

.eb-circular-steps[data-animate="true"] .eb-circular-steps__track {
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.eb-circular-steps[data-animate="true"].animated .eb-circular-steps__track {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.2s;
}

.eb-circular-steps[data-animate="true"] .eb-circular-steps__step {
    opacity: 0;
    --circle-radius: 0px;
}

.eb-circular-steps[data-animate="true"].animated .eb-circular-steps__step {
    opacity: 1;
}

.eb-circular-steps[data-animate="true"].animated .eb-circular-steps__step:nth-child(1) { transition-delay: 0.3s; }
.eb-circular-steps[data-animate="true"].animated .eb-circular-steps__step:nth-child(2) { transition-delay: 0.4s; }
.eb-circular-steps[data-animate="true"].animated .eb-circular-steps__step:nth-child(3) { transition-delay: 0.5s; }
.eb-circular-steps[data-animate="true"].animated .eb-circular-steps__step:nth-child(4) { transition-delay: 0.6s; }
.eb-circular-steps[data-animate="true"].animated .eb-circular-steps__step:nth-child(5) { transition-delay: 0.7s; }
.eb-circular-steps[data-animate="true"].animated .eb-circular-steps__step:nth-child(6) { transition-delay: 0.8s; }
.eb-circular-steps[data-animate="true"].animated .eb-circular-steps__step:nth-child(7) { transition-delay: 0.9s; }
.eb-circular-steps[data-animate="true"].animated .eb-circular-steps__step:nth-child(8) { transition-delay: 1.0s; }

/* Responsive */
@media (max-width: 768px) {
    .eb-circular-steps__ring {
        width: 320px !important;
        height: 320px !important;
    }

    .eb-circular-steps[data-animate="true"].animated .eb-circular-steps__step {
        --circle-radius: 140px !important;
    }

    .eb-circular-steps__step {
        width: 44px;
        height: 44px;
        margin: -22px;
    }

    .eb-circular-steps__step-label {
        display: none;
    }

    .eb-circular-steps__center {
        width: 140px;
        height: 140px;
        max-width: 140px;
    }

    .eb-circular-steps__center-title {
        font-size: 12px;
    }

    .eb-circular-steps__center-desc {
        font-size: 10px;
    }
}
