/* ===================================
   Progress Block Indicator
   Fixed vertical progress on the right side
   =================================== */

.progress-indicator {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Connection line between blocks */
.progress-line {
    position: absolute;
    width: 2px;
    height: calc(100% - 20px);
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom,
            rgba(65, 209, 236, 0.1) 0%,
            rgba(65, 209, 236, 0.3) 50%,
            rgba(249, 73, 239, 0.1) 100%);
    z-index: -1;
}

/* Progress fill line */
.progress-fill {
    position: absolute;
    width: 2px;
    height: 0%;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom,
            var(--color-primary, #41D1EC),
            var(--color-secondary, #F949EF));
    z-index: -1;
    /* transition: height 0.3s ease-out; removed for js sync */
    box-shadow: 0 0 10px var(--color-primary, #41D1EC);
}

/* Individual block */
.progress-block {
    width: 20px;
    height: 20px;
    background: var(--color-bg-primary);
    border: 2px solid rgba(65, 209, 236, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* Block hover state - Only on devices with hover capability */
@media (hover: hover) {
    .progress-block:hover {
        transform: scale(1.2) translateY(-2px);
        border-color: var(--color-primary, #41D1EC);
        box-shadow:
            0 4px 12px rgba(65, 209, 236, 0.3),
            inset 0 0 8px rgba(65, 209, 236, 0.2);
    }

    .progress-block:hover::before {
        opacity: 1;
        right: 36px;
    }
}

/* Active/Visited state */
.progress-block.active {
    background: var(--color-bg-primary);
    border-color: var(--color-secondary, #F949EF);
    box-shadow:
        0 0 20px rgba(249, 73, 239, 0.5),
        0 0 40px rgba(249, 73, 239, 0.2),
        inset 0 0 10px rgba(249, 73, 239, 0.3);
    animation: blockPulse 2s ease-in-out infinite;
}

/* Center dot for active block (filled appearance) */
/* Center dot for active block (filled appearance) */
.progress-block.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--color-secondary, #F949EF);
    box-shadow: 0 0 8px var(--color-secondary, #F949EF);
    z-index: 2;
    /* Ensure it's on top */
    display: block;
    /* Ensure visibility */
}

.progress-block.visited {
    background: var(--color-bg-primary);
    border-color: rgba(65, 209, 236, 0.6);
    box-shadow:
        0 0 8px rgba(65, 209, 236, 0.3),
        inset 0 0 4px rgba(65, 209, 236, 0.2);
}

.progress-block.visited::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--color-primary, #41D1EC);
    box-shadow: 0 0 6px var(--color-primary, #41D1EC);
}

/* Pulse animation for active block */
@keyframes blockPulse {

    0%,
    100% {
        box-shadow:
            0 0 20px rgba(249, 73, 239, 0.5),
            0 0 40px rgba(249, 73, 239, 0.2),
            inset 0 0 10px rgba(249, 73, 239, 0.3);
    }

    50% {
        box-shadow:
            0 0 30px rgba(249, 73, 239, 0.7),
            0 0 60px rgba(249, 73, 239, 0.3),
            inset 0 0 15px rgba(249, 73, 239, 0.4);
    }
}

/* Levitation effect for active */
.progress-block.active {
    animation: blockPulse 2s ease-in-out infinite, blockFloat 3s ease-in-out infinite;
}

@keyframes blockFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .progress-indicator {
        right: 12px;
        gap: 6px;
    }

    .progress-block {
        width: 14px;
        height: 14px;
    }

    .progress-block::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .progress-indicator {
        display: none;
    }
}