/* ───── WORKSHOP PROGRESS NAV ───── */
.workshop-nav {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.workshop-nav::-webkit-scrollbar { display: none; }

.workshop-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}
.workshop-nav-item:hover {
    color: var(--text);
    background: var(--surface-hover);
}
.workshop-nav-item.active {
    color: var(--accent);
    background: var(--accent-dim);
    font-weight: 600;
}
.workshop-nav-item.completed .wnav-check {
    background: var(--accent);
    border-color: var(--accent);
}
.workshop-nav-item.completed .wnav-check svg {
    opacity: 1;
}

.wnav-check {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.wnav-check svg {
    width: 10px;
    height: 10px;
    stroke: var(--bg);
    stroke-width: 3;
    fill: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.workshop-nav-sep {
    width: 16px;
    min-width: 16px;
    height: 1px;
    background: var(--border);
    flex-shrink: 0;
}

/* Responsive: show shorter labels on small screens */
.wnav-label-full { display: inline; }
.wnav-label-short { display: none; }

/* ───── CONTEXTUAL NEXT-STEP CTA ───── */
.next-step-box {
    margin-top: 28px;
    padding: 20px 24px;
    background: var(--accent-glow, rgba(74,222,128,0.05));
    border: 1px solid var(--accent-dim, rgba(74,222,128,0.15));
    border-radius: 12px;
    text-align: center;
}
.next-step-box.next-step-final {
    background: linear-gradient(135deg, rgba(74,222,128,0.08), rgba(74,222,128,0.02));
    border-color: var(--accent-dim, rgba(74,222,128,0.25));
}
.next-step-nudge {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 10px;
    line-height: 1.5;
}
.next-step-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.next-step-link:hover { text-decoration: underline; }
.next-step-secondary {
    margin-top: 10px;
    text-align: center;
}
.next-step-secondary a {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    opacity: 0.7;
}
.next-step-secondary a:hover { opacity: 1; text-decoration: underline; }

/* ───── AI INSIGHTS: COPY BUTTON ───── */
.ai-insight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.ai-insight-header h3 {
    margin-bottom: 0 !important;
}
.ai-copy-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.ai-copy-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ───── COLLAPSIBLE DETAIL BREAKDOWN ───── */
.detail-breakdown {
    margin-top: 24px;
}
.detail-breakdown summary {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.detail-breakdown summary::-webkit-details-marker { display: none; }
.detail-breakdown summary::before {
    content: '▸';
    font-size: 0.75rem;
    transition: transform 0.2s;
}
.detail-breakdown[open] summary::before {
    transform: rotate(90deg);
}
.detail-breakdown summary:hover {
    color: var(--text);
}
.detail-breakdown .detail-content {
    padding-top: 16px;
}

/* ───── AI FALLBACK NOTICE ───── */
.ai-fallback {
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

@media (max-width: 700px) {
    .workshop-nav {
        padding: 0.4rem 0.5rem;
        gap: 0;
        border-radius: 10px;
    }
    .workshop-nav-item {
        padding: 0.4rem 0.55rem;
        font-size: 0.72rem;
    }
    .wnav-label-full { display: none; }
    .wnav-label-short { display: inline; }
    .workshop-nav-sep { width: 8px; min-width: 8px; }
    .wnav-check { width: 15px; height: 15px; min-width: 15px; }
    .wnav-check svg { width: 8px; height: 8px; }
}
