/* ── Bloch Sphere Widget ──────────────────────────────────────
   wp-bloch-sphere v1.0.0
   All selectors are class-based so multiple instances on the
   same page work without ID collisions.
   ─────────────────────────────────────────────────────────── */

.bloch-sphere-widget {
    background: #0d1117;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #30363d;
    margin: 1.8rem 0;
}

.bloch-sphere-stage {
    position: relative;
    width: 100%;
    background: #0d1117;
}

.bloch-sphere-canvas {
    display: block;
    margin: 0 auto;
    cursor: default;
}

.bloch-sphere-widget[data-scene="free"] .bloch-sphere-canvas,
.bloch-sphere-canvas.is-free {
    cursor: grab;
}

.bloch-sphere-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: #161b22;
    border-top: 1px solid #30363d;
    justify-content: center;
    align-items: center;
}

.bloch-scene-btn {
    font-family: Arial, sans-serif;
    font-size: 13px;
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.bloch-scene-btn:hover {
    background: #30363d;
}

.bloch-scene-btn.hb-active {
    background: #6c63ff;
    border-color: #6c63ff;
    color: #fff;
}

.bloch-speed-control {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8b949e;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.bloch-speed-range {
    width: 80px;
    accent-color: #6c63ff;
    cursor: pointer;
}

.bloch-speed-label {
    min-width: 28px;
    color: #c9d1d9;
}

.bloch-sphere-info {
    padding: 10px 16px;
    background: #0d1117;
    border-top: 1px solid #30363d;
    font-family: Arial, sans-serif;
}

.bloch-sphere-formula {
    color: #e6edf3;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 3px;
    font-family: 'Courier New', monospace;
    min-height: 1.4em;
}

.bloch-sphere-desc {
    font-size: 13px;
    color: #8b949e;
    line-height: 1.55;
    min-height: 2.8em;
}

/* Responsive — keep widget from overflowing on narrow screens */
@media (max-width: 480px) {
    .bloch-scene-btn {
        font-size: 12px;
        padding: 5px 10px;
    }
    .bloch-speed-range {
        width: 60px;
    }
}

