/**
 * COMPONENT: Digital Readout Pipeline Navigation
 * Elevator-style counter + step name + dot indicators
 * 
 * Light/Dark mode support via data-theme attribute
 */

/* =========================================
   COMPONENT: PIPELINE NAV CONTAINER
   ========================================= */
.debate-pipeline-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    
    /* No container box — sits bare in the header */
    background: none;
    padding: 6px 0;
    
    /* Typography base */
    font-family: var(--font-mono, 'JetBrains Mono', 'Fira Code', 'Courier New', monospace);
    
    white-space: nowrap;
    user-select: none;
}

/* =========================================
   COUNTER: "04 / 08"
   ========================================= */
.pipe-d-counter {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-green-deep);
    letter-spacing: 1px;
    white-space: nowrap;
    transition: color 0.3s;
}

.pipe-d-of {
    color: var(--text-tertiary);
    font-weight: 400;
}

/* =========================================
   STEP NAME: "VOTING"
   ========================================= */
.pipe-d-name {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 72px;
    text-align: center;
    transition: color 0.25s;
}

/* Slide-up animation on step change */
.pipe-d-name.changing {
    animation: pipeSlideUp 0.35s ease;
}

@keyframes pipeSlideUp {
    0% { transform: translateY(6px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* =========================================
   DOT INDICATORS
   ========================================= */
.pipe-d-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pipe-dot {
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background: var(--border-subtle);
    transition: all 0.4s ease;
}

/* Completed dot */
.pipe-dot.done {
    background: var(--text-tertiary);
}

/* Active dot */
.pipe-dot.active {
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
    animation: pipeDotPulse 1.8s ease infinite;
}

@keyframes pipeDotPulse {
    0%, 100% { box-shadow: 0 0 4px rgba(34, 197, 94, 0.15); }
    50% { box-shadow: 0 0 12px rgba(34, 197, 94, 0.35), 0 0 20px rgba(34, 197, 94, 0.12); }
}

/* =========================================
   DARK MODE OVERRIDES
   ========================================= */
html[data-theme="dark"] .debate-pipeline-nav {
    background: none;
}

html[data-theme="dark"] .pipe-d-counter {
    color: #4ade80;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.35);
}

html[data-theme="dark"] .pipe-d-of {
    color: #475569;
}

html[data-theme="dark"] .pipe-d-name {
    color: #e2e8f0;
}

html[data-theme="dark"] .pipe-dot {
    background: #2a2a30;
}

html[data-theme="dark"] .pipe-dot.done {
    background: #64748b;
}

html[data-theme="dark"] .pipe-dot.active {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.35);
}

/* =========================================
   RESPONSIVE: Mobile adjustments
   ========================================= */
@media (max-width: 600px) {
    .debate-pipeline-nav {
        gap: 10px;
        padding: 6px 12px;
    }

    .pipe-d-counter {
        font-size: 0.58rem;
    }

    .pipe-d-name {
        font-size: 0.6rem;
        min-width: 56px;
        letter-spacing: 0.5px;
    }

    .pipe-d-dots {
        gap: 4px;
    }

    .pipe-dot {
        width: 5px;
        height: 5px;
    }
}

@media (max-width: 380px) {
    .debate-pipeline-nav {
        gap: 8px;
        padding: 5px 10px;
    }

    .pipe-d-counter {
        font-size: 0.52rem;
    }

    .pipe-d-name {
        font-size: 0.52rem;
        min-width: 48px;
    }

    .pipe-dot {
        width: 4px;
        height: 4px;
    }
}
