/* =============================================================================
   Onboarding Checklist Widget — NormaCode v1.0
   Floating bottom-right progress checklist
   ============================================================================= */

.oc-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9000;
    width: 280px;
    background: #0d1117;
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.3s, transform 0.3s;
}

.oc-widget.oc-fade-out {
    opacity: 0;
    transform: translateY(20px);
}

/* Header (clickable to collapse/expand) */
.oc-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
    gap: 8px;
}

.oc-header:hover {
    background: rgba(255, 255, 255, 0.06);
}

.oc-title {
    flex: 1;
    font-size: 0.78rem;
    font-weight: 600;
    color: #e5e7eb;
    white-space: nowrap;
}

.oc-pct {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4ade80;
    font-family: 'JetBrains Mono', monospace;
}

.oc-toggle {
    font-size: 0.6rem;
    color: #6b7280;
    margin-left: 4px;
}

/* Progress bar */
.oc-progress-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
}

.oc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22d3ee, #4ade80);
    transition: width 0.5s ease;
    border-radius: 0 2px 2px 0;
}

/* Body (items) */
.oc-body {
    padding: 10px 16px 14px;
}

/* Individual item */
.oc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.82rem;
    color: #9ca3af;
    transition: color 0.2s;
}

.oc-item.oc-done {
    color: #4ade80;
}

.oc-item.oc-done .oc-label {
    text-decoration: line-through;
    text-decoration-color: rgba(74, 222, 128, 0.3);
}

.oc-check {
    font-size: 0.9rem;
    flex-shrink: 0;
    line-height: 1;
}

.oc-label {
    flex: 1;
}

/* Next action */
.oc-next {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.oc-next-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: #22d3ee;
    text-decoration: none;
    transition: color 0.2s;
}

.oc-next-link:hover {
    color: #4ade80;
}

/* Celebration state */
.oc-widget.oc-celebrate {
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.15);
}

/* Responsive: hide on very small screens */
@media (max-width: 480px) {
    .oc-widget {
        bottom: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}

/* Don't overlap with sidebar on desktop */
@media (min-width: 769px) {
    .oc-widget {
        right: 24px;
        bottom: 24px;
    }
}
