/**
 * Career Wheel - Circular Menu Styles
 * For WordPress shortcode [career_wheel_ui]
 */

/* Variables */
.career-wheel-container {
    --cw-color-1: #050A30;
    --cw-color-2: #0A1647;
    --cw-color-3: #0F225E;
    --cw-color-4: #142E75;
    --cw-color-5: #0A1647;
    --cw-color-6: #0F225E;
    --cw-color-7: #050A30;
    --cw-color-8: #0A1647;
    --cw-divider-color: #D40606;
    --cw-bg-color: #f6f6f6;
}

/* Container */
.career-wheel-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    background: var(--cw-bg-color);
    font-family: 'Poppins', sans-serif;
}

.career-wheel-container {
    position: relative;
    width: 750px;
    height: 750px;
}

/* Outer border ring */
.cw-outer-border {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 680px;
    height: 680px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* SVG Pie Chart */
.cw-pie-chart-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-22.5deg);
    width: 650px;
    height: 650px;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Inner ring around center hub */
.cw-inner-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 2px solid var(--cw-bg-color);
    pointer-events: none;
    z-index: 8;
}

/* Small dots on inner ring */
.cw-ring-dot {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--cw-bg-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin: -5px 0 0 -5px;
}

.cw-ring-dot:nth-child(1) {
    transform: rotate(337deg) translateY(-90px);
}

.cw-ring-dot:nth-child(2) {
    transform: rotate(21deg) translateY(-90px);
}

.cw-ring-dot:nth-child(3) {
    transform: rotate(66deg) translateY(-90px);
}

.cw-ring-dot:nth-child(4) {
    transform: rotate(111deg) translateY(-86px);
}

.cw-ring-dot:nth-child(5) {
    transform: rotate(158deg) translateY(-85px);
}

.cw-ring-dot:nth-child(6) {
    transform: rotate(205deg) translateY(-87px);
}

.cw-ring-dot:nth-child(7) {
    transform: rotate(250deg) translateY(-92px);
}

.cw-ring-dot:nth-child(8) {
    transform: rotate(293deg) translateY(-93px);
}

/* Center circle */
.cw-center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

/* Item Container */
.cw-item-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    cursor: pointer;
    transform: translate(-50%, -50%) rotate(calc(var(--angle) * 1deg)) translateY(-177px);
    transition: transform 0.6s ease;
}

.cw-item-wrapper:hover .cw-icon-node {
    transform: scale(1.1);
    border-width: 4px;
}

.cw-icon-node {
    width: 70px;
    height: 70px;
    background: transparent;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, border-width 0.2s ease;
}

.cw-icon-node svg {
    width: 24px;
    height: 24px;
    stroke: rgba(255, 255, 255, 0.9);
    fill: none;
    stroke-width: 1.5;
}

/* Text Labels */
.cw-item-title {
    /* position: absolute;
    font-size: 15px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    top: -76px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15; */
    display: none;
}

/* Default angles for 8 items */
.cw-item-1 {
    --angle: 0;
}

.cw-item-2 {
    --angle: 45;
}

.cw-item-3 {
    --angle: 90;
}

.cw-item-4 {
    --angle: 135;
}

.cw-item-5 {
    --angle: 180;
}

.cw-item-6 {
    --angle: 225;
}

.cw-item-7 {
    --angle: 270;
}

.cw-item-8 {
    --angle: 315;
}

/* Active state */
.cw-item-wrapper.active .cw-icon-node {
    border-color: var(--cw-divider-color);
    background: rgba(212, 6, 6, 0.2);
}

/* Results container */
#career-wheel-results {
    width: 100%;
    margin-top: 40px;
    padding-bottom: 80px;
}

/* Loading state */
.cw-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.cw-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: var(--cw-divider-color);
    border-radius: 50%;
    animation: cw-spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes cw-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 800px) {
    .career-wheel-container {
        width: 95vw;
        height: 95vw;
    }

    .cw-pie-chart-svg {
        width: 85%;
        height: 85%;
    }

    .cw-outer-border {
        width: 90%;
        height: 90%;
    }

    .cw-center-circle {
        width: 80px;
        height: 80px;
    }

    .cw-icon-node {
        width: 40px;
        height: 40px;
    }

    .cw-icon-node svg {
        width: 18px;
        height: 18px;
    }

    .cw-item-title {
        font-size: 10px;
        top: -50px;
    }

    .cw-item-wrapper {
        transform: translate(-50%, -50%) rotate(calc(var(--angle) * 1deg)) translateY(-30vw);
    }

    #career-wheel-results .products {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 430px) {
    .cw-center-circle {
        width: 61px;
        height: 60px;
    }

    .cw-inner-ring {
        width: 120px;
        height: 120px;
    }

    .cw-ring-dot {
        width: 10px;
        height: 10px;
    }

    .cw-ring-dot:nth-child(1) {
        transform: rotate(337deg) translateY(-59px);
    }

    .cw-ring-dot:nth-child(2) {
        transform: rotate(21deg) translateY(-59px);
    }

    .cw-ring-dot:nth-child(3) {
        transform: rotate(66deg) translateY(-59px);
    }

    .cw-ring-dot:nth-child(4) {
        transform: rotate(111deg) translateY(-59px);
    }

    .cw-ring-dot:nth-child(5) {
        transform: rotate(158deg) translateY(-59px);
    }

    .cw-ring-dot:nth-child(6) {
        transform: rotate(205deg) translateY(-59px);
    }

    .cw-ring-dot:nth-child(7) {
        transform: rotate(250deg) translateY(-59px);
    }

    .cw-ring-dot:nth-child(8) {
        transform: rotate(293deg) translateY(-59px);
    }

    .cw-item-wrapper {
        transform: translate(-50%, -50%) rotate(calc(var(--angle) * 1deg)) translateY(-24vw);
    }

    .cw-item-title {
        font-size: 8px;
        top: -28px;
    }

    .cw-curved-text-svg {
        width: 90% !important;
        height: 90% !important;
    }

    .cw-curved-text-svg text {
        font-size: 10px;
    }
}



/* SVG Curved Text Labels */
.cw-curved-text-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-22.5deg);
    width: 685px;
    height: 685px;
    pointer-events: none;
    z-index: 20;
}

.cw-curved-text-svg text {
    fill: white;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    cursor: pointer;
    transition: fill 0.3s ease;
}

.cw-curved-text-svg text:hover {
    fill: var(--cw-divider-color);
}